Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- from random import randint
- from os.path import isfile
- import requests
- TARGET_URL = "http://craigslist.pottsfam.com/index872dijasydu2iuad27aysdu2yytaus6d2ajsdhasdasd2.php"
- CHANCE_FOR_GMAIL = 70 # The chance of the fake email ending with @gmail.com - out of 100
- def requests_check_fail(r: requests.Response) -> None:
- if r.status_code != 200:
- print(f"{r.url} GET failed with status code {r.status_code}", end='\n\n')
- input("Press ENTER to exit.")
- exit(1)
- def GetRandomEmailDomain() -> str:
- if randint(0, 99) < CHANCE_FOR_GMAIL:
- return "@gmail.com" # GMail master race
- return domains[randint(0, len(domains) - 1)]
- domains = [
- "@hotmail.com",
- "@outlook.com",
- "@yahoo.com",
- "@comcast.net",
- "@verizon.net"
- ]
- print("Loading passwords")
- r = requests.get("https://raw.githubusercontent.com/skyzyx/bad-passwords/master/raw.txt")
- requests_check_fail(r)
- passwords = r.text.split('\n')
- def main():
- while True:
- print("Loading user info", end='\n\n')
- r = requests.get(
- "https://randomuser.me/api/", {
- "results": "5000",
- "inc": "login,email" # Didn't use the passwords from randomuser because they sucked when I was testing it
- })
- requests_check_fail(r)
- users = json.loads(r.content)
- if not users.get("error", 1):
- print(users["error"], end='\n\n')
- input("Press ENTER to exit.")
- exit(2)
- for user in users["results"]:
- # Use a combination of usernames and emails to make it harder to filter out spam entries
- username = user["login"]["username"] if randint(0, 1) else user["email"].replace(
- "@example.com", "@gmail.com" if randint(0, 99) < CHANCE_FOR_GMAIL else domains[randint(0, len(domains) - 1)])
- password = passwords[randint(0, 9999)]
- # Make a few characters uppercase to look more convincing
- for j in range(int( randint(0, len(password)) / 2 )):
- i = randint(0, len(password) - 1)
- password = password.replace(password[i], password[i].upper(), 1)
- # Make sure at least 1 character is uppercase
- for i in range(len(password)):
- if password[i].isupper():
- break
- else:
- password = password.replace(password[0], password[0].upper(), 1)
- requests.post(TARGET_URL, {"auid2yjauysd2uasdasdasd": username, "kjauysd6sAJSDhyui2yasd": password}, allow_redirects=False)
- print(f"Username: {username}\nPassword: {password}", end='\n\n')
- if __name__ == "__main__":
- try:
- main()
- except Exception as e:
- print(e)
- input("\nPress ENTER to exit.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement