Last active
December 7, 2023 04:34
-
-
Save ronsen/4b9ef468f4da41f7ff9423f4cc5b7b64 to your computer and use it in GitHub Desktop.
sending random email and password to a certain url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import random | |
import requests | |
import secrets | |
import time | |
import string | |
from faker import Faker | |
url = "" # phising url you need to attack | |
fake = Faker() | |
while True: | |
length = random.randint(2, 4) | |
number = random.randint(10 ** (length -1 ), 10 ** length - 1) | |
email = fake.first_name().lower() + str(number) + '@gmail.com'; | |
alphabet = string.ascii_letters + string.digits | |
password = ''.join(secrets.choice(alphabet) for i in range(20)) | |
print(email, password) | |
params = { | |
'email': fake.email(), | |
'password': password | |
} | |
response = requests.post(url, data=params) | |
if response.status_code != 200: | |
print('Request failed with status code:', response.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment