?
聲明:
本文章中所有內容僅供學習交流使用,不用于其他任何目的,抓包內容、敏感網址、數據接口等均已做脫敏處理,嚴禁用于商業用途和非法用途,否則由此產生的一切后果均與作者無關!
部分python代碼
response = requests.post('cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
imgStr = data["img"]
img = json.loads(imgStr)
b1 = img['b1']
b2 = img['b2']
with open('b1.jpg','wb') as f:
f.write(base64.b64decode(b1.replace('data:image/jpg;base64,','')))
with open('b2.png','wb') as f:
f.write(base64.b64decode(b2.replace('data:image/png;base64,','')))
# verify(st, sessionId, distance)
with open('b1.jpg','rb') as fp:
background_bytes = fp.read()
with open('b2.png','rb') as fp:
target_bytes = fp.read()
。。。。。。。。。。。。。。。。。。。。。
data = huakuai.call('verify',st,sessionId,new_track,img)
response = requests.post('cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
print(data)
vt = data.get('vt')
response = requests.post('cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
imgStr = data["img"]
img = json.loads(imgStr)b1 = img['b1']
b2 = img['b2']
with open('b1.jpg','wb') as f:f.write(base64.b64decode(b1.replace('data:image/jpg;base64,','')))
with open('b2.png','wb') as f:f.write(base64.b64decode(b2.replace('data:image/png;base64,','')))
# verify(st, sessionId, distance)
with open('b1.jpg','rb') as fp:background_bytes = fp.read()
with open('b2.png','rb') as fp:target_bytes = fp.read()
。。。。。。。。。。。。。。。。。。。。。
data = huakuai.call('verify',st,sessionId,new_track,img)
response = requests.post('cgi-bin/api/check', cookies=cookies, headers=headers, data=data)
data = response.json()
print(data)
vt = data.get('vt')