Skip to content

Commit

Permalink
Update add_finger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adysec authored May 24, 2024
1 parent 74f8053 commit 418e4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/add_finger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def update_data(token):
"Token": token,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.160 Safari/537.36"
}
response = requests.post("https://127.0.0.1:5003/api/fingerprint/", json=payload, headers=headers, verify=False)
response = requests.post("https://127.0.0.1:5003/api/fingerprint/", json=payload, headers=headers,timeout=20, verify=False)
if response.status_code==200:
print(f"[+] 指纹:'{name}'\t规则:{rule}")
else:
Expand All @@ -38,7 +38,7 @@ def do_login():
burp0_url = "https://127.0.0.1:5003/api/user/login"
burp0_headers = {"Sec-Ch-Ua": "\"Chromium\";v=\"121\", \"Not A(Brand\";v=\"99\"", "Accept": "application/json, text/plain, */*", "Content-Type": "application/json; charset=UTF-8", "Sec-Ch-Ua-Mobile": "?0", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.160 Safari/537.36", "Sec-Ch-Ua-Platform": "\"Windows\"", "Origin": "https://127.0.0.1:5003", "Sec-Fetch-Site": "same-origin", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Dest": "empty", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "zh-CN,zh;q=0.9", "Priority": "u=1, i"}
burp0_json={"password": "arlpass", "username": "admin"}
res = requests.post(burp0_url, headers=burp0_headers, json=burp0_json, verify=False)
res = requests.post(burp0_url, headers=burp0_headers, json=burp0_json,timeout=20, verify=False)
if res.json()['code']==200:
print("[+] login Success! ")
token = res.json()['data']['token']
Expand Down

0 comments on commit 418e4ca

Please sign in to comment.