C++ In Linux
Write a C program to crack a password in the Linux /etc/shadow file.
Requirements :
Write a program using the programming language of your choice (C is the best bet because the mcrypt function is native to C) to implement a password cracker for Linux. I am only requiring a rainbow table implementation and you can add a dictionary or brute force attack if you want a more challenging programming assignment. The program should take the shadow file and a user name as arguments and recover the specified user's password. The program quits with a warning if the user does not exist or does not have a password. On completion, the program should display a recovered password. If the password is not in the dictionary, the program should state “password not in dictionary” upon completion.
Deliverables:
Submit the code along with a readme.txt file that documents the program and explains step-by-step how to run it.
Resources: C Tutorials
http://www.cprogramming.com/ http://www.learnconline.com/
mcrypt function
http://linux.die.net/man/3/mcrypt