Skip to content

Instantly share code, notes, and snippets.

@GarnetSunset
Created May 24, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarnetSunset/62f461961ab4a0dbe0c9074ede22806d to your computer and use it in GitHub Desktop.
Save GarnetSunset/62f461961ab4a0dbe0c9074ede22806d to your computer and use it in GitHub Desktop.
Wrote this in a fit of rage for spam emails I was getting.
import requests, names, random
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Content-Type': 'application/x-www-form-urlencoded',
'Origin': 'http://clubaaa.xyz',
'DNT': '1',
'Connection': 'keep-alive',
'Referer': 'http://clubaaa.xyz/opt.php?d=0&l=0&c=0&cr=21&em=',
'Upgrade-Insecure-Requests': '1',
}
params = (
('d', '0'),
('l', '0'),
('c', '0'),
('em', ''),
)
emails = ["@yahoo.com","@att.net","@gmail.com","@outlook.com","@icloud.com","@aol.com"]
while True:
data = {
'd': '0',
'l': '0',
'c': '0',
'em': '',
'email': names.get_first_name()+names.get_last_name()+random.choice(emails)
}
print(names.get_first_name()+names.get_last_name()+random.choice(emails))
response = requests.post('http://clubaaa.xyz/opt.php', headers=headers, params=params, data=data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment