flagflag  
1: 2011-10-15 (Sat) 17:12:10 iseki source Cur: 2023-10-04 (Wed) 19:28:51 iseki source
Line 4: Line 4:
#br #br
*** Compile [#p828a9d7] *** Compile [#p828a9d7]
-  # bzcat john-1.7.8.tar.bz2 |tar xfv - + # wget https://www.openwall.com/john/k/john-1.9.0-jumbo-1.tar.xz 
-  # cd john-1.7.8/src + # xzcat john-1.9.0-jumbo-1.tar.xz |tar xfv - 
-  # make   (show target machine list) + # cd john-1.9.0-jumbo-1 
-  # make linux-x86-any + # cd src 
-#br+ # ./configure 
 + # make 
 + 
 +**** old john-1.8.0 [#b0685b6e] 
 + # wget www.openwall.com/john/j/john-1.8.0.tar.xz 
 + # xzcat john-1.8.0.tar.xz |tar xfv - 
 + # cd john-1.8.0 
 + # make 
 + # make linux-x86-64 
*** Exec [#bd2cf77f] *** Exec [#bd2cf77f]
 +**** 混成パスワードファイル [#a3cd87ae]
 +  ./john ../../pass
 +  ./john ../../pass  --format=crypt
 +  ./john ../../pass  --format=sha256crypt
 +  ./john ../../pass  --format=sha512crypt
 +
 +**** Simple [#ub9dadf9]
 # cd ../run  # cd ../run
 # cp /etc/shadow .  # cp /etc/shadow .
 # ./john shadow  # ./john shadow
 + or
 + # ./john --format=crypt shadow
 +#br
 +
 +**** Kali Linux などでインストール済みの場合 [#h1f206da]
 + # gcc crypt.c -o crypt -lcrypt
 + # ./crypt >|pass
 + # cat pass
 + # rm ~/.john/john.pot
 + # john pass --format=crypt
 +**** crypt.c [#u527fba9]
 + #include <stdio.h>
 + #include <crypt.h>
 + void main(void)
 + {
 +   char* x;
 +   x = crypt("apple", "$5$5rbD1QMx$");            // SHA-256
 +   printf("%s\n", x);
 +   x = crypt("green", "$5$5rbD1QMx$");            // SHA-256
 +   printf("%s\n", x);
 +   x = crypt("black", "$6$5rbD1QMx$");            // SHA-512
 +   printf("%s\n", x);
 +   x = crypt("hsue,dxurrwe86", "$6$5rbD1QMx$");  // SHA-512
 +   printf("%s\n", x);
 + }
 +
 +*** Demo [#w9c6fb65]
 +- デモ等で再解析する場合は ''john.pot'' を消す.
 +- john.pot にはこれまでの結果が入っている.
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

62 user(s) are online (11 user(s) are browsing xpwiki)

Members: 0
Guests: 62

more...

Access Counter

Today : 1591159115911591
Yesterday : 1033710337103371033710337
Total : 2360146123601461236014612360146123601461236014612360146123601461
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com