┌──(kali㉿kali)-[/root] └─$ head -n 1 /etc/shadow > /tmp/root_user.txt
使用 Kali 自带的 john 工具进行密码爆破:
1 2 3 4 5 6 7 8 9 10 11 12 13
──(kali㉿kali)-[/root] └─$ john --format=crypt /tmp/root_user.txt Using default input encoding: UTF-8 Loaded 1 password hash (crypt, generic crypt(3) [?/64]) Cost 1 (algorithm [1:descrypt 2:md5crypt 3:sunmd5 4:bcrypt 5:sha256crypt 6:sha512crypt]) is 0 for all loaded hashes Cost 2 (algorithm specific iterations) is 1 for all loaded hashes Will run 8 OpenMP threads Proceeding with single, rules:Single Press 'q' or Ctrl-C to abort, almost any other key for status root (root) 1g 0:00:00:00 DONE 1/3 (2024-02-07 16:13) 4.166g/s 400.0p/s 400.0c/s 400.0C/s root..root999994 Use the "--show" option to display all of the cracked passwords reliably Session completed.