EvilZone

Programming and Scripting => Scripting Languages => Topic started by: daxda on October 13, 2013, 02:47:56 PM

Title: [Source] HashHunter.py
Post by: daxda on October 13, 2013, 02:47:56 PM
The guys from IRC encouraged me to publish the source of my hashcracker. It uses the well known wordlist agains hash check. Currently it only takes one hash at a time, but hey now you've got the source! You are free to use and modify and create your own stuff based on it! Leave feedback or improvements and the like if you want to! :)

Updated the hash hunter, it now supports brutforcing passwords.
View a video of it here (https://www.youtube.com/watch?v=uaiWa87NqfY)

[gist]Daapii/7066546[/gist]

view the old version here (https://gist.github.com/Daapii/6961881)
 
Title: Re: [Source] HashHunter.py
Post by: NovaCygni on October 13, 2013, 04:21:27 PM
Nice work ^^
Title: Re: [Source] HashHunter.py
Post by: Kulverstukas on October 13, 2013, 04:44:01 PM
Not bad at all, however I suggest you put separate boolean checks into parentheses, the code will be more readable, like
Code: [Select]
elif choice == "2" or choice == "sha1" or choice == "SHA-1" or choice == "SHA1" or choice == "sha-1":
should be
Code: [Select]
elif (choice == "2") or (choice == "sha1") or (choice == "SHA-1") or (choice == "SHA1") or (choice == "sha-1"):
Title: Re: [Source] HashHunter.py
Post by: daxda on October 13, 2013, 04:49:49 PM
Nice work ^^

Thanks!


@Kulverstukas,
thanks for your feedback :)
Title: Re: [Source] HashHunter.py
Post by: proxx on October 13, 2013, 05:11:04 PM
I would personally have trimmed it down, but it looks pretty good to me.
Peformance wise it will probably suck but thats not the point here.
Code is very readable/understandable , some comments would be nice though.

You could try to compile the convertToHash() with cython for speed increase.
https://en.wikipedia.org/wiki/Cython
This compiles code to C as a module very nice stuff, massive increase in speed.
Title: Re: [Source] HashHunter.py
Post by: daxda on October 13, 2013, 05:24:57 PM
Thanks for your feedback proxx, will definitely look into cython! :)