-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (23 loc) · 821 Bytes
/
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
import requests, threading, random
class Checker:
def __init__(self):
self.threads = 10
self.hits = 0
self.fails = 0
self.file = open('hits.txt', 'a')
while True:
if threading.active_count() < self.threads:
threading.Thread(target=self.check_email)
def check_email(self):
email = f"{''.join(random.choices('abcdefghijklmnopqrstuvwxyz', k=5))}@gmail.com"
r = requests.get(f"https://mail.google.com/mail/gxlu?email={email}")
try:
if r.headers["Set-Cookie"]:
self.fails += 1
else:
self.hits += 1
print(email); print(email, file=self.file)
except:
self.hits += 1
print(email, file=self.file)
Checker()