Compile 
# wget https://www.openwall.com/john/k/john-1.9.0-jumbo-1.tar.xz # xzcat john-1.9.0-jumbo-1.tar.xz |tar xfv - # cd john-1.9.0-jumbo-1 # cd src # ./configure # make
old john-1.8.0 
# 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
混成パスワードファイル 
./john ../../pass ./john ../../pass --format=crypt ./john ../../pass --format=sha256crypt ./john ../../pass --format=sha512crypt
Kali Linux などでインストール済みの場合 
# gcc crypt.c -o crypt -lcrypt # ./crypt >|pass # cat pass # rm ~/.john/john.pot # john pass --format=crypt
crypt.c 
#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);
}
Counter: 5256,
today: 1,
yesterday: 0
最終更新: 2023-10-04 (水) 19:28:51 (JST) (796d) by iseki
