mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 10:25:01 +08:00
猿人学第17题-天杀的http2.0
This commit is contained in:
parent
6d0bad2592
commit
1fc081164e
4
猿人学第19题-Ja3指纹加密/readme.md
Normal file
4
猿人学第19题-Ja3指纹加密/readme.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
js逆向知识-Ja3指纹学习
|
||||||
|
|
||||||
|
https://blog.csdn.net/weixin_43411585/article/details/122314214
|
||||||
|
|
45
猿人学第19题-Ja3指纹加密/测试.py
Normal file
45
猿人学第19题-Ja3指纹加密/测试.py
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
import requests
|
||||||
|
import json
|
||||||
|
from requests.adapters import HTTPAdapter
|
||||||
|
from requests.packages.urllib3.util.ssl_ import create_urllib3_context
|
||||||
|
|
||||||
|
CIPHERS = (
|
||||||
|
'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:RSA+3DES:!aNULL:'
|
||||||
|
'!eNULL:!MD5'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class DESAdapter(HTTPAdapter):
|
||||||
|
def init_poolmanager(self, *args, **kwargs):
|
||||||
|
context = create_urllib3_context(ciphers=CIPHERS)
|
||||||
|
kwargs['ssl_context'] = context
|
||||||
|
return super(DESAdapter, self).init_poolmanager(*args, **kwargs)
|
||||||
|
|
||||||
|
def proxy_manager_for(self, *args, **kwargs):
|
||||||
|
context = create_urllib3_context(ciphers=CIPHERS)
|
||||||
|
kwargs['ssl_context'] = context
|
||||||
|
return super(DESAdapter, self).proxy_manager_for(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
s = requests.Session()
|
||||||
|
s.mount('https://match.yuanrenxue.com', DESAdapter())
|
||||||
|
|
||||||
|
|
||||||
|
def get_num(s):
|
||||||
|
num = 0
|
||||||
|
for i in range(1, 6):
|
||||||
|
url = f"https://match.yuanrenxue.com/api/match/19?page={i}"
|
||||||
|
Headers = {
|
||||||
|
"user-agent": "yuanrenxue.project",
|
||||||
|
"cookie": "sessionid=8rrqpz36de5lnyebo9jfg4bkzkda7vgt;"
|
||||||
|
}
|
||||||
|
res = s.get(url=url, headers=Headers)
|
||||||
|
res_dict = json.loads(res.text)
|
||||||
|
print(res_dict)
|
||||||
|
data = res_dict.get('data')
|
||||||
|
for i in data:
|
||||||
|
num += i['value']
|
||||||
|
print(num)
|
||||||
|
|
||||||
|
|
||||||
|
get_num(s)
|
Loading…
x
Reference in New Issue
Block a user