- 差分 を表示
- ソース を表示
- John the Ripper へ行く。
4: 2019-11-10 (日) 13:55:20 iseki | 現: 2023-10-04 (水) 19:28:51 iseki | ||
---|---|---|---|
Line 7: | Line 7: | ||
# xzcat john-1.9.0-jumbo-1.tar.xz |tar xfv - | # xzcat john-1.9.0-jumbo-1.tar.xz |tar xfv - | ||
# cd john-1.9.0-jumbo-1 | # cd john-1.9.0-jumbo-1 | ||
- | #cd src | + | # cd src |
# ./configure | # ./configure | ||
# make | # make | ||
Line 21: | Line 21: | ||
**** 混成パスワードファイル [#a3cd87ae] | **** 混成パスワードファイル [#a3cd87ae] | ||
./john ../../pass | ./john ../../pass | ||
+ | ./john ../../pass --format=crypt | ||
./john ../../pass --format=sha256crypt | ./john ../../pass --format=sha256crypt | ||
./john ../../pass --format=sha512crypt | ./john ../../pass --format=sha512crypt | ||
Line 28: | Line 29: | ||
# cp /etc/shadow . | # cp /etc/shadow . | ||
# ./john shadow | # ./john shadow | ||
+ | or | ||
+ | # ./john --format=crypt shadow | ||
#br | #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] | *** Demo [#w9c6fb65] |
- John the Ripper のバックアップ一覧
- John the Ripper のバックアップの現在との差分(No. All)