- # MD0A Crack
- # Cracks MD5 Hashes
- # using wordlists
- # has the option to use
- # salts.
- # Created By: [fazed]
- import md5
- class md5_salt():
- def new(self, salt, hash, user):
- global xsalt
- global xhash
- global xuser
- xsalt = salt
- xhash = hash
- xuser = user
- def crack(self, wordlist):
- fh = open(wordlist, 'r')
- list = fh.read()
- fh.close()
- list.split('n')
- x = len(list)
- i = 0
- while i < x:
- m = md5.new()
- m.update(xuser + list[i] + xsalt)
- h = m.hexdigest()
- if h == xhash:
- # returns hash if cracked
- return(list[i])
- i += 1
- # returns 0 if not cracked.
- return(0)
- class md5_plain():
- def new(self, hash):
- global xhash
- xhash = hash
- def crack(self, wordlist):
- fh = open(wordlist, 'r')
- words = fh.read()
- fh.close()
- words = words.split('n')
- i = len(words)
- j = 0
- while j < i:
- m = md5.new()
- m.update(words[j])
- h = m.hexdigest()
- if h == xhash:
- # returns the hash if cracked
- return(list[i])
- j += 1
- # returns 0 if hash not cracked
- return(0)
fg
By: s | Date: Dec 19 2007 18:04 | Format: None | Expires: never | Size: 1.14 KB | Hits: 1324
Latest pastes
55 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago