• Adopted & modified from Herbert Bos’s course on Network Security
• Given:
– /etc/passwd file – /etc/shadow file – A dictionary file
• Goal:
– To recover as many user passwords as possible using a dictionary of words commonly used in passwords.Programming Assignment-1 Contd.
Write a unshadow command just like in John the ripper, that combines the contents of the /etc/passwd and /etc/shadow files to create a combined file called ‘passwordfile.txt’.
Your command to run will look like this.
UseMakefile to generate the executable unshadow /tmp/password /tmp/shadowProgramming Assignment-1 Contd.
Inputs to the C program is passwordfile.txt and the dictionary file
To compile – use make
To run
‘make runall’
The make runall command must automatically run guessword –i hash.txt –d dictionary.txt –o all guessword –i hash.txt –d dictionary.txt –o current guessword –i hash.txt –d dictionary.txt –o root
HINT: Use getoptProgram output
• Different txt files for each run
• E.g.‘allcrackedpasswords.txt’ will contains a list of all cracked passwords in the format