John the ripper

Hi evryone,

I have problem the john program. It works correctly but I can not make unshadow command because I have removed the file /usr/bin/john by mistake

[root@localhost src]# cd ../run
[root@localhost run]# ./john /root/shadow
Loaded 2 password hashes with 2 different salts (FreeBSD MD5 [32/32])
letmein          (root)
letmein          (joe)
guesses: 2  time: 0:00:00:00 100% (2)  c/s: 6579  trying: letmein

Then I removed /usr/bin/john, I could do shadow:

[root@localhost run]# ./john /root/shadow
No password hashes loaded
[root@localhost run]# umask 077
[root@localhost run]# unshadow /etc/passwd /etc/shadow > mypasswd2
bash: unshadow: command not found
[root@localhost ~]# which john
/usr/bin/which: no john in (/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin)
You have mail in /var/spool/mail/root
[root@localhost ~]#

So could you help and advise me what should I do?

Reinstall JTR.

How can I reinstall JTR please?

what commands should I write

Just like you installed it previously?

I have tried to install it but after installing it, the problem is still also when I do the command which john it gives me output that seems john is not installed so could you tell me how can install it.

I have install it as sourse code from here John the Ripper - how to install

After you run the 'make' command from your tutorial in the john-1.7./src directory, and after compilation is successfully finished all files, will end up in the john-1.7./run directory. JTR does not come with a 'make install' target so you either have to reference the full path to the "run" directory or copy files and symbolic links to a directory in your path like /usr/local/bin. After that you can use the 'unshadow' command without having to prefix a path.