Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import glob
- import re
- import base64
- from sys import argv as sa
- #input:
- #email,hash,plaintext,source,hashtype
- #000alejandro000@gmail.com,NULL,avm777EO,breach of ea origin accounts,plaintext
- #output:
- #000alejandro000@gmail.com:000alejandro000:gmail.com,NULL:avm777EO:breach of ea origin accounts
- d = glob.glob(sa[1])
- find = re.compile(r"([^,]*)")
- try:
- for i in d:
- with open(i, "r") as f:
- for x in f:
- x = x.strip()
- output = re.split(find,x)
- #print output
- if len(output) > 2:
- try:
- email=output[1]
- except Exception as e:
- print("Failed on email: %s") % e
- pass
- try:
- user=str(email).split("@")[0]
- except Exception as e:
- #print("Failed on user: %s") % e
- pass
- try:
- domain=str(email).split("@")[1]
- except Exception as e:
- # print("Failed on domain: %s") % e
- pass
- try:
- hash=str(output[3])
- except Exception as e:
- # print("Failed on hash: %s") % e
- pass
- try:
- pwd=str(output[5])
- except Exception as e:
- # print("Failed on pwd: %s") % e
- pass
- try:
- #source=str(output[7])
- source = re.sub(' ','_',re.sub('(unknown time|breach(ed|)( of|)|pre-cracked|credentials( list|)|leak|accounts) ', '', str(output[7])))
- except Exception as e:
- # print("Failed on source: %s") % e
- pass
- try:
- hashtype=str(output[9])
- except Exception as e:
- # print("Failed on hashtype: %s") % e
- pass
- print '%s:%s:%s:%s:%s:%s:%s' % (email,user,domain,hash,pwd,source,hashtype)
- except Exception as e:
- #print e
- print output
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement