geeko Posted April 14, 2015 Report Posted April 14, 2015 #!/usr/bin/env python#coded by D3v1l#https://0day.inimport sysemails = open(sys.argv[1], "r")hotmail = open("hotmail.txt", "a")aol = open("aol.txt", "a")gmail =open("gmail.txt","a")yahoo =open("yahoo.txt","a")for email in emails: if 'hotmail' in email: hotmail.write(email) if 'aol' in email : aol.write(email) if 'gmail' in email: gmail.write(email) if 'yahoo' in email: yahoo.write(email)emails.close()hotmail.close()aol.close()gmail.close()yahoo.close() Quote
yo20063 Posted May 20, 2017 Report Posted May 20, 2017 Coded by drunk_bastard, version 1.0 helper to your 1.0 #homework import random import string bullshit_mail = ["aol", "gmail", "hotmail", "yahoo"] some_random_numbers = [5, 12, 17, 9, 26] mails = "a_lot_of_mails_MOTHERFUCKER.txt" def a_string(size=random.choice(some_random_numbers), chars=string.ascii_uppercase + string.digits): return ''.join(random.choice(chars) for bla in range(size)) number_of_mails_MOTHERFUCKER = 20 #how many mails Motherfucker you want him to filter, MOTHERFUCKER! MAIL = open(mails, "w+") for motherfuckers in xrange(1, number_of_mails_MOTHERFUCKER): # I hate 0's Motherfuckers MAIL.write("{0}{1}{2}\n".format(a_string(), random.choice(bullshit_mail), a_string())) MAIL.close() Hint: regex or requirments, Motherfucker! PS: Can't wait version 1.1 Quote