备份: 完整开发状态(含反混淆脚本和临时文件)

This commit is contained in:
ccdojox-crypto
2025-12-17 17:18:02 +08:00
parent 9e2333c90c
commit 7e9ea173a7
2872 changed files with 326818 additions and 249 deletions

23
replace_api.js Normal file
View File

@@ -0,0 +1,23 @@
const fs = require('fs');
// 读取原版client.js
let code = fs.readFileSync('D:/temp/破解/cursorpro-0.4.5/extension/out/api/client.js', 'utf8');
// 找到 getApiUrl 函数并替换
// 原版: function getApiUrl(){...return ...||DEFAULT_API_URL;}
// 替换为直接返回我们的API地址
const newApiUrl = 'https://api.aicode.edu.pl';
// 方法1: 替换整个 getApiUrl 函数
// 匹配 function getApiUrl(){...}
code = code.replace(
/function getApiUrl\(\)\{[^}]+\}/,
`function getApiUrl(){return '${newApiUrl}';}`
);
// 保存修改后的代码
fs.writeFileSync('D:/temp/破解/cursorpro-0.4.5/extension/out/api/client.js', code);
console.log('API地址已替换为:', newApiUrl);
console.log('文件已保存');