Powerful Python md5 Decrypter I Made

For the discussion of Perl, Python, Ruby, and PHP and other interpreted languages.

Re: Powerful Python md5 Decrypter I Made

Post by -Ninjex- on Wed Jun 19, 2013 3:50 pm
([msg=76176]see Re: Powerful Python md5 Decrypter I Made[/msg])

Just a quick side note for the OP;

Make sure you post into the correct sections on the forums, you were posting under the programming challenge missions, instead of the programming interpreted languages section which is located here:

viewforum.php?f=104


Note:

This topic has been moved to the correct section on the forums, thanks to cent.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1308
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: Powerful Python md5 Decrypter I Made

Post by Th3_M4d_H4tt3r on Wed Jun 19, 2013 4:35 pm
([msg=76177]see Re: Powerful Python md5 Decrypter I Made[/msg])

LOL, sorry, you can tell I am new :D
here is a dictionary based cracker, it can do ~10000 h/s on my computer(1G of RAM 8-) )
Code: Select all
'''
                               ,.--""-._
                            __/         `.
                       _,**"   "*-.       `.
                     ,'            `.       \
                    ;    _,.---._    \  ,'\  \
                   :   ,'   ,-.. `.   \'   \ :
  Th3 M4d H4tt3r   |  ;_\  (___)`  `-..__  : |
                   ;-'`*'"  `*'    `--._ ` | ;
                  /,-'/  -.        `---.`  |"
                  /_,'`--='.       `-.._,-" _
                   (/\\,--. \    ___-.`:   //___
                      /\'''\ '  |   |-`|  ( -__,'
                     '. `--'    ;   ;  ; ;/_/
                       `. `.__,/   /_,' /`.~;
                       _.-._|_/_,'.____/   /
                  ..--" /  =/  \=  \      /
                 /  ;._.\_.-`--'-._/ ____/
                 \ /   /._/|.\     ."
                  `*--'._ "-.:     :
                       :/".A` \    |
                       |   |.  `.  :
                       ;   |.    `. \SSt
'''

import hashlib
import sys
import time

dictfile=sys.argv[1]
crackfile=sys.argv[2]

def Crack(md5hash, word):
   if md5hash in hashlib.md5(word).hexdigest():
      print "[ "+str(time.clock())+" ] "+md5hash+" is: "+word

count = 0

print "PyCracker 2.0 - By Th3_M4d_H4tt3r"

with open(crackfile, "r") as f:
   for md5hash in f:
      md5hash = md5hash.translate(None, "\n")
      with open(dictfile, "r") as f:
         for word in f:
            word = word.translate(None, "\n")
            Crack(md5hash, word)
            count = count + 1
            print "Guessed Hashes: "+str(count)+"      "
            print "Total time elapsed: "+str(time.clock())
            print "\033[3A"
print "\n\nDone."

I love python as you can tell :mrgreen:
Tip me if I helped you!
BTC Address: 15wu8gxFAemZH3jC4km3Z8gMYtKHLxpnEv
User avatar
Th3_M4d_H4tt3r
Experienced User
Experienced User
 
Posts: 54
Joined: Tue Jun 18, 2013 8:25 am
Blog: View Blog (0)


Re: Powerful Python md5 Decrypter I Made

Post by e3cb on Thu Jun 20, 2013 10:18 am
([msg=76188]see Re: Powerful Python md5 Decrypter I Made[/msg])

If you are going to continue to write bruteforcers/password crackers, look in to C. Python is a good starting point; however, if you are going to do something as resource heavy as cracking, you really should look into writing with a compiled language. I'm not dissing python, I use it all the time to write simple shellcode encryption scripts, but you should rethink the use of this language with this task.
<3 FF E4 <3
Do you even asm bruh?
User avatar
e3cb
Experienced User
Experienced User
 
Posts: 62
Joined: Fri Feb 15, 2013 11:32 pm
Location: Orange County
Blog: View Blog (0)


Re: Powerful Python md5 Decrypter I Made

Post by Th3_M4d_H4tt3r on Thu Jun 20, 2013 4:20 pm
([msg=76195]see Re: Powerful Python md5 Decrypter I Made[/msg])

Nah, it was just a small project of mine.
But I love bruteforcing.
Tip me if I helped you!
BTC Address: 15wu8gxFAemZH3jC4km3Z8gMYtKHLxpnEv
User avatar
Th3_M4d_H4tt3r
Experienced User
Experienced User
 
Posts: 54
Joined: Tue Jun 18, 2013 8:25 am
Blog: View Blog (0)


Re: Powerful Python md5 Decrypter I Made

Post by -Ninjex- on Fri Jun 21, 2013 12:50 am
([msg=76201]see Re: Powerful Python md5 Decrypter I Made[/msg])

It's not efficient.
Take your time, do what e3cb said.
If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you.⠠⠵
The absence of evidence is not evidence of absence.
I can explain it for you, but I can't understand it for you.
User avatar
-Ninjex-
Addict
Addict
 
Posts: 1308
Joined: Sun Sep 02, 2012 8:02 pm
Blog: View Blog (0)


Re: Powerful Python md5 Decrypter I Made

Post by Th3_M4d_H4tt3r on Fri Jun 21, 2013 10:21 pm
([msg=76213]see Re: Powerful Python md5 Decrypter I Made[/msg])

Working in C now; trying to make buffer overflow exploits. :D
Tip me if I helped you!
BTC Address: 15wu8gxFAemZH3jC4km3Z8gMYtKHLxpnEv
User avatar
Th3_M4d_H4tt3r
Experienced User
Experienced User
 
Posts: 54
Joined: Tue Jun 18, 2013 8:25 am
Blog: View Blog (0)


Previous

Return to Interpreted Languages

Who is online

Users browsing this forum: No registered users and 0 guests