Skip to content

Termius 破解教程

本教程仅供学习交流使用,请勿用于商业用途,否则后果自负。

  • 软件版本:Termius 8.2.0,其他版本可能会有所不同。
  • 操作系统:macOS 14

25030101.png

  1. 使用 npm 安装 asar
shell
npm install -g asar

asar 是一个将文件夹打包成一个文件的工具,类似于 tar、zip 等。

  1. 找到 Termius 的安装目录,macOS 下一般在 /Applications/Termius.app/Contents/Resources/app。解压 app.asar 文件:
shell
cd /Applications/Termius.app/Contents/Resources
asar extract app.asar app # 解压 app.asar 文件到 app 目录
mv app.asar app.asar.bak # 备份 app.asar 文件,或输入 `rm app.asar` 直接删除 app.asar 文件
rm app-update.yml # 删除 app-update.yml 文件,防止自动更新
  1. 修改 app/js 目录下的 background-process.js 文件。搜索 async updateUserProfile() 方法,将其替换为以下内容:
javascript
async updateUserProfile() {
    var e=await this.api.bulkAccount();
    e.account.pro_mode=true;
    e.account.need_to_update_subscription=false;
    e.account.current_period={
        "from": "2022-01-01T00:00:00",
        "until": "2099-01-01T00:00:00"
    };
    e.account.plan_type="Premium";
    e.account.user_type="Premium";
    e.student=null;
    e.trial=null;
    e.account.authorized_features.show_trial_section=false;
    e.account.authorized_features.show_subscription_section=true;
    e.account.authorized_features.show_github_account_section=false;
    e.account.expired_screen_type=null;
    e.personal_subscription={
        "now": new Date().toISOString().slice(0, -5),
        "status": "SUCCESS",
        "platform": "stripe",
        "current_period": {
            "from": "2022-01-01T00:00:00",
            "until": "2099-01-01T00:00:00"
        },
        "revokable": true,
        "refunded": false,
        "cancelable": true,
        "reactivatable": false,
        "currency": "usd",
        "created_at": "2022-01-01T00:00:00",
        "updated_at": new Date().toISOString().slice(0, -5),
        "valid_until": "2099-01-01T00:00:00",
        "auto_renew": true,
        "price": 12.0,
        "verbose_plan_name": "Termius Pro Monthly",
        "plan_type": "SINGLE",
        "is_expired": false
    };
    e.access_objects=[{
        "period": {
            "start": "2022-01-01T00:00:00",
            "end": "2099-01-01T00:00:00"
        },
        "title": "Pro"
    }]
    return await this.setUserProfile(e), e
}
  1. 启动 Termius,登录账号,重启 Termius,即可正常使用。
编程洪同学服务平台是一个广泛收集编程相关内容和资源,旨在满足编程爱好者和专业开发人员的需求的网站。无论您是初学者还是经验丰富的开发者,都可以在这里找到有用的信息和资料,我们将助您提升编程技能和知识。
专业开发
高端定制
售后无忧
站内资源均为本站制作或收集于互联网等平台,如有侵权,请第一时间联系本站,敬请谅解!本站资源仅限于学习与参考,严禁用于各种非法活动,否则后果自行负责,本站概不承担!