当前位置:网站首页>[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
边栏推荐
- 使用 useDeferredValue 进行异步渲染
- Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
- Divorce for 3 years to discover the undivided joint property, or
- 2022低压电工考试题模拟考试题库模拟考试平台操作
- Stdref and stdcref
- 寻找重复数[抽象二分/快慢指针/二进制枚举]
- LFM signal denoising, time-frequency analysis, filtering
- [road of system analyst] collection of wrong topics in enterprise informatization chapter
- query词权重, 搜索词权重计算
- [staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the
猜你喜欢
Golang configure export goprivate to pull private library code
How to develop digital collections? How to develop your own digital collections
[question 008: what is UV in unity?]
Baohong industry | 6 financial management models at different stages of life
高并发场景下缓存处理方案
Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control
2022-2028 global human internal visualization system industry research and trend analysis report
JVM interview
MVVM and MVC
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
随机推荐
Oracle creates a user with read-only permission in four simple steps
Pychart creates new projects & loads faster & fonts larger & changes appearance
Systemserver service and servicemanager service analysis
2022-2028 global wood vacuum coating machine industry research and trend analysis report
es面试题
Soul app released the annual report on generation Z behavior: nearly 20% of young people love shopping in the vegetable market
【做题打卡】集成每日5题分享(第二期)
Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
[staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
创业了...
Share the basic knowledge of a common Hongmeng application
The number one malware in January 2022: lokibot returned to the list, and emotet returned to the top
V-model of custom component
2022 low voltage electrician test question simulation test question bank simulation test platform operation
Discussion on related configuration of thread pool
Divorce for 3 years to discover the undivided joint property, or
What is the principle of bone conduction earphones and who is suitable for bone conduction earphones
QT实现界面跳转
2022 safety officer-c certificate examination questions and mock examination
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)