Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 18th, 2005, 10:31 PM   #1
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Code suggestions

So, recently for practice, I decided to create an MD5 cracker in Perl. Call it a brute-forcer if you will, I don't particularly care as long as the message gets across as to what it does.
It works well, it creates hash tables and cracks hashes using them (any half-way decent Perl coder should be able to figure out how it works strictly by source code.)

A couple of friends have given me code suggestions, and so far it works well.
I've used a little reg exp knowledge to make sure the hash the user wants to be cracked is valid MD5, IE: It only has hexadecimal characters, and it's approximately 32 characters in length.

The source code can be found at this URL, a download of the cracker, that comes with a dictionary file and a hash file with 20 hashes, can be found here.
Please, give me suggestions on how to make my code better.

If you see any code bugs, please be sure to post them here.

I'm just glad I made it save system resources by not cracking the same hash twice and making it not even try to crack a hash if it isn't valid.
Mad_guy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC