Bob客户端破解分析-亚盟源码

Bob客户端破解分析

1.在开始之前你需要:

1.1 下载Bob客户端

BOB客户端+对接文件
MAGA盘
https://pan.intel.im/1/bob
https://www.mihoyo.lol/1/bob

1.2 安装好nodejs全套,npm安装好npm install -g asar

 
  • 01
npm install -g asar

1.3 Visual Studio Code 安装 formulahendry.code-runner

1.4 gitcode.net 新建名为:config.json 代码片段

 
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
[
  "https://xxx",
  "https://xxx",
  "https://xxxl",
  "https://xxxx",
  "https:/xxx"
]

2. 直接上加解密代码(新建一个xx.js文件)

 
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
let CryptoJS = require ('crypto-js') // 引入 AES 源码 js
// 解密
function decrypt(string, code) {
var code = CryptoJS.MD5(code).toString()
var iv = CryptoJS.enc.Utf8.parse(code.substring(0, 16))
var key = CryptoJS.enc.Utf8.parse(code.substring(16))

return CryptoJS.AES.decrypt(string, key, { iv: iv, padding: CryptoJS.pad.Pkcs7 }).toString(CryptoJS.enc.Utf8)
}
// 加密
function encrypt(string, code) {
var code = CryptoJS.MD5(code).toString()
var iv = CryptoJS.enc.Utf8.parse(code.substring(0, 16))
var key = CryptoJS.enc.Utf8.parse(code.substring(16))

return CryptoJS.AES.encrypt(string, key, { iv: iv, padding: CryptoJS.pad.Pkcs7 }).toString()
}
console.log(decrypt('RSbBzGrV+AxL82ozTf1KFtLX84qggNqIBxhPzrY70w0xgv+Ydk3Vfe868GKlPBqwGNyxFJiKLcjPxxIz4TiUEA==', 'fuckyou'))
console.log(encrypt('https://gitcode.net/-/snippets/对应数字/raw/master/', 'fuckyou')) #

2.1 运行

2.2 解包asar

 
  • 01
  • 02
#resources路径下新建一个back目录cd进去运行,然后复制resources下的app.asar到back目录下
PS C:\Users\ktffp1\Desktop\快蜂Cloud_setup_4.0.7\resources\back> asar extract app.asar ./

2.3 替换密文

 
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
/*解包后大概是这样*/

    目录: C:\Users\ktffp1\Desktop\快蜂Cloud_setup_4.0.7\resources\back


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        6/12/2024   1:58 PM                dist
d-----        6/12/2024   1:58 PM                node_modules
-a----        6/12/2024   2:01 PM       48420735 app.asar
-a----        6/12/2024   1:59 PM           1466 package.json

Visual Studio Code打开back路径
搜索原包密文(完全复制):

 
  • 01
7U7KmOwWNl0irUn6NsMtDlXubEGw5jsynXbfNKaj6buul8xnYK3rFl5xgFx4A4DSvSPMZugk9JU93o7/yYiHZQ==

替换完后删除back目录下的app.asa,一定要删除,再回包!一定要删除,再回包!

 
  • 01
del .\app.asar

回包

 
  • 01
  • 02
npx asar pack ./ new_app.asar
#会生成一个new_app.asar文件

重命名一下删除并替换resources路径下app.asar

3.最后启动

3.1 修改前端bob配置文件(不修改启动报错)

路径:

 
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
你的网站/config/bobvpn.php

修改

    # 站点名称
    'name' => 'FreeCloud',

    # Crisp在线客服
    'crisp_enable' => false,  // 是否开启
    'crisp_id' => '2c3c28c2-9265-45ea-8e85-0xxxxx',       // Crisp 的网站ID
    'crisp_logo_url' => 'http://xxxx/vpn/kefu.png',       // Crisp 客服logo

    # 面板地址(必填: 客户端登录注册跳转的域名)
    'baseUrl' => 'https://intel.im',

    # 授权域名地址,域名最后不要带 / (必填: 客户端授权域名)
    'subscribe_url' => 'https://intel.im',

3.2 修改完执行清除缓存(不执行启动报错)

bash

 
  • 01
  • 02
  • 03
  • 04
#站点根目录执行
php artisan config:clear
php artisan config:cache
php artisan horizon:terminate

4.进阶可选

4.1 修改包名和描述信息

app.asar批量替换,搜索:“快蜂Cloud”

ResHacker 替换自己研究,就不放图了,傻子都会

4.2 打包为可执行自动安装程序exe

安装 Inno Setup
替换本地文件夹路径:C:\Users\ktffp1\Desktop\bob
下面默认安装到:C:\Program Files (x86)\bob

 
  • 01
  • 02
  • 03
  • 04
  • 05
  • 06
  • 07
  • 08
  • 09
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
[Setup]
AppName=xxx网络加速
AppVersion=1.0
DefaultDirName={pf}\bob
DefaultGroupName=xxx网络加速
OutputBaseFilename=xxx网络加速安装程序
Compression=lzma
SolidCompression=yes

[Files]
Source: "C:\Users\ktffp1\Desktop\bob\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\xx网络加速"; Filename: "{app}\xx网络加速.exe"
Name: "{commondesktop}\xx网络加速"; Filename: "{app}\xx网络加速.exe"

[Run]
Filename: "{app}\xx网络加速.exe"; Description: "{cm:LaunchProgram,xx网络加速}"; Flags: nowait postinstall skipifsilent

欢迎加入我们

欢迎加入我们!

如需搭建或二次开发,请加QQ群:

点击这里加入QQ群

或加入飞机群:

点击这里加入飞机群

© 版权声明
THE END
喜欢就支持一下吧
点赞6703 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容