Brute Force Hacker


This is a small Unix C program that will use brute force hacking to decrypt a file encrypted using the standard "crypt" command in Unix. The program assumes that the key used for encryption is 4 ASCII characters long and is in the set [a-z0-9]. The encrypted file is given as input. The program decrypts the file with each possible key combination(36 * 36 * 36 * 36) possibilities. It checks the decrypted file to see whether it contains any valid characters [a-z0-9 ,.]. If so, the output is written onto a file, decrypted%key%.txt, where %key% is the key used for that particular decryption. There maybe a lot of such possible files generated. Any further narrow down on the files must be made manually.

Here is the code for the program.[C code]

Here is a sample encrypted text (provided by my professor!!). I am on the way to running the program for this text. As soon as I find the key for the text, I will put it up! [encrypted text]