当前位置:网站首页>[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

边栏推荐
- C write TXT file
- [learn C and fly] 2day Chapter 8 pointer (practice 8.1 password unlocking)
- What are the characteristics of common web proxy IP
- 【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度
- 【带你学c带你飞】2day 第8章 指针(练习8.1 密码开锁)
- 2022-2028 global human internal visualization system industry research and trend analysis report
- 【做题打卡】集成每日5题分享(第二期)
- ZABBIX API creates hosts in batches according to the host information in Excel files
- Baohong industry | what misunderstandings should we pay attention to when diversifying investment
- 2022-2028 global soft capsule manufacturing machine industry research and trend analysis report
猜你喜欢

Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science

JVM面试篇

What kind of good and cost-effective Bluetooth sports headset to buy

STM32__05—PWM控制直流电机

Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched

CVPR 2022 | Dalian Institute of technology proposes a self calibration lighting framework for low light level image enhancement of real scenes
![[JVM] detailed description of the process of creating objects](/img/6e/0803b6b63c48337985faae8d5cbe1a.png)
[JVM] detailed description of the process of creating objects

Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field

【liuyubobobo-玩转Leetcode算法面试】【00】课程概述

批量检测url是否存在cdn—高准确率
随机推荐
el-table的render-header用法
2022低压电工考试题模拟考试题库模拟考试平台操作
Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
GB/T-2423.xx 环境试验文件,整理包括了最新的文件里面
What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
[punch in questions] integrated daily 5-question sharing (phase II)
Software testing learning notes - network knowledge
How to develop digital collections? How to develop your own digital collections
Golang configure export goprivate to pull private library code
Addition without addition, subtraction, multiplication and division (simple difficulty)
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
Analysis of FLV packaging format
C write TXT file
Mongodb non relational database
[untitled]
【无标题】
JS slow animation
【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
结婚后