-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
90 lines (73 loc) · 2.31 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# pip install requests
# pip install Faker
import requests
import os
import random
import string
import threading
from faker import Faker
fake = Faker()
chars = string.ascii_letters + string.digits + '!@#$%^&*()'
random.seed(os.urandom(1024))
url_flush = ""
url_card = ""
def flush_database(url):
email_endings = [
"gmail.com",
"yahoo.com",
"outlook.com",
"hotmail.com",
"aol.com",
"icloud.com",
"mail.com",
"zoho.com",
"protonmail.com",
"yandex.com"
]
for i in range(1000):
first_name = fake.first_name()
last_name = fake.last_name()
name_extra = ''.join(random.choice(string.digits))
username = last_name + "." + first_name + name_extra + "@" + random.choice(email_endings)
password = ''.join(random.choice(chars) for i in range(random.randint(8, 14)))
requests.post(url, allow_redirects=False, data={
'username': username,
'password': password
})
print(f'sending username {username} and password {password}')
def card_number_sending(url, thread_id):
i = 0
while True:
i += 1
status_code, response_text = send_post_request(url)
print(f"Thread {thread_id} - Request {i}: Status Code = {status_code}")
print(f"Thread {thread_id} - Money he lost: {i * 0.2:.1f}$")
if i == 20:
break
headers = {
# will not give an example for this because it has some sensitive details
}
payload = {
"captcha": "",
"step": "",
"IDNumber": "620721197305109531",
"full": "name lastname",
"one": "4940 7233 1497 0171",
"two": "23/34",
"three": "1234",
"submit": ""
}
def send_post_request(url):
response = requests.post(url, headers=headers, data=payload)
return response.status_code, response.text
thread1 = threading.Thread(target=flush_database, args=(url_flush,))
thread1.start()
threads = []
for i in range(20):
thread = threading.Thread(target=card_number_sending, args=(url_card, i+1))
threads.append(thread)
thread.start()
thread1.join()
for thread in threads:
thread.join()
print(f"Go to https://safebrowsing.google.com/safebrowsing/report_phish/?hl=en and report the url")