当前位置:网站首页>Ape anthropology topic 20
Ape anthropology topic 20
2022-07-28 23:43:00 【consult one's pillow】
**# Ape man science topic 20
First, discover by request , The request has only two parameters , One t and sign.
among t For timestamps ,sign For an encrypted string , The length of the string is 32.
Then analyze later ......
We enter window.sign Go inside this function . Because this is sign Encrypted place .
After repeated debugging for several times, it is found that getStringFromWasm0(r0, r1);, there r0 and r1 Is fixed . This function means to get encrypted parameters from a fixed location in memory .
We found the passed in parameters content, That is to say “2|1658741542000” That's this thing , It is quoted in only one place . Because I have analyzed .
// Parameters are put into memory here .
var ptr0 = passStringToWasm0(content, _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__["__wbindgen_malloc"], _index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__["__wbindgen_realloc"]);
// Here to content Encrypted , At this time, directly take the parameters from the memory , therefore , The memory address is passed in
_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__["sign"](retptr, ptr0, len0);
Use getStringFromWasm0(r0, r1); This function is tested and found ,ptr0 Memory address .
The last to enter
// Encryption function
_index_bg_wasm__WEBPACK_IMPORTED_MODULE_0__["sign"]
Check which function operates on this address .
call $match_twenty::sign::MD5:#️⃣:hd3cc2e6ebf304f6f
Here is the location of parameter encryption
Analysis of finished , Post code directly
import requests
import time
import hashlib
headers = {
'authority': 'match.yuanrenxue.com',
'accept': 'application/json, text/javascript, */*; q=0.01',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
'cache-control': 'no-cache',
'cookie': 'Hm_lvt_0362c7a08a9a04ccf3a8463c590e1e2f=1656481755,1656661058,1656985288,1658457383; Hm_lvt_c99546cf032aaa5a679230de9a95c7db=1658368336,1658454438,1658713011,1658720402; no-alert3=true; Hm_lvt_9bcbda9cbf86757998a2339a0437208e=1658368358,1658454446,1658713020,1658720406; tk=-111657350385238811; sessionid=dfl6r164x63xtt6tgv4r53im8bm075u1; Hm_lpvt_9bcbda9cbf86757998a2339a0437208e=1658736978; Hm_lpvt_c99546cf032aaa5a679230de9a95c7db=1658738427',
'pragma': 'no-cache',
'referer': 'https://match.yuanrenxue.com/match/20',
'sec-ch-ua': '^\\^.Not/A)Brand^\\^;v=^\\^99^\\^, ^\\^Google',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '^\\^Windows^\\^',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'yuanrenxue.project',
'x-requested-with': 'XMLHttpRequest',
}
count = 0
for page in range(1, 6):
# Get the timestamp
t = time.time()
t = str(int(t)) + "000"
# obtain sign Parameters
sign = hashlib.md5((str(page) + "|" + t + 'D# Add encryption parameters ').encode()).hexdigest()
params = (
('page', page),
('sign', sign),
('t', t),
)
response = requests.get('https://match.yuanrenxue.com/api/match/20', headers=headers, params=params)
data = response.json().get('data')
for i in data:
count += i.get('value')
print(count)
**
边栏推荐
- 编译原理研究性学习专题 2——递归下降语法分析设计原理与实现
- XML modeling
- [self] - brush questions logic
- Routeros limited DNS hijacking and check
- 超参数优化(网格搜索和贝叶斯优化)
- My second uncle is angry and swipes the screen all over the network. How can he cure my spiritual internal friction?
- mongodb索引添加、查看、导出、删除
- 【自】-刷题-动态规划
- How strong is this glue?
- 22牛客多校day1 J - Serval and Essay 启发式合并
猜你喜欢

机器学习问题笔记

解决线程安全问题&&单例模式

MyCms 自媒体商城 v3.6 发布,兼容微擎应用开发(Laravel框架)

Achieve high throughput through Wi Fi 7 - insight into the next generation of Wi Fi physical layer

What's special about this wireless router, which is popular in the whole network?

集火全屋智能“后装市场”,真正玩得转的没几个

Asynchronism and synchronization of visa write and read functions by LabVIEW

22 Niuke multi school Day1 I - Introduction to chiitoitsu DP

行泊一体迎爆发期,抢量产还是修技术护城河?

1314_ Serial port technology_ Basic information of RS232 communication
随机推荐
金仓数据库 KingbaseES 与 Oracle 的兼容性说明(4. SQL)
What is utxo?
金仓数据库 KingbaseES V8.3至V8.6迁移最佳实践(3. KingbaseES移植能力支撑体系)
零念科技完成Pre-A轮融资,推动智能驾驶平台软件国产替代
2022 R2 mobile pressure vessel filling test question simulation test platform operation
机器学习问题笔记
How to add the index of a set in mongodb to another set in mongodb
猿人学第二十题
电脑不知卸载什么,打不开计算器无法编辑截图功能打不开txt文件等等解决方案之一
CV目标检测模型小抄(2)
从XSS Payload学习浏览器解码
深开鸿:万物智联的大江上,升起一轮开源鸿蒙月
1314_ Serial port technology_ Basic information of RS232 communication
With the "integration of driving and parking", freytek's high-performance domain controller leads the new track
xss.haozi.me靶场详解
wget什么意思
Codeforces Round #474 (Div. 1 + Div. 2) - C, F
In order for digital retail to continue to play its role, we need to give new connotation and significance to digital retail
Samba service setup
解决线程安全问题&&单例模式