猿人学第9题js混淆-动态cookie2

This commit is contained in:
luzhisheng 2023-08-29 15:11:55 +08:00
parent a0d7a65c96
commit fad59eebfa
3 changed files with 4 additions and 5 deletions

View File

@ -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']
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -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