Created
August 11, 2020 16:55
-
-
Save bergpb/95399f768ced9e5e99935b6e7c194664 to your computer and use it in GitHub Desktop.
Send fake data to phishing web pages
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
import requests | |
import random | |
import string | |
from faker import Faker | |
from time import sleep | |
faker = Faker() | |
def get_random_alphanumeric_string(letters_count, digits_count): | |
sample_str = ''.join((random.choice(string.ascii_letters) for i in range(letters_count))) | |
sample_str += ''.join((random.choice(string.digits) for i in range(digits_count))) | |
sample_list = list(sample_str) | |
random.shuffle(sample_list) | |
final_string = ''.join(sample_list) | |
return final_string | |
while True: | |
url = "https://www.riadnaya.com/wd/public_html/webmail/webmail/HiTman2.php" | |
password = get_random_alphanumeric_string(5, 3) | |
faker_email = faker.email() | |
username = faker_email.split('@')[0] | |
data = { | |
'referer': '/', | |
'email': faker_email, | |
'username': username, | |
'password': password, | |
'confirmpassword': password, | |
'datacheck': 'memomomo@dos11.com' | |
} | |
print(data) | |
status = requests.post(url, data) | |
print(status.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment