63js加密传输数据与返回数据二进制-RC4

This commit is contained in:
luzhisheng 2023-02-23 23:11:41 +08:00
parent 00aa30b5b1
commit 1fcfd8c5a2
11 changed files with 50 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -80,9 +80,10 @@ function j(y) {
}
// code = s(j(64) + '1');
// atob_code = atob(code);
// console.log(atob_code);
code = s(j(64) + '1');
console.log(code);
atob_code = atob(code);
console.log(atob_code);
function sign(data, types) {
if (types == 'atob'){

View File

@ -5,7 +5,7 @@
![请求](./img/1.png)
请求体也是乱码
### 请求体乱码
![请求](./img/2.png)
@ -38,3 +38,47 @@
![请求](./img/6.png)
这里用的是 `crypto-js``RC4`加密,
但是`RC4`加密结果不会出现乱码,尝试继续跟进代码看看具体原因
这里更近我是直接通过 `return` 关键词一步步断点进入
`return` 断点1
![请求](./img/7.png)
`return` 断点2
![请求](./img/8.png)
`return` 断点3
![请求](./img/9.png)
`return` 断点4
![请求](./img/10.png)
`return` 断点5这里就发现`atob`方法,即`Base64`的解码过程
![请求](./img/11.png)
控制台输出
![请求](./img/12.png)
### 返回体乱码
既然已经知道加密用的是`atob`,那么解码会不会是`btoa`,继续调试
![请求](./img/13.png)
`btoa`即Base64的编码过程
在通过调试,发现`c`函数是`crypto-js`加密
![请求](./img/14.png)
到这里就基本结束了
![请求](./img/15.png)