Advertisement
Guest User

Untitled

a guest
Aug 1st, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.83 KB | None | 0 0
  1. import linecache, hashlib
  2.  
  3. alphaNumeric = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",1,2,3,4,5,6,7,8,9,0]
  4.  
  5. class main:
  6.     def checker():
  7.         try:
  8.             while 1:
  9.                 if hashlib.md5(alphaNumeric[num1]) == passwordHash:
  10.                     print "Success! Your password is: " + str(alphaNumeric[num1])
  11.                     break
  12.         except KeyboardInterrupt:
  13.             print "Keyboard Interrupt."
  14.  
  15.     global num1, passwordHash, fileToCrack, numOfChars
  16.     print "What file do you want to crack?"
  17.     fileToCrack = raw_input("> ")
  18.     print "How many characters do you want to try?"
  19.     numOfChars = raw_input("> ")
  20.     print "Scanning file..."
  21.     passwordHash = linecache.getline(fileToCrack, 1)[0:32]
  22.     num1 = 0
  23.                
  24.     checker()
  25.  
  26. main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement