大麦网

This commit is contained in:
luzhisheng 2023-05-08 16:51:33 +08:00
parent 4b90737200
commit b0caaf5e66
12 changed files with 67 additions and 0 deletions

67
大麦网/README.md Normal file
View File

@ -0,0 +1,67 @@
# 知识点: webpack打包
凡是遇到webpack打包的js项目直接全局导出解密模块去执行通过在浏览器环境测试成功后在改写成node环境下的执行。
## 登陆页面
**参数password2**
请求登陆页面
![请求](./img/1.png)
发现`password2`参数加密
![请求](./img/2.png)
全局搜索`password2`,找到加密点,不难发现`password2`是通过函数`e = this.rsaPassword(this.passwordNode.value())`得到
![请求](./img/3.png)
进入函数调试发现类似RSA加密
![请求](./img/4.png)
这公钥没有做base64不能确定是否存在魔改的情况
![请求](./img/5.png)
先不管他直接导出模块执行。把index.js全部复制到浏览器源代码中执行头部加上`var getToken`;
![请求](./img/6.png)
尾部加上`getToken = __webpack_module_cache__`
![请求](./img/7.png)
在补全`window`全局变量参数
window.PAGE_START_LOAD_TIME = new Date().getTime();
window.LOGIN_UMID_LOAD = true;
window.viewConfig = {....},
window.viewData = {.....};
window._lang = {.....};
控制台测试
new getToken[1641].exports.default((0)).rsaPassword('123456')
![请求](./img/8.png)
能成功打印出加密后的值。
**参数password2**
## 订单确认页面
存在`sign`加密参数
![请求](./img/9.png)
断点定位加密参数位置
![请求](./img/10.png)
这里直接告诉你答案就是原生md5加密
![请求](./img/11.png)

BIN
大麦网/img/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
大麦网/img/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
大麦网/img/11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
大麦网/img/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
大麦网/img/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
大麦网/img/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
大麦网/img/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
大麦网/img/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
大麦网/img/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
大麦网/img/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
大麦网/img/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB