Advertisement
Nicolai

Adobe leak: Analyzer

Nov 11th, 2013
730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. mails = set([])
  2. dup_mails = set([])
  3. domains = {}
  4. passwords = {}
  5.  
  6. with open("/home/user/adobe/cred") as f:
  7.     for line in f:
  8.         a = line.find("-|--|-") + 6 #len("-|--|-")
  9.         b = line.find("-|-", a)
  10.         mail = line[a:b]
  11.        
  12.         if mail in mails:
  13.             dup_mails.add(mail)
  14.         else:
  15.             mails.add(mail)
  16.        
  17.         c = mail.find("@")
  18.         domain = mail[c+1:]
  19.        
  20.         if domain in domains:
  21.             domains[domain] += 1
  22.         else:
  23.             domains[domain] = 1
  24.        
  25.         d = b + 3 #len("-|-")
  26.         e = line.find("-|-", d)
  27.         password = line[d:e]
  28.        
  29.         if password in passwords:
  30.             passwords[password] += 1
  31.         else:
  32.             passwords[password] = 1
  33.        
  34.         f = e + 3 # len("-|-")
  35.         hint = line[f:-4] # len("|--\n")
  36.        
  37.         # Do stuff
  38.         if mail == "bill@microsoft.com" or domain == "fbi.com" or password == "CaTLovER==":
  39.             print line,
  40.  
  41. #print "mails:", len(mails)
  42. #print "dup mails:", dup_mails
  43.  
  44. # Credit: http://pastebin.com/u/Nicolai
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement