mirror of
https://github.com/pysunday/rs-reverse.git
synced 2025-04-12 03:46:56 +08:00
fix: 文档更新、代码优化
This commit is contained in:
parent
7757ad5934
commit
36848f8527
10
README.md
10
README.md
@ -10,12 +10,6 @@
|
|||||||
|
|
||||||
该项目的研究网站仅做参考,项目不鼓励直接请求该研究网站,算法逆向研究请直接使用`example`目录下的样例文件,如:`node main.js makecookie`(默认为最新版本代码)。
|
该项目的研究网站仅做参考,项目不鼓励直接请求该研究网站,算法逆向研究请直接使用`example`目录下的样例文件,如:`node main.js makecookie`(默认为最新版本代码)。
|
||||||
|
|
||||||
该瑞数cookie生成过程中的算法逆向存在以下变量:
|
|
||||||
|
|
||||||
1. 预先设置好的配置项,参见:`代码中config的值`;
|
|
||||||
2. 代码中的数字`46228`为作者代码格式化且代码修改后计算出来的方法字符串摘要值;
|
|
||||||
3. 代码中中的`_random(500, 1000)`为作者电脑运行计算的大概值,此值与浏览器运行环境有关(如电脑配置等);
|
|
||||||
|
|
||||||
## 1. 博客文章
|
## 1. 博客文章
|
||||||
|
|
||||||
1. [瑞数vmp-代码格式化后无法正常运行原因分析](https://howduudu.tech/#/blog/article/1699807978000)
|
1. [瑞数vmp-代码格式化后无法正常运行原因分析](https://howduudu.tech/#/blog/article/1699807978000)
|
||||||
@ -124,6 +118,10 @@ Examples:
|
|||||||
|
|
||||||
该命令第一次请求生成cookie带入第二次请求,将两次请求返回的加密代码及动态代码解码后保存到`output/makecode-high`目录中,和makecode命令区别为该命令只提供-u方式执行!
|
该命令第一次请求生成cookie带入第二次请求,将两次请求返回的加密代码及动态代码解码后保存到`output/makecode-high`目录中,和makecode命令区别为该命令只提供-u方式执行!
|
||||||
|
|
||||||
|
需要注意的是,请避免连续执行该命令以免触发风控报错,报错如:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ npx rs-reverse makecode-high -h
|
$ npx rs-reverse makecode-high -h
|
||||||
rs-reverse makecode-high
|
rs-reverse makecode-high
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"log4js": "^6.9.1",
|
"log4js": "^6.9.1",
|
||||||
"module-alias": "^2.2.3",
|
"module-alias": "^2.2.3",
|
||||||
"random-useragent": "^0.5.0",
|
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"request-promise": "^4.2.6",
|
"request-promise": "^4.2.6",
|
||||||
"yargs": "^17.7.2"
|
"yargs": "^17.7.2"
|
||||||
|
@ -2,7 +2,6 @@ const _random = require('lodash/random');
|
|||||||
const dataOper = require('./dataOper');
|
const dataOper = require('./dataOper');
|
||||||
const parser = require('./parser/');
|
const parser = require('./parser/');
|
||||||
const gv = require('./globalVarible');
|
const gv = require('./globalVarible');
|
||||||
const randomUseragent = require('random-useragent');
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
factorial,
|
factorial,
|
||||||
@ -31,15 +30,6 @@ const {
|
|||||||
|
|
||||||
const developConfig = {
|
const developConfig = {
|
||||||
// 开发时用的配置,比如时间值固定、随机数固定等
|
// 开发时用的配置,比如时间值固定、随机数固定等
|
||||||
// 'window.innerWidth': 150,
|
|
||||||
// 'window.outerWidth': 1336,
|
|
||||||
// currentTime: 1711730658454,
|
|
||||||
// r2mkaTime: 1711712705,
|
|
||||||
// startTime: 1711730659,
|
|
||||||
// runTime: 1711730659,
|
|
||||||
// formatUid: 58854,
|
|
||||||
// random: 0.123,
|
|
||||||
execNumberByTime: 1778,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = class {
|
module.exports = class {
|
||||||
@ -77,7 +67,8 @@ module.exports = class {
|
|||||||
startTime: Math.floor(current / 1000) - 1, // 模拟浏览器启动时间
|
startTime: Math.floor(current / 1000) - 1, // 模拟浏览器启动时间
|
||||||
r2mkaTime: +ascii2string(gv.keys[21]), // r2mka文本解析出来的时间
|
r2mkaTime: +ascii2string(gv.keys[21]), // r2mka文本解析出来的时间
|
||||||
random: null, // 代替Math.random方法返回值
|
random: null, // 代替Math.random方法返回值
|
||||||
execNumberByTime: execNumberByTime(), // 固定时间内的循环运行次数
|
// execNumberByTime: execNumberByTime(), // 固定时间内的循环运行次数
|
||||||
|
execNumberByTime: _random(1500, 2000), // 固定时间内的循环运行次数
|
||||||
...developConfig,
|
...developConfig,
|
||||||
}
|
}
|
||||||
// console.log(this.config);
|
// console.log(this.config);
|
||||||
|
BIN
static/error-makecode-high.png
Normal file
BIN
static/error-makecode-high.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 127 KiB |
Loading…
x
Reference in New Issue
Block a user