improve level01 solution

ajout d'option sur les ligne de comande avec john + traville sur une copie /etc/passwd
This commit is contained in:
Lapin 2021-02-02 16:35:50 +01:00
parent 77ef1bdbc4
commit 21adb7d69b
1 changed files with 6 additions and 2 deletions

View File

@ -58,5 +58,9 @@ flag14:x:3014:3014::/home/flag/flag14:/bin/bash
On peut voir que flag01 donne une information sur le mot de passe. Il n'est pas en clair mais on peut imaginer qu'il est stocke sous forme de hash. On peut voir que flag01 donne une information sur le mot de passe. Il n'est pas en clair mais on peut imaginer qu'il est stocke sous forme de hash.
On va donc utiliser "john". On enregistre le hash dans un fichier, puis on passe ce fichier en argument a john. On va donc utiliser "john". On enregistre le hash dans un fichier, puis on passe ce fichier en argument a john.
$ john flag_intermediaire $ scp -r -P 4242 level01@127.0.0.2:/etc/passwd /tmp/passwd_snowcrash
> abcdefg $ john /tmp/passwd_snowcrash --show
> flag01:abcdefg:3001:3001::/home/flag/flag01:/bin/bash
>
> 1 password hash cracked, 0 left