mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-12 11:37:09 +08:00
猿人学第9题js混淆-动态cookie2
This commit is contained in:
parent
a0d7a65c96
commit
fad59eebfa
@ -11582,7 +11582,7 @@ function decrypt(_0x50f9fa) {
|
||||
|
||||
function get_m(time){
|
||||
res = decrypt(time) + 'r';
|
||||
document['cookie'] = 'm=' + '2' + res + '; path=/';
|
||||
document['cookie'] = 'm=' + '2' + res;
|
||||
return document['cookie']
|
||||
}
|
||||
|
||||
|
BIN
猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/img/8.png
Normal file
BIN
猿人学Web端爬虫攻防刷题平台/猿人学第9题js混淆-动态cookie2/img/8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
@ -1,7 +1,6 @@
|
||||
import re
|
||||
|
||||
import requests
|
||||
import time
|
||||
import json
|
||||
|
||||
|
||||
@ -30,12 +29,12 @@ class 实例1(object):
|
||||
return sign
|
||||
|
||||
def get_task(self, i, time_str):
|
||||
cookie = self.get_sign(time_str)
|
||||
print(cookie)
|
||||
m = self.get_sign(time_str)
|
||||
print(m)
|
||||
url = f"https://match.yuanrenxue.cn/api/match/9?page={i}"
|
||||
Headers = {
|
||||
"User-Agent": "yuanrenxue.project",
|
||||
"cookie": cookie
|
||||
'Cookie': f'm={m}; sessionid=t9dlfwn9s4ed4z1w1sktxg3k55dc3ko6'
|
||||
}
|
||||
req = requests.get(url, headers=Headers)
|
||||
return req.text
|
||||
|
Loading…
x
Reference in New Issue
Block a user