某平台薅毛测试

某平台薅毛测试

5月 28, 2022 阅读 196 字数 916 评论 0 喜欢 1
import time
import requests
requests.packages.urllib3.disable_warnings()
headers = {"user-agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.9 Safari/537.36",
           "content-type": "application/x-www-form-urlencoded"}
regurl = "https://www.xxx.cc/User/UserReg"
logurl = "https://www.xxx.cc/User/UserLogin"
n = 0
while True:
    phone = int(time.time())
    password = "789456"
    usercode = "q9cucx"
    regdata = {"Area": "Area", "Phone": phone, "Password": password, "InviteCode": usercode, "NickName": "", "Email": "", "OfSelect": "1",
               "Token": "Token", "langu": 0}
    data = {'User': f'{regdata}'}
    response = requests.post(regurl, data=data, headers=headers, verify=False)
    print(response.text)
    time.sleep(10)
    data = {"Phone": phone, "Password": password, "token": "null", "langu": 0}
    response = requests.post(logurl, data=data, headers=headers, verify=False)
    print(response.text)
    time.sleep(10)

随手一写,请不要见笑~~

发表评论

您的电子邮箱地址不会被公开。