设为首页收藏本站

美丽的网站-英华家电维修论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 588|回复: 0
打印 上一主题 下一主题

显示cisco IOS type-7 密码

[复制链接]
跳转到指定楼层
楼主
发表于 2011-3-28 11:06:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近发现有题目的cisco产品简直比有二次解码的NT还多,改了一个小程序显示cisco IOS type-7 密码的,可以在windows环境下编译。   Code:  /*  * descambles cisco IOS type-7 passwords   * found somewhere on the internet, slightly modified, anonymous@segfault.net   * modified for Win32 By CoolWolF@gmx.net  *   * gcc -Wall -o ciscocrack ciscocrack.c   * ./ciscocrack 1416130A4C  *   * cl ciscocrack.c  * ciscocrack.exe 1416130A4C  */  #include   #include   #include   #include   #include //remark this line in unix system  char xlat[] =  {   0x64, 0x73, 0x66, 0x64, 0x3b, 0x6b, 0x66, 0x6f,   0x41, 0x2c, 0x2e, 0x69, 0x79, 0x65, 0x77, 0x72,   0x6b, 0x6c, 0x64, 0x4a, 0x4b, 0x44, 0x48, 0x53,   0x55, 0x42  };    int cdecrypt(char *enc_pw, char *dec_pw)  {   unsigned int seed, i, val = 0;   if(strlen(enc_pw) & 1)   return(-1);   seed = (enc_pw[0] - '0') * 10 + enc_pw  - '0';   if (seed > 15 || !isdigit(enc_pw[0]) || !isdigit(enc_pw ))   return(-1);   for (i = 2 ; i = 'A' && enc_pw[i]   ");  }  int main(int argc, char *argv[])  {   char passwd[65];   memset(passwd, 0, sizeof(passwd));   if(argc != 2)   {   usage();   exit(1);   }   if(cdecrypt(argv , passwd))   {   fprintf(stderr, "Error.  ");   exit(1);   }   printf("Passwd: %s  ", passwd);   return 0;  }
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|手机版|粤ICP备13038386号|粤ICP备13038386号|美丽的网站-英华家电维修论坛 ( 粤ICP备13038386号 )     站长邮箱 505966338@qq.com

GMT+8, 2025-5-3 04:54 , Processed in 0.141139 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表