mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 10:25:01 +08:00
3js加密js第六节实战例题sojson解密,headers检测,动态cookie
This commit is contained in:
parent
9f96019d39
commit
b28798acc8
@ -84,9 +84,20 @@
|
|||||||
m = V(1678168607000);
|
m = V(1678168607000);
|
||||||
console.log(m);
|
console.log(m);
|
||||||
|
|
||||||
得到了`m`值,就可以模拟请求,发现返回的数据是不变的,为什么?
|
得到了`m`值,就可以模拟请求,
|
||||||
|
|
||||||
用charles代理拦截,查看请求体,最后猜测是`header`问题
|
def challenge3(page, m, timestamp):
|
||||||
|
url = "https://www.python-spider.com/api/challenge3"
|
||||||
|
payload = f"page={page}"
|
||||||
|
headers = {
|
||||||
|
'cookie': f'm={m}|{timestamp}'
|
||||||
|
}
|
||||||
|
response = requests.request("POST", url, headers=headers, data=payload)
|
||||||
|
return response.text
|
||||||
|
|
||||||
|
但发现返回的数据是不变的,为什么?
|
||||||
|
|
||||||
|
用charles代理拦截,对比查看请求体,最后猜测是`header`问题
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user