资源简介
四六级准考证号前10位与所在学校有关,后五位的前三位是考场号,后两位是座号,根据自己的情况修改遍历范围,如何运行程序,输入准考证号前十位及姓名即可
代码片段和文件信息
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
#url=‘http://www.chsi.com.cn/cet/query?zkzh=3705511721*****&xm=张三‘
import requests
import re
import threading
import os
zkzh1 = input(“please input zkzh:“);
xm = input(“and your name ? :“)
url = ‘http://www.chsi.com.cn/cet/query‘
hea = {
‘User-Agent‘:‘Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/41.0.2272.118 Safari/537.36‘
‘Referer‘ : ‘http://www.chsi.com.cn/cet/‘
}
text = ‘table border=“0“ align=“center“ cellpadding=“0“ cellspacing=“6“ class=“cetTable“‘
class A(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
m = -1
for i in range(2000022500):
if m is not -1:
break
zkzh = zkzh1 + str(“%05d“ % i)
print(zkzh)
data ={
‘url‘: “http://www.chsi.com.cn/cet/“
‘OperatingSystem‘: ““
‘Browser‘: ““
‘zkzh‘: zkzh
‘xm‘: xm
‘submit‘: ““
}
loginhtml = requests.post(urldata = dataheaders = hea)
#print(loginhtml.text)
m = loginhtml.text.find(text)
if m is not -1:
print(“OK! “ + zkzh)
os._exit(0)
class B(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
m = -1
for i in range(2250025000):
if m is not -1:
break
zkzh = zkzh1 + str(“%05d“ % i)
print(zkzh)
data ={
‘url‘: “http://www.chsi.com.cn/cet/“
‘OperatingSystem‘: ““
‘Browser‘: ““
‘zkzh‘: zkzh
‘xm‘: xm
‘submit‘: ““
}
- 上一篇:史上最强淘宝秒杀脚本
- 下一篇:51Job.py
评论
共有 条评论