Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Usage : python mail.py mailist.txt
- import requests
- import re
- import sys
- import threading
- # COLOR
- red = "\033[31m"
- green = "\033[32m"
- cyan = "\033[36m"
- yellow = "\033[93m"
- blue = "\033[34m"
- purple = "\033[35m"
- orange = "\033[33m"
- CEND = "\033[0m"
- def separate(url):
- try:
- if '@gmail' in url:
- print('[ {}{}{} ] : Gmail').format(green,url,CEND)
- open('GMAIL.txt', 'a').write(url + '\n')
- elif '@yahoo' in url:
- print('[ {}{}{} ] : Yahoo!').format(cyan,url,CEND)
- open('YAHOO.txt', 'a').write(url + '\n')
- elif '@gmx' in url:
- print('[ {}{}{} ] : GMX Mail').format(yellow,url,CEND)
- open('GMX.txt', 'a').write(url + '\n')
- elif '@aol' in url:
- print('[ {}{}{} ] : AOL').format(blue,url,CEND)
- open('AOL.txt', 'a').write(url + '\n')
- elif '@hotmail' in url:
- print('[ {}{}{} ] : HOTMail').format(purple,url,CEND)
- open('HOTMAIL.txt', 'a').write(url + '\n')
- elif '@outlook' in url:
- print('[ {}{}{} ] : Outlook.com').format(orange,url,CEND)
- open('OUTLOOK.txt', 'a').write(url + '\n')
- else:
- print('[ {}{}{} ] : OTHERS').format(red,url,CEND)
- open('OTHER.txt', 'a').write(url + '\n')
- except:
- pass
- def main():
- threads = []
- email = open(sys.argv[1], 'r').read().splitlines()
- for mail in email:
- go = threading.Thread(target=separate, args=(mail,))
- threads.append(go)
- go.start()
- for go in threads:
- go.join()
- if __name__ == '__main__':
- main()
Add Comment
Please, Sign In to add comment