This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen.py
135 lines (105 loc) · 4.52 KB
/
gen.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import requests
import random
import string
import time
import re
from colorama import Fore, Style, init
import threading
init()
def generate_random_string(length):
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for _ in range(length))
def print_gradient(text):
length = len(text)
for i, char in enumerate(text):
ratio = i / length
r = int(255 * (1 - ratio))
g = int(255 * ratio)
b = 0
print(f"\033[38;2;{r};{g};{b}m{char}", end='')
print(Style.RESET_ALL)
def generate_and_verify_account():
email = generate_random_string(10) + "@1secmail.com"
password = generate_random_string(12)
username = generate_random_string(8)
data = {
"email": email,
"password": password,
"password_confirmation": password,
"username": username
}
headers = {
"content-type": "application/json",
"origin": "https://vmateai.com",
"referer": "https://vmateai.com/",
"sec-ch-ua": '"Chromium";v="128", "Not;A=Brand";v="24", "Microsoft Edge";v="128"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": '"Windows"',
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"
}
response = requests.post("https://api.vmate.ai/api/v1/register_by_email", headers=headers, json=data)
if response.status_code == 200:
print_gradient(f"[+]Generated account: {email}, password: {password}")
else:
print("[!]Failed to generate email and password.")
return
time.sleep(3)
inbox_url = f"https://www.1secmail.com/api/v1/?action=getMessages&login={email.split('@')[0]}&domain=1secmail.com"
inbox_response = requests.get(inbox_url)
messages = inbox_response.json()
if messages:
message_id = messages[0]['id']
message_url = f"https://www.1secmail.com/api/v1/?action=readMessage&login={email.split('@')[0]}&domain=1secmail.com&id={message_id}"
message_response = requests.get(message_url)
message_content = message_response.json()
token_match = re.search(r'https://vmate.ai/confirm-email\?token=([\w-]+\.[\w-]+\.[\w-]+)', message_content['body'])
if token_match:
token = token_match.group(1)
verify_data = {
"token": token
}
verify_headers = {
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br, zstd",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Connection": "keep-alive",
"Content-Length": "187",
"Content-Type": "application/json",
"Host": "api.vmate.ai",
"Origin": "https://vmateai.com",
"Referer": "https://vmateai.com/",
"sec-ch-ua": '"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": '"Windows"',
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "cross-site",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
}
verify_response = requests.post("https://api.vmate.ai/api/v1/email_verify", headers=verify_headers, json=verify_data)
if verify_response.status_code == 200:
print_gradient(f"[+]Verified: {email}:{token}")
with open("credentials.txt", "a") as file:
file.write(f"{email}:{password}:{token}\n")
print(f"[+]Saved: {email}:{password}:{token}")
else:
print("[!]Failed to verify email.")
else:
print("[!]Token not found in the email.")
else:
print("[!]No messages found.")
threads = int(input("[?]how much threads ->"))
loops = int(input("[?]how much accounts too gen ->"))
threads_list = []
for _ in range(threads):
thread = threading.Thread(target=generate_and_verify_account)
thread.daemon = True
threads_list.append(thread)
thread.start()
for _ in range(loops):
generate_and_verify_account()
for thread in threads_list:
thread.join()