• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 顯示ciscoIOStype-7密碼

    發表于:2007-06-20來源:作者:點擊數: 標簽:
    最近發現有問題的cisco產品簡直比有二次解碼的NT還多,改了一個小程序顯示cisco IOS type-7 密碼的,可以在 windows 環境下編譯。 Code: /* * descambles cisco IOS type-7 passwords * found somewhere on the inte .net , slightly modified, anonymous@se

       
      最近發現有問題的cisco產品簡直比有二次解碼的NT還多,改了一個小程序顯示cisco IOS type-7 密碼的,可以在windows環境下編譯。
      Code:
      /*
      * descambles cisco IOS type-7 passwords

      * found somewhere on the inte.net, 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[1] - '0';
       if (seed > 15 || !isdigit(enc_pw[0]) || !isdigit(enc_pw[1]))
       return(-1);
       for (i = 2 ; i <= strlen(enc_pw); i++)
       {
       if(i !=2 && !(i & 1))
       {
       dec_pw[i / 2 - 2] = val ^ xlat[seed++];
       val = 0;
       }
       val *= 16;
       if(isdigit(enc_pw[i] = toupper(enc_pw[i])))
       {
       val += enc_pw[i] - '0';
       continue;
       }
       if(enc_pw[i] >= 'A' && enc_pw[i] <= 'F')
       {
       val += enc_pw[i] - 'A' + 10;
       continue;
       }
       if(strlen(enc_pw) != i)
       return(-1);
       }
       dec_pw[++i / 2] = 0;
       return(0);
      }
      void usage()
      {
       fprintf(stdout, "Usage: ciscocrack
      ");
      }
      int main(int argc, char *argv[])
      {
       char passwd[65];
       memset(passwd, 0, sizeof(passwd));
       if(argc != 2)
       {
       usage();
       exit(1);
       }
       if(cdecrypt(argv[1], passwd))
       {
       fprintf(stderr, "Error.
      ");
       exit(1);
       }
       printf("Passwd: %s
      ", passwd);
       return 0;
      }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>