当前位置:网站首页>[JS reverse series] analysis of a customs publicity platform
[JS reverse series] analysis of a customs publicity platform
2022-07-02 02:55:00 【Yuying】
【JS Reverse series 】 Analysis of a customs publicity platform
1. Sample address
aHR0cDovL2NyZWRpdC5jdXN0b21zLmdvdi5jbi9jY3Bwd2Vic2VydmVyL3BhZ2VzL2NjcHAvaHRtbC9kZWNsQ29tcGFueS5odG1s
2. Anti debugging
Use traceless windows , open f12 Open web page after . Find yourself stopping at the breakpoint
Look on the call stack net , This confusion of formats is used ob confusion , use first ast hold 【SwCaHu_p.js】 and 【menuManger.js】 These two files are anti aliased . The anti confusion method is in the front AST The series of articles talks about , I'll skip it here .
After anti aliasing , Use Fiddler.exe Capture packets and automatically respond to these two js file , Try opening the web page again .
3. Page analysis
After anti confusion, there will be no infinity debugger The situation of the , But then the slider appears . First, manually slide on the web page
If the slider passes ,code by 0, Then you get 【csessionid】 and 【value】. Then these two values are used for the next interface request , Under normal circumstances, there will be a 307 Response , And then you get a 【acw_sc__v3】 Of cookie value , Then request the interface , You can get encrypted data
Through the call stack , Find the callback function when the request succeeds , Set breakpoints , And then refresh
You can see , adopt loadAESDecryptStr After the method , You can get clear text , Follow this method
Finally, it is called MuData_KXC Method
4. Algorithm analysis
See here isPadding、mode、sk. Guess it is sm4 Algorithm , And there is a sentence 【_0x3ca6b6[‘sk’] = _0x3ca6b6[‘sk’]“reverse”】. This is after the key rotation , In decryption, you need to get the key sk Reverse , Then you can be sure ,CaData_KXC yes sm4 Encryption function ,MuData_KXC yes sm4 Decryption function .
But use standards sm4 To decrypt , It is found that the decryption result is a pile of garbled code . Take a closer look at the code , Found some magic changes , Including initialization values and algorithm details
Copy gmssl In the library sm4 Code , And in accordance with the js Code for magic change
Finally, try to decrypt , Clear text can be solved
边栏推荐
- Missing numbers from 0 to n-1 (simple difficulty)
- Set status bar color
- buu_ re_ crackMe
- 寻找重复数[抽象二分/快慢指针/二进制枚举]
- AcWing 245. Can you answer these questions (line segment tree)
- Divorce for 3 years to discover the undivided joint property, or
- Cache processing scheme in high concurrency scenario
- [reading notes] programmer training manual - practical learning is the most effective (project driven)
- What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
- Mmsegmentation series training and reasoning their own data set (3)
猜你喜欢
Which kind of sports headphones is easier to use? The most recommended sports headphones
LFM信号加噪、时频分析、滤波
LFM signal denoising, time-frequency analysis, filtering
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
Jvm-01 (phased learning)
Missing numbers from 0 to n-1 (simple difficulty)
Mmsegmentation series training and reasoning their own data set (3)
[question 008: what is UV in unity?]
el-table的render-header用法
【JVM】创建对象的流程详解
随机推荐
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
旋转框目标检测mmrotate v0.3.1 学习模型
2022安全员-C证考试题及模拟考试
多线程查询,效率翻倍
QT uses sqllite
Realize the code scanning function of a custom layout
QT使用sqllite
結婚後
Es interview questions
Remote connection to MySQL under windows and Linux system
About DNS
Après le mariage
QT实现界面跳转
使用开源项目【Banner】实现轮播图效果(带小圆点)
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
Basic 01: print string
Formatting logic of SAP ui5 currency amount display
批量检测url是否存在cdn—高准确率
After marriage