Cracking hashes with Python
denismfmcmahon at gmail.com
Tue Nov 26 19:33:40 CET 2013
On Tue, 26 Nov 2013 14:18:33 +0000, TheRandomPast . wrote:
> - Teacher has taught us nothing about MD5. This being the script he
> wanted us to write came as a surprise to everyone but complaints about
> projects are constantly ignored. This particular teacher is complained
> about for this reason every year but nothing ever changes.
ok .... forget about python for a minute.
write down the steps you need to follow to solve the problem in plain
1) Get the list of hashes from a website
2) Brute force the hashes using a dictionary
But 2 needs a dictionary:
1) Load a dictionary
2) Get the list of hashes from a website
3) Brute force the hashes using a dictionary
So you need a function to load the dictionary (from a local file?), a
function to get the list of hashes, a function to try and brute force a
hash using the dictionary, and some logic to tie it all together.
global data: list of words, list of hashes
load_dictionary ( file )
read the words from the file
get_hashes( url )
read the hashes from the url
do every hash in hashes
do every word in words
if md5( word ) is hash
solved this hash!
load_dictionary( "dictionary file name" )
get_hashes( "http://www.website.tld/path/file.ext" )
Denis McMahon, denismfmcmahon at gmail.com
More information about the Python-list