[
  {
    "path": ".gitignore",
    "content": ".DS_Store\n*.iml\n.idea\n.vscode\n.ruby-lsp\nIACPLHttpTransferClient"
  },
  {
    "path": "Adobe说明.md",
    "content": "# Adobe 套件的使用方法\n\n## 以LR CC为例：\n\n___\n\n1. 卸载已经安装的acc：AdobeCreativeCloudCleanerTool Mac.dmg\n\n   https://www.123pan.com/s/X5tA-Eyuwh.html\n\n2. 从adobe网站下载acc 5.9.0，然后断网安装它。\n\n   下载地址：\n\n   Intel:\n   https://trials.adobe.com/AdobeProducts/KCCC/CCD/5_9_0/osx10/ACCCx5_9_0_373.dmg\n   ARM:\n   https://trials.adobe.com/AdobeProducts/KCCC/CCD/5_9_0/macarm64/ACCCx5_9_0_373.dmg\n\n   \n\n3. **下载adobe packager**\n\n\n<img width=\"1680\" alt=\"1\" src=\"https://github.com/LoveJessyChen/InjectLib/assets/48858531/bdbb5467-e345-4ac2-a4e4-23f0cc08a2ae\">\n\n   3.1 从以下地址clone后下载这个adobe packager\n\n   https://github.com/Drovosek01/adobe-packager\n\n   下载方法是看下图，先点击绿色的code，再点击“Download ZIP”。\n\n   3.2 解压后直接双击运行ccdl.command\n\n\n<img width=\"930\" alt=\"2\" src=\"https://github.com/LoveJessyChen/InjectLib/assets/48858531/6e5d0790-9452-427e-839e-625e74f654b7\">\n\n4. 下载并安装Lightroom CC软件\n\n   4.1 根据屏幕提示输入 v6 然后回车，输入y然后回车。然后稍作等待 ，然后弹出adobe套件代码的列表之后。\n\n<img width=\"593\" alt=\"3\" src=\"https://github.com/LoveJessyChen/InjectLib/assets/48858531/ddb76d74-4026-40db-b549-b172ebb2402a\">\n\n\n   4.2 输入现在要下载的Lightroom CC 套件，查询列表可以知道代码是LRCC\n\n    然后我们输入LRCC，并回车，选择版本输入6.5并回车；选择语言默认是中文 直接回车。\n\n<img width=\"590\" alt=\"4\" src=\"https://github.com/LoveJessyChen/InjectLib/assets/48858531/21238761-f2ec-412d-b385-550053584013\">\n\n\n   然后弹出窗口选择下载到哪个文件夹，我们下载到桌面。点击选取。\n\n<img width=\"814\" alt=\"5\" src=\"https://github.com/LoveJessyChen/InjectLib/assets/48858531/d868252a-1970-4d02-9980-6440a1ada030\">\n\n\n   然后双击这个install开头的安装包就可以安装了。\n\n   （可选：这里也可以把products文件提取出来 替换到脚本安装器来安装，用这个方法就不限制acc或者anticc的版本：https://www.123pan.com/s/X5tA-kyuwh.html）\n\n   \n\n5. 然后运行脚本注入补丁。 即可完美享受，不受时间限制。\n"
  },
  {
    "path": "EmbyServer/embypremiere.js",
    "content": "define([\n  \"exports\",\n  \"./../modules/viewmanager/baseview.js\",\n  \"./../modules/emby-elements/emby-input/emby-input.js\",\n  \"./../modules/emby-elements/emby-button/emby-button.js\",\n  \"./../modules/emby-elements/emby-collapse/emby-collapse.js\",\n  \"./../modules/common/globalize.js\",\n  \"./../modules/loading/loading.js\",\n  \"./../modules/registrationservices/registrationservices.js\",\n  \"./../modules/common/dialogs/confirm.js\",\n  \"./../modules/emby-apiclient/connectionmanager.js\",\n], function (\n  _exports,\n  _baseview,\n  _embyInput,\n  _embyButton,\n  _embyCollapse,\n  _globalize,\n  _loading,\n  _registrationservices,\n  _confirm,\n  _connectionmanager\n) {\n  function load(page) {\n    var apiClient;\n    _loading.default.show(),\n      (apiClient = ApiClient)\n        .getJSON(apiClient.getUrl(\"Plugins/SecurityInfo\"))\n        .then(function (info) {\n          info.IsMBSupporter = true;\n          (page.querySelector(\".txtSupporterKey\").value =\n            info.SupporterKey || \"\"),\n            info.SupporterKey && !info.IsMBSupporter\n              ? (page\n                  .querySelector(\".txtSupporterKey\")\n                  .classList.add(\"invalidEntry\"),\n                page.querySelector(\".notSupporter\").classList.remove(\"hide\"))\n              : (page\n                  .querySelector(\".txtSupporterKey\")\n                  .classList.remove(\"invalidEntry\"),\n                page.querySelector(\".notSupporter\").classList.add(\"hide\")),\n            info.IsMBSupporter\n              ? (page\n                  .querySelector(\".supporterContainer\")\n                  .classList.add(\"hide\"),\n                (function (key) {\n                  key = \"key=\" + key + \"&serverId=\" + ApiClient.serverId();\n                  return new Promise((resolve) =>\n                    resolve({\n                      deviceStatus: 0,\n                      planType: \"超级会员\",\n                      subscriptions: [\n                        {\n                          autoRenew: true,\n                          store: \"秋城落叶\",\n                          feature: \"all\",\n                          planType: \"超级会员\",\n                          expDate: \"且会员资格永远不会失效\",\n                        },\n                      ],\n                    })\n                  );\n                })(info.SupporterKey).then(function (statusInfo) {\n                  if (statusInfo) {\n                    var statusLine,\n                      indicator = page.querySelector(\n                        \".status-indicator .listItemIcon\"\n                      ),\n                      extendedPlans = page.querySelector(\".extended-plans\");\n                    switch (\n                      ((extendedPlans.innerHTML = _globalize.default.translate(\n                        \"MessagePremiereExtendedPlans\",\n                        '<a is=\"emby-linkbutton\" class=\"button-link\" href=\"https://emby.media/premiere-ext.html\" target=\"_blank\">',\n                        \"</a>\"\n                      )),\n                      statusInfo.deviceStatus)\n                    ) {\n                      case 2:\n                        (statusLine = _globalize.default.translate(\n                          \"MessagePremiereStatusOver\",\n                          statusInfo.planType\n                        )),\n                          indicator.classList.add(\"expiredBackground\"),\n                          indicator.classList.remove(\"nearExpiredBackground\"),\n                          (indicator.innerHTML = \"&#xE000;\"),\n                          indicator.classList.add(\"autortl\"),\n                          extendedPlans.classList.remove(\"hide\");\n                        break;\n                      case 1:\n                        (statusLine = _globalize.default.translate(\n                          \"MessagePremiereStatusClose\",\n                          statusInfo.planType\n                        )),\n                          indicator.classList.remove(\"expiredBackground\"),\n                          indicator.classList.add(\"nearExpiredBackground\"),\n                          (indicator.innerHTML = \"&#xE000;\"),\n                          indicator.classList.add(\"autortl\"),\n                          extendedPlans.classList.remove(\"hide\");\n                        break;\n                      default:\n                        (statusLine = _globalize.default.translate(\n                          \"MessagePremiereStatusGood\",\n                          statusInfo.planType\n                        )),\n                          indicator.classList.remove(\"expiredBackground\"),\n                          indicator.classList.remove(\"nearExpiredBackground\"),\n                          (indicator.innerHTML = \"&#xE5CA;\"),\n                          indicator.classList.remove(\"autortl\"),\n                          extendedPlans.classList.add(\"hide\");\n                    }\n                    page.querySelector(\".premiere-status\").innerHTML =\n                      statusLine;\n                    var subsElement = page.querySelector(\".premiere-subs\");\n                    statusInfo.subscriptions &&\n                    0 < statusInfo.subscriptions.length\n                      ? ((page.querySelector(\n                          \".premiere-subs-content\"\n                        ).innerHTML =\n                          ((subs = statusInfo.subscriptions),\n                          (key = info.SupporterKey),\n                          subs.map(function (item) {\n                            var itemHtml = \"\",\n                              makeLink =\n                                item.autoRenew && \"Stripe\" === item.store,\n                              tagName = makeLink ? \"button\" : \"div\";\n                            return (\n                              itemHtml +\n                              ((\"button\" == tagName\n                                ? '<button type=\"button\"'\n                                : \"<div\") +\n                                ' class=\"listItem listItem-button listItem-border' +\n                                (makeLink ? \" lnkSubscription\" : \"\") +\n                                '\" data-feature=\"' +\n                                item.feature +\n                                '\" data-key=\"' +\n                                key +\n                                '\">') +\n                              '<i class=\"listItemIcon md-icon autortl\">&#xe1b2;</i>' +\n                              '<div class=\"listItemBody two-line\">' +\n                              '<div class=\"listItemBodyText\">' +\n                              _globalize.default.translate(\n                                \"ListItemPremiereSub\",\n                                item.planType,\n                                item.expDate,\n                                item.store\n                              ) +\n                              \"</div>\" +\n                              '<div class=\"listItemBodyText listItemBodyText-secondary\">' +\n                              _globalize.default.translate(\n                                \"Stripe\" === item.store\n                                  ? item.autoRenew\n                                    ? \"LabelClickToCancel\"\n                                    : \"LabelAlreadyCancelled\"\n                                  : \"LabelCancelInfo\",\n                                item.store\n                              ) +\n                              \"</div>\" +\n                              \"</div>\" +\n                              (\"</\" + tagName + \">\")\n                            );\n                          }))),\n                        (subs = page.querySelector(\".lnkSubscription\")) &&\n                          subs.addEventListener(\"click\", cancelSub),\n                        subsElement.classList.remove(\"hide\"))\n                      : subsElement.classList.add(\"hide\"),\n                      page\n                        .querySelector(\".isSupporter\")\n                        .classList.remove(\"hide\");\n                  }\n                  var subs, key;\n                }))\n              : (page\n                  .querySelector(\".supporterContainer\")\n                  .classList.remove(\"hide\"),\n                page.querySelector(\".isSupporter\").classList.add(\"hide\")),\n            _loading.default.hide();\n        });\n  }\n  function cancelSub(e) {\n    console.log(\"Cancel \");\n    var feature = this.getAttribute(\"data-feature\"),\n      key = this.getAttribute(\"data-key\");\n    (0, _confirm.default)({\n      title: _globalize.default.translate(\"HeaderCancelSub\"),\n      text: _globalize.default.translate(\"MessageConfirmSubCancel\"),\n      confirmText: _globalize.default.translate(\"ButtonCancelSub\"),\n      cancelText: _globalize.default.translate(\"ButtonDontCancelSub\"),\n      primary: \"cancel\",\n    }).then(function () {\n      console.log(\"after confirm\"),\n        fetch(\"http://127.0.0.1:3000/admin/service/stripe/requestSubCancel\", {\n          method: \"POST\",\n          body: \"key=\" + key + \"&feature=\" + feature,\n          headers: { \"Content-Type\": \"application/x-www-form-urlencoded\" },\n        }).then(\n          function (response) {\n            alertText({\n              text: _globalize.default.translate(\"MessageSubCancelReqSent\"),\n              title: _globalize.default.translate(\"HeaderConfirmation\"),\n            });\n          },\n          function (response) {\n            alertText({\n              text: _globalize.default.translate(\n                \"MessageSubCancelError\",\n                \"cancel@emby.media\"\n              ),\n            });\n          }\n        );\n    });\n  }\n  function retrieveSupporterKey(e) {\n    _loading.default.show();\n    var email = this.querySelector(\".txtEmail\").value,\n      url =\n        \"http://127.0.0.1:3000/admin/service/supporter/retrievekey?email=\" +\n        email;\n    return (\n      console.log(url),\n      fetch(url, { method: \"POST\" })\n        .then(function (response) {\n          return response.json();\n        })\n        .then(function (result) {\n          _loading.default.hide(),\n            result.Success\n              ? require([\"toast\"], function (toast) {\n                  toast(\n                    _globalize.default\n                      .translate(\"MessageKeyEmailedTo\")\n                      .replace(\"{0}\", email)\n                  );\n                })\n              : require([\"toast\"], function (toast) {\n                  toast(result.ErrorMessage);\n                }),\n            console.log(result);\n        }),\n      e.preventDefault(),\n      !1\n    );\n  }\n  function alertText(options) {\n    require([\"alert\"], function (alert) {\n      alert(options);\n    });\n  }\n  function updateSupporterKey(e) {\n    _loading.default.show();\n    var form = this,\n      key = form.querySelector(\".txtSupporterKey\").value;\n    return (\n      ApiClient.updatePluginSecurityInfo({ SupporterKey: key }).then(\n        function () {\n          _loading.default.hide(),\n            alertText(\n              key\n                ? {\n                    text: _globalize.default.translate(\"MessageKeyUpdated\"),\n                    title: _globalize.default.translate(\"HeaderConfirmation\"),\n                  }\n                : {\n                    text: _globalize.default.translate(\"MessageKeyRemoved\"),\n                    title: _globalize.default.translate(\"HeaderConfirmation\"),\n                  }\n            ),\n            _connectionmanager.default.resetRegistrationInfo(ApiClient),\n            load(form.closest(\".page\"));\n        },\n        function () {\n          _loading.default.hide(),\n            _connectionmanager.default.resetRegistrationInfo(ApiClient),\n            load(form.closest(\".page\"));\n        }\n      ),\n      e.preventDefault(),\n      !1\n    );\n  }\n  function onSupporterLinkClick(e) {\n    _registrationservices.default.showPremiereInfo(),\n      e.preventDefault(),\n      e.stopPropagation();\n  }\n  function View(view, params) {\n    _baseview.default.apply(this, arguments),\n      view\n        .querySelector(\".supporterKeyForm\")\n        .addEventListener(\"submit\", updateSupporterKey),\n      view\n        .querySelector(\".lostKeyForm\")\n        .addEventListener(\"submit\", retrieveSupporterKey),\n      (view.querySelector(\".benefits\").innerHTML = _globalize.default.translate(\n        \"HeaderSupporterBenefit\",\n        '<a is=\"emby-linkbutton\" class=\"lnkPremiere button-link\" href=\"https://emby.media/premiere\" target=\"_blank\">',\n        \"</a>\"\n      )),\n      view\n        .querySelector(\".lnkPremiere\")\n        .addEventListener(\"click\", onSupporterLinkClick);\n  }\n  Object.defineProperty(_exports, \"__esModule\", { value: !0 }),\n    (_exports.default = void 0),\n    require([\"listViewStyle\"]),\n    Object.assign(View.prototype, _baseview.default.prototype),\n    (View.prototype.onResume = function (options) {\n      _baseview.default.prototype.onResume.apply(this, arguments),\n        load(this.view);\n    }),\n    (_exports.default = View);\n});\n"
  },
  {
    "path": "EmbyServer/readme.md",
    "content": "# 本教程旨在破解Emby Server for macOS\n## 支持版本: 4.7.14.0 \n下载地址: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.7.14.0/embyserver-osx-x64-4.7.14.0.zip\n\n## 使用方法\nEmby.Web.dll 替换到 /Applications/EmbyServer.app/Contents/MacOS/Emby.Web.dll\n\nembypremiere.js 替换到 /Applications/EmbyServer.app/Contents/Resources/dashboard-ui/embypremiere/embypremiere.js\n\n## 最后\n我再说一遍：网上那些破解Emby Linux/Windows Server版本要替换四五个文件的人都是傻狗。\n\n不就是修改个b前端js和改一下.Net资源文件的事情被你们搞这么复杂，老子一直以为这东西很难都懒得弄，没想到就他妈这么点b大点难度。一群饭桶！"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    macOS上App代码注入工具库\n    Copyright (C) 2023 QiuChenly\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    InjectLib  Copyright (C) 2023 秋城落叶\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "Surge一键脚本/readme.md",
    "content": "# 小白专用\n\n## 声明\n本脚本非QiuChenly维护，如果按照下面的步骤使用出现问题，请老老实实阅读项目主页的Readme-使用一栏.\n\n## 用法\n\n若你未拉取仓库.复制下面👇命令并粘贴到终端中,回车,输入密码,回车.\n\n```bash\ngit clone https://github.com/QiuChenlyOpenSource/InjectLib.git && cd ./InjectLib/Surge一键脚本 && chmod +x surge.sh && sudo bash surge.sh\n```\n\n若你已拉取仓库.只需要在`Surge一键脚本`目录下执行下面👇命令\n\n```bash\nchmod +x surge.sh && sudo bash surge.sh\n```\n\n> 已知问题：与 iCloud 相关均不可用.不可更新.\n\n若不想执行代码，只想用成品:\n\nhttps://github.com/LanYunDev/InjectLib_bak/releases\n\n小小的Blog: https://lanyundev.com/posts/c659a0ce\n"
  },
  {
    "path": "Surge一键脚本/surge.sh",
    "content": "#!/bin/bash\n\n# 错误处理函数\nhandle_error() {\n     echo \"\"\n     echo \"⚠️ 脚本发生错误!,请检查错误,5秒后退出...\"\n     osascript -e 'display notification \"自动处理脚本\" with title \"⚠️脚本发生错误❌~\" sound name \"Glass\"'\n     sleep 5\n     exit 1\n}\n\n# 定义信号处理函数，用于响应 Ctrl+C\nfunction handle_ctrl_c {\n  echo \"\"\n    echo \"接收到 Ctrl+C，5秒后退出...\"\n    if [[ ${upload_pace_pid} ]]; then\n      kill ${upload_pace_pid} > /dev/null 2>&1\n    fi\n    sleep 5\n    exit 1\n}\n\n# 设置信号处理程序，捕捉 SIGINT 信号（Ctrl+C）\ntrap handle_ctrl_c SIGINT\n\n# 设置错误处理函数\ntrap handle_error ERR\n\n# 检查是否为root用户，非root用户可能无法访问某些文件\nif [[ $EUID -ne 0 ]]; then\n   echo '⚠️ 请使用root权限运行此脚本!'\n   echo '⚠️ 若你担心安全问题,请审阅本脚本!'\n   exit 1\nfi\n\n# 获取脚本文件的绝对路径和目录\nSCRIPT_PATH=$(readlink -f \"$0\")\nSCRIPT_DIR=$(dirname ${SCRIPT_PATH})\n\necho \"⚙️ 若你安装过Surge,请确保Surge卸载干净,建议用App Cleaner & Uninstaller工具\"\necho '⚙️ 若你有配置文件等信息,请备份到其他目录,都确认无误后输入y,开始纯净安装!'\nread flag\nif [[ $flag != y ]]; then\n     exit 1\nfi\nflag=\"\" # 重置变量\n\nversion=\"5.4.0-2467\"\n\nuser=$(whoami)\n{\n  sudo rm -rf \"/Applications/Surge\" || true\n  sudo rm -rf \"/tmp/Surge-*.zip\" || true\n  sudo rm -rf \"/Users/${user}/Library/Logs/Surge/\" || true\n  sudo rm -rf \"/Users/${user}/Library/Preferences/com.nssurge.surge-mac.plist\" || true\n  sudo rm -rf \"/Users/${user}/Library/Application Support/com.nssurge.surge-mac\" || true\n  sudo rm -rf \"/Users/${user}/Library/HTTPStorages/com.nssurge.surge-mac\" || true\n\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist || true\n  sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper || true\n  sudo /bin/rm \"/Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\" || true\n  sudo /bin/rm \"/Library/PrivilegedHelperTools/com.nssurge.surge-mac.helper\" || true\n  sudo rm -rf \"~/Library/Preferences/com.nssurge.surge-mac.plist\" || true\n  sudo rm -rf \"~/Library/Application\\ Support/com.nssurge.surge-mac\" || true\n} > /dev/null 2>&1\n\nread -r -t 5 -p \"⚙️ 是否(y/n)已安装 Surge-${version} ? 5秒后自动安装.\" flag || true\necho \"\"\nif [[ $flag != n ]]; then\n  curl -k -A \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3\" -o /tmp/Surge-${version}.zip \"https://ghproxy.com/https://github.com/LanYunDev/InjectLib_bak/releases/download/surge/Surge-${version}.zip\" || (echo \"Surge-${version}安装失败☹️,网络原因,请检查网络.\" && exit 1)\n  unzip -qq -o \"/tmp/Surge-${version}.zip\" -d \"/Applications\" || (echo \"解压失败☹️,压缩包可能已损坏.请重新下载.\" && exit 1)\nfi\nflag=\"\" # 重置变量\n\nif [[ ! -e \"../tool/insert_dylib\" ]]; then\n  echo \"⚠️ 确保上级tool目录中存在insert_dylib\" && exit 1\nfi\nif [[ ! -e \"../tool/libInjectLib.dylib\" ]]; then\n  echo \"⚠️ 确保上级tool目录中存在libInjectLib.dylib\" && exit 1\nfi\n\nchmod +x \"../tool/insert_dylib\"\nsudo cp -f \"../tool/libInjectLib.dylib\" \"/Applications/Surge.app/Contents/Frameworks/libInjectLib.dylib\" || exit 1\nsudo cp -f \"/Applications/Surge.app/Contents/Frameworks/Bugsnag.framework/Versions/A/Bugsnag\" \"/Applications/Surge.app/Contents/Frameworks/Bugsnag.framework/Versions/A/Bugsnag_backup\" || exit 1\nsudo ../tool/insert_dylib \"/Applications/Surge.app/Contents/Frameworks/libInjectLib.dylib\" \"/Applications/Surge.app/Contents/Frameworks/Bugsnag.framework/Versions/A/Bugsnag_backup\" \"/Applications/Surge.app/Contents/Frameworks/Bugsnag.framework/Versions/A/Bugsnag\" || exit 1\n\ncd \"${SCRIPT_DIR}/..\"\nsudo bash ./tool/surgeAgent.sh\n\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app\n\necho \"✅ 完成\"\nopen /Applications/Surge.app\n\n\n\n"
  },
  {
    "path": "Surge激活脚本/Surge脚本配置例子.conf",
    "content": "[Script]\nPaddle1 = type=http-request,pattern=^https://v3.paddleapi.com/3.2/license/verify,requires-body=1,max-size=0,debug=1,script-path=paddle_act.js\nPaddle2 = type=http-request,pattern=^https://v3.paddleapi.com/3.2/license/activate,requires-body=1,max-size=0,debug=1,script-path=paddle_act.js\n\nelpass = type=http-request,pattern=^https://api.elpass.app/device/management,requires-body=1,max-size=0,debug=1,script-path=paddle_act.js\nelpass1 = type=http-request,pattern=^https://api.elpass.app/device/init,requires-body=1,max-size=0,debug=1,script-path=paddle_act.js\nelpass2 = type=http-request,pattern=^https://api.elpass.app/device/activate-with-key,requires-body=1,max-size=0,debug=1,script-path=paddle_act.js"
  },
  {
    "path": "Surge激活脚本/paddle_act.js",
    "content": "let url = $request.url;\n\nlet paddleActivate = () => {\n    if (url !== \"https://v3.paddleapi.com/3.2/license/activate\") return;\n    let body = $request.body.split(\"&\");\n    let product_id = \"\";\n    for (let k of body) {\n        if (k.indexOf(\"product_id\") != -1) {\n            product_id = k.split(\"=\")[1];\n        }\n    }\n\n    $done({\n        response: {\n            body: JSON.stringify({\n                success: true,\n                response: {\n                    product_id: product_id,\n                    activation_id: \"QiuChenly\",\n                    type: \"personal\",\n                    expires: 1,\n                    expiry_date: 1999999999999,\n                },\n            }),\n        },\n    });\n};\n\nlet paddleVerify = () => {\n    if (url !== \"https://v3.paddleapi.com/3.2/license/verify\") return;\n    let body = JSON.stringify({\n        success: true,\n        response: {\n            type: \"personal\",\n            expires: 1,\n            expiry_date: 1999999999999,\n        },\n    });\n    $done({\n        response: {\n            body,\n        },\n    });\n};\n\nlet elpassManagement = () => {\n    if (url !== \"https://api.elpass.app/device/management\") return;\n    let body = JSON.stringify({\n        \"email\": \"QiuChenly@52pojie.com\",\n        \"subscriptionBillingPeriod\": null,\n        \"subscriptionEndDate\": 99999502400,\n        \"subscriptionSource\": null,\n        \"autoRenew\": true,\n        \"trial\": false\n    });\n    $done({\n        response: {\n            body,\n        },\n    });\n};\n\nlet elpassInit = () => {\n    if (url !== \"https://api.elpass.app/device/init\") return;\n    let body = JSON.stringify({\n        \"code\": 0,\n        \"subscriptionBillingPeriod\": null,\n        \"subscriptionEndDate\": 99999502400, //5100年授权\n        \"subscriptionSource\": null,\n        \"autoRenew\": true,\n        \"trial\": false\n    });\n    $done({\n        response: {\n            body,\n        },\n    });\n};\n\nlet elpassActiveWithKey = () => {\n    if (url !== \"https://api.elpass.app/device/activate-with-key\") return;\n    let body = JSON.stringify({\n        \"code\": 0,\n        \"license\": \"没有密钥 这个注入伪造信息是没有用的\"\n    });\n    $done({\n        response: {\n            body,\n        },\n    });\n};\n\npaddleActivate();\npaddleVerify();\n\n//这里可以用通用有效授权信息伪造下发即可伪造出真实激活状态\nelpassManagement();\nelpassInit();\nelpassActiveWithKey();\n"
  },
  {
    "path": "Utils.rb",
    "content": "# frozen_string_literal: true\n\n# 检查文件是否存在\n# 参数:\n#   file_path 文件路径\n# 返回值:\n#   是否存在\ndef file_exist?(file_path)\n  File.exist?(file_path)\nend\n\n"
  },
  {
    "path": "config.json",
    "content": "{\n  \"project\": \"InjectShell\",\n  \"Author\": \"QiuChenly\",\n  \"Version\": 1.2,\n  \"Description\": {\n    \"desc\": \"这是一个用于解释说明json对象用途的说明文档。basePublicConfig里面的同名配置如果在AppList里面配置了相同的Key，则优先使用AppList里面的值。\",\n    \"bridgeFile\": \"app路径和注入文件路径之间的中间路径，有些app只能注入到/Contents，所以加了这个。\",\n    \"packageName\": \"app包名，用来确认App是否存在。\",\n    \"injectFile\": \"注入文件的相对app路径的路径\",\n    \"supportVersion\": \"支持的版本号，用于大版本号 如果不提供任意版本号则直接无条件注入\",\n    \"supportSubVersion\": \"更精确的子版本号，用于某些app大版本号不变但是经常变小版本号的陋习\",\n    \"extraShell\": \"额外的执行shell，比如PD18需要执行一些额外的shell，支持自定义。\",\n    \"needCopyToAppDir\": \"有些app需要复制到app目录中才能在SIP打开的时候运行 这个属性可以控制库文件被复制到Framework\",\n    \"deepSignApp\": \"自动签名整个App\",\n    \"disableLibraryValidate\": \"关闭库验证 暂时只为pd启用\",\n    \"entitlements\": \"用于跳过部分权限 在启用SIP的macOS上 如ARM64\",\n    \"noSignTarget\": \"默认注入后会对目标文件进行签名,我们有时候不需要这个行为。\",\n    \"noDeep\": \"--deep 控制\"\n  },\n  \"basePublicConfig\": {\n    \"bridgeFile\": \"/Contents/Frameworks/\"\n  },\n  \"AppList\": [\n    {\n      \"packageName\": \"com.nssurge.surge-mac\",\n      \"appBaseLocate\": \"/Applications/Surge.app\",\n      \"bridgeFile\": \"/Contents/Frameworks/\",\n      \"injectFile\": \"Bugsnag.framework/Versions/A/Bugsnag\",\n      \"needCopyToAppDir\": true,\n      \"extraShell\": \"surgeAgent.sh\"\n    },\n    {\n      \"packageName\": \"com.parallels.desktop.console\",\n      \"bridgeFile\": \"/Contents/MacOS/Parallels Service.app/Contents/MacOS/\",\n      \"injectFile\": \"prl_disp_service\",\n      \"extraShell\": \"pd.sh\",\n      \"noDeep\": true,\n      \"supportSubVersion\": [\n        \"53606\",\n        \"53488\",\n        \"53614\",\n        \"53621\",\n        \"54570\",\n        \"54729\"\n      ]\n    },\n    {\n      \"packageName\": \"com.surteesstudios.Bartender\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"Sparkle.framework/Versions/A/Sparkle\",\n      \"extraShell\": \"bartender.sh\"\n    },\n    {\n      \"packageName\": \"com.crystalidea.macsfancontrol\",\n      \"injectFile\": \"QtMacExtras.framework/Versions/5/QtMacExtras\",\n      \"needCopyToAppDir\": true,\n      \"extraShell\": \"macfans.sh\"\n    },\n    {\n      \"packageName\": \"com.nonstrict.Bezel-direct\",\n      \"injectFile\": \"Sparkle.framework/Versions/B/Sparkle\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"com.tinyapp.TablePlus\",\n      \"injectFile\": \"SSH.framework/Versions/A/SSH\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true,\n      \"deepSignApp\": true,\n      \"extraShell\": \"tablePlus.sh\"\n    },\n    {\n      \"packageName\": \"app.elpass.macos\",\n      \"appBaseLocate\": \"/Applications/Elpass.app\",\n      \"injectFile\": \"MMMarkdown.framework/Versions/A/MMMarkdown\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"ws.stash.app.mac\",\n      \"appBaseLocate\": \"/Applications/Stash.app\",\n      \"injectFile\": \"Sparkle.framework/Versions/B/Sparkle\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"extraShell\": \"stash.sh\"\n    },\n    {\n      \"packageName\": \"com.firecore.infuse\",\n      \"injectFile\": \"GZIP.framework/Versions/A/GZIP\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true,\n      \"deepSignApp\": true,\n      \"entitlements\": \"signkeep.xml\"\n    },\n    {\n      \"packageName\": \"com.coderforart.MWeb3\",\n      \"injectFile\": \"Sparkle.framework/Versions/B/Sparkle\"\n    },\n    {\n      \"packageName\": \"com.nektony.App-Cleaner-SIII\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"NektonyFallManager.framework/Versions/A/NektonyFallManager\"\n    },\n    {\n      \"packageName\": \"com.macpaw.CleanMyMac4\",\n      \"injectFile\": \"Announcements.framework/Versions/A/Announcements\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"extraShell\": \"cmmxAgent.sh\"\n    },\n    {\n      \"packageName\": \"com.macpaw.CleanMyMac4.Menu\",\n      \"appBaseLocate\": \"/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app\",\n      \"injectFile\": \"CMMNotifications.framework/Versions/A/CMMNotifications\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"com.artdesktop.bestzip2\",\n      \"injectFile\": \"JSONModel.framework/Versions/A/JSONModel\"\n    },\n    {\n      \"packageName\": [\n        \"com.navicat.NavicatPremium\",\n        \"com.navicat.NavicatForOracle\"\n      ],\n      \"injectFile\": \"NAVTabBarView.framework/Versions/A/NAVTabBarView\"\n    },\n    {\n      \"packageName\": \"com.adobe.Photoshop\",\n      \"appBaseLocate\": \"/Applications/Adobe Photoshop (Beta)/Adobe Photoshop (Beta).app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\"\n    },\n    {\n      \"packageName\": \"com.adobe.lightroomCC\",\n      \"appBaseLocate\": \"/Applications/Adobe Lightroom CC/Adobe Lightroom.app\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"Adobe Lightroom\",\n      \"entitlements\": \"signkeep.xml\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.Photoshop\",\n      \"appBaseLocate\": \"/Applications/Adobe Photoshop 2024/Adobe Photoshop 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.illustrator\",\n      \"appBaseLocate\": \"/Applications/Adobe Illustrator 2024/Adobe Illustrator.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.ame.application.24\",\n      \"appBaseLocate\": \"/Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.AfterEffects\",\n      \"appBaseLocate\": \"/Applications/Adobe After Effects 2024/Adobe After Effects 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.Adobe-Animate-2024.application\",\n      \"appBaseLocate\": \"/Applications/Adobe Animate 2024/Adobe Animate 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.Audition\",\n      \"appBaseLocate\": \"/Applications/Adobe Audition 2024/Adobe Audition 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.PremierePro.23\",\n      \"appBaseLocate\": \"/Applications/Adobe Premiere Pro 2024/Adobe Premiere Pro 2024.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.Acrobat.Pro\",\n      \"appBaseLocate\": \"/Applications/Adobe Acrobat DC/Adobe Acrobat.app\",\n      \"injectFile\": \"AdobeAGM.framework/Versions/A/AdobeAGM\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.InCopy\",\n      \"appBaseLocate\": \"/Applications/Adobe InCopy 2024/Adobe InCopy 2024.app\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"PublicLib.dylib\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.InDesign\",\n      \"appBaseLocate\": \"/Applications/Adobe InDesign 2024/Adobe InDesign 2024.app\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"PublicLib.dylib\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true\n    },\n    {\n      \"packageName\": \"com.adobe.LightroomClassicCC7\",\n      \"appBaseLocate\": \"/Applications/Adobe Lightroom Classic/Adobe Lightroom Classic.app\",\n      \"injectFile\": \"AgUI.framework/Versions/A/AgUI\",\n      \"needCopyToAppDir\": true,\n      \"noDeep\": true,\n      \"entitlements\": \"signkeep.xml\"\n    },\n    {\n      \"packageName\": [\n        \"com.microsoft.Excel\",\n        \"com.microsoft.Powerpoint\",\n        \"com.microsoft.Word\"\n      ],\n      \"needCopyToAppDir\": true,\n      \"injectFile\": \"ADAL4.framework/Versions/A/ADAL4\"\n    },\n    {\n      \"packageName\": [\"com.microsoft.Outlook\"],\n      \"needCopyToAppDir\": true,\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"Microsoft Outlook\",\n      \"noSignTarget\": true\n    },\n    {\n      \"packageName\": \"com.sublimetext.4\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"entitlements\": \"signkeep.xml\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"sublime_text\"\n    },\n    {\n      \"packageName\": \"com.sublimemerge\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"entitlements\": \"signkeep.xml\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"sublime_merge\"\n    },\n    {\n      \"packageName\": \"com.mac.utility.screen.recorder\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"OmniRecorder\",\n      \"extraShell\": \"recorder.sh\"\n    },\n    {\n      \"packageName\": \"com.mac.utility.media.player\",\n      \"injectFile\": \"XADMaster.framework/Versions/A/XADMaster\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"com.bandisoft.mac.bandizip\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"Bandizip\",\n      \"supportVersion\": [\"7.27\", \"7.28\"]\n    },\n    {\n      \"packageName\": \"com.bandisoft.mac.bandizip365\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"injectFile\": \"Bandizip365\",\n      \"supportVersion\": [\"7.27\", \"7.28\"]\n    },\n    {\n      \"packageName\": \"com.proxyman.NSProxy\",\n      \"injectFile\": \"Moya.framework/Versions/A/Moya\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"extraShell\": \"proxyManAgent.sh\"\n    },\n    {\n      \"packageName\": [\n        \"com.seriflabs.affinityphoto2\",\n        \"com.seriflabs.affinitydesigner2\",\n        \"com.seriflabs.affinitypublisher2\"\n      ],\n      \"injectFile\": \"liblibzlib.dylib\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"com.panic.transmit.mas\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"ZipZap.framework/Versions/A/ZipZap\"\n    },\n    {\n      \"packageName\": \"tonyapp.devutils\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"DiffMatchPatch.framework/Versions/A/DiffMatchPatch\"\n    },\n    {\n      \"packageName\": \"app.mp3tag.Mp3tag\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"Sparkle.framework/Versions/B/Sparkle\"\n    },\n    {\n      \"packageName\": \"com.villow.wgt\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"injectFile\": \"BFPageControl.framework/Versions/A/BFPageControl\"\n    },\n    {\n      \"packageName\": \"com.wiheads.paste\",\n      \"bridgeFile\": \"/Contents/MacOS/\",\n      \"extraShell\": \"paste.sh\",\n      \"injectFile\": \"Paste\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true\n    },\n    {\n      \"packageName\": \"cn.better365.ishot\",\n      \"injectFile\": \"PTHotKey.framework/Versions/A/PTHotKey\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"extraShell\": \"ishot.sh\"\n    },\n    {\n      \"packageName\": \"com.drbuho.BuhoCleaner\",\n      \"injectFile\": \"Sparkle.framework/Versions/A/Sparkle\",\n      \"bridgeFile\": \"/Contents/Frameworks/DesktopApplication.framework/Versions/A/Frameworks/\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"entitlements\": \"signkeep.xml\",\n      \"extraShell\": \"buhoCleaner.sh\"\n    },\n    {\n      \"packageName\": \"org.qcad\",\n      \"injectFile\": \"libqcadcustomwidgets.dylib\",\n      \"bridgeFile\": \"/Contents/PlugIns/designer/\",\n      \"needCopyToAppDir\": true,\n      \"deepSignApp\": true,\n      \"noDeep\": true\n    }\n  ]\n}\n"
  },
  {
    "path": "main.rb",
    "content": "require 'json'\nrequire 'fileutils'\nrequire './Utils'\nrequire 'pathname'\nrequire 'shellwords'\n\ndef readPrototypeKey(file, keyName)\n  link = Shellwords.escape(file)\n  %x{defaults read #{link} #{keyName}}.chomp\nend\n\ndef parseAppInfo(appBaseLocate, appInfoFile)\n  appInfo = {}\n  appInfo['appBaseLocate'] = \"#{appBaseLocate}\"\n  appInfo['CFBundleIdentifier'] = readPrototypeKey appInfoFile, 'CFBundleIdentifier'\n  appInfo['CFBundleVersion'] = readPrototypeKey appInfoFile, 'CFBundleVersion'\n  appInfo['CFBundleShortVersionString'] = readPrototypeKey appInfoFile, 'CFBundleShortVersionString'\n  appInfo['CFBundleName'] = readPrototypeKey appInfoFile, 'CFBundleExecutable'\n  appInfo\nend\n\ndef scan_apps\n  applist = []\n  baseDir = '/Applications'\n  lst = Dir.glob(\"#{baseDir}/*\")\n  lst.each do |app|\n    appInfoFile = \"#{app}/Contents/Info.plist\"\n    next unless File.exist?(appInfoFile)\n    begin\n      applist.push parseAppInfo app, appInfoFile\n      # puts \"检查本地App: #{appInfoFile}\"\n    rescue StandardError\n      next\n    end\n  end\n  applist\nend\n\ndef checkCompatible(compatibleVersionCode, compatibleVersionSubCode, appVersionCode, appSubVersionCode)\n  return true if compatibleVersionCode.nil? && compatibleVersionSubCode.nil?\n  compatibleVersionCode&.each do |code|\n    return true if appVersionCode == code\n  end\n\n  compatibleVersionSubCode&.each do |code|\n    return true if appSubVersionCode == code\n  end\n  false\nend\n\ndef main\n  ret = %x{csrutil status}.chomp\n  # System Integrity Protection status: disabled.\n  if ret.include?(\"status: enabled\")\n    # puts \"给老子把你那个b SIP关了先！是不是关SIP犯法？\\n要求里写了要先关SIP，能不能认真看看我写的说明？\\n如果你看了还没关，说明你确实是SB\\n如果你没看说明，那你更SB。\\nWhatever，U ARE SB。\"\n    # return\n  end\n\n  config = File.read(\"config.json\")\n  config = JSON.parse config\n  basePublicConfig = config['basePublicConfig']\n  appList = config['AppList']\n  procVersion = config['Version']\n\n  puts \"====\\t自动注入开始执行\\t====\\n\"\n  puts \"====\\tVersion(版本号): #{procVersion}\\t====\\n\"\n  puts \"====\\tAutomatic Inject Script Checking... ====\\n\"\n  puts \"====\\tDesign By QiuChenly(github.com/qiuchenly)\"\n  puts \"注入时请根据提示输入'y' 或者按下回车键跳过这一项。\\n\"\n  puts \"When i find useful options, pls follow my prompts enter 'y' or press enter key to jump that item.\\n\"\n\n  install_apps = scan_apps\n\n  #prepare resolve package lst\n  appLst = []\n  appList.each do |app|\n    packageName = app['packageName']\n    if packageName.is_a?(Array)\n      packageName.each { |name|\n        tmp = app.dup\n        tmp['packageName'] = name\n        appLst.push tmp\n      }\n    else\n      appLst.push app\n    end\n  end\n\n  appLst.each { |app|\n    packageName = app['packageName']\n    appBaseLocate = app['appBaseLocate']\n    bridgeFile = app['bridgeFile']\n    injectFile = app['injectFile']\n    supportVersion = app['supportVersion']\n    supportSubVersion = app['supportSubVersion']\n    extraShell = app['extraShell']\n    needCopy2AppDir = app['needCopyToAppDir']\n    deepSignApp = app['deepSignApp']\n    disableLibraryValidate = app['disableLibraryValidate']\n    entitlements = app['entitlements']\n    noSignTarget = app['noSignTarget']\n    noDeep = app ['noDeep']\n\n    localApp = install_apps.select { |_app| _app['CFBundleIdentifier'] == packageName }\n    if localApp.empty? && (appBaseLocate.nil? || !Dir.exist?(appBaseLocate))\n      next\n    end\n\n    if localApp.empty?\n      puts \"[🔔] 此App包不是常见类型结构，请注意当前App注入的路径是 #{appBaseLocate}\"\n      puts \"[🔔] This App Folder is not common struct,pls attention now inject into the app path is #{appBaseLocate}\"\n      # puts \"读取的是 #{appBaseLocate + \"/Contents/Info.plist\"}\"\n      localApp.push(parseAppInfo appBaseLocate, appBaseLocate + \"/Contents/Info.plist\")\n    end\n\n    localApp = localApp[0]\n    if appBaseLocate.nil?\n      appBaseLocate = localApp['appBaseLocate']\n    end\n    bridgeFile = basePublicConfig['bridgeFile'] if bridgeFile.nil?\n\n    unless checkCompatible(supportVersion, supportSubVersion, localApp['CFBundleShortVersionString'], localApp['CFBundleVersion'])\n      puts \"[😅] [#{localApp['CFBundleName']}] - [#{localApp['CFBundleShortVersionString']}] - [#{localApp['CFBundleIdentifier']}]不是受支持的版本，跳过注入😋。\\n\"\n      next\n    end\n\n    puts \"[🤔] [#{localApp['CFBundleName']}] - [#{localApp['CFBundleShortVersionString']}] - [#{localApp['CFBundleIdentifier']}]是受支持的版本，是否需要注入？y/n(默认n)\\n\"\n    action = gets.chomp\n    next if action != 'y'\n    puts \"开始注入App: #{packageName}\"\n\n    dest = appBaseLocate + bridgeFile + injectFile\n    backup = dest + \"_backup\"\n\n    if File.exist? backup\n      puts \"备份的原始文件已经存在,需要直接用这个文件注入吗？y/n(默认y)\\n\"\n      puts \"Find Previous Target File Backup, Are u use it inject？y/n(default is y)\\n\"\n      action = gets.chomp\n      # action = 'y'\n      if action == 'n'\n        FileUtils.remove(backup)\n        FileUtils.copy(dest, backup)\n      else\n\n      end\n    else\n      FileUtils.copy(dest, backup)\n    end\n\n    current = Pathname.new(File.dirname(__FILE__)).realpath\n    current = Shellwords.escape(current)\n    # set shell +x permission\n    sh = \"chmod +x #{current}/tool/insert_dylib\"\n    # puts sh\n    system sh\n    backup = Shellwords.escape(backup)\n    dest = Shellwords.escape(dest)\n\n    sh = \"sudo #{current}/tool/insert_dylib #{current}/tool/libInjectLib.dylib #{backup} #{dest}\"\n    unless needCopy2AppDir.nil?\n        system \"sudo cp #{current}/tool/libInjectLib.dylib #{Shellwords.escape(appBaseLocate + bridgeFile)}libInjectLib.dylib\"\n        sh = \"sudo #{current}/tool/insert_dylib #{Shellwords.escape(appBaseLocate + bridgeFile)}libInjectLib.dylib #{backup} #{dest}\"\n    end\n    # puts sh\n    system sh\n\n    signPrefix = \"codesign -f -s - --timestamp=none --all-architectures\"\n\n    if noDeep.nil?\n      puts \"Need Deep Sign.\"\n      signPrefix = \"#{signPrefix} --deep\"\n    end\n\n    unless entitlements.nil?\n      signPrefix = \"#{signPrefix} --entitlements #{current}/tool/#{entitlements}\"\n    end\n\n    # 签名目标文件 如果加了--deep 会导致签名整个app\n    if noSignTarget.nil?\n      puts \"开始签名...\"\n      system \"#{signPrefix} #{dest}\"\n    end\n\n    unless disableLibraryValidate.nil?\n      sh = \"sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool true\"\n      system sh\n    end\n\n    unless extraShell.nil?\n      system \"sudo sh #{current}/tool/\" + extraShell\n    end\n\n    if deepSignApp\n       system \"#{signPrefix} #{Shellwords.escape(appBaseLocate)}\"\n    end\n\n    puts \"App处理完成。\"\n  }\nend\n\nmain\n"
  },
  {
    "path": "readme.md",
    "content": "<p align=\"center\" style=\"font-size: 21px\">QiuChenly InjectShell</p>\n<p align=\"center\">Creative & Design</p>\n<p align=\"center\">2023@MacBook Pro</p>\n\n\n# 概览\n\n<!-- TOC -->\n\n- [概览](#概览)\n- [我的Twitter](#我的twitter)\n  - [我的Tg频道](#我的tg频道)\n  - [我的Tg群组](#我的tg群组)\n- [先TM点Star！别几把点Fork了！](#先tm点star别几把点fork了)\n- [免责声明](#免责声明)\n    - [让你们看看原神的力量 去吧 芭芭拉](#让你们看看原神的力量-去吧-芭芭拉)\n- [使用](#使用)\n- [问题](#问题)\n- [环境](#环境)\n- [兼容](#兼容)\n- [激活注意](#激活注意)\n  - [Emby Server 破解](#emby-server-破解)\n  - [Sublime Text Dev](#sublime-text-dev)\n  - [PD 19](#pd-19)\n  - [Stash](#stash)\n  - [ELPass](#elpass)\n  - [Surge](#surge)\n  - [拦截激活部分App](#拦截激活部分app)\n- [提示](#提示)\n- [警告](#警告)\n- [目的](#目的)\n- [群组交流](#群组交流)\n- [~~停更~~](#停更)\n\n<!-- TOC -->\n\n# 我的Twitter\n\n关注我的Twitter(X) 平台OK？关注落叶喵，关注QiuChenly谢谢喵\n\n[QiuChenly](https://twitter.com/QiuChenly)\n\n## 我的Tg频道 \n\n关注落叶频道喵 关注落叶频道谢谢喵\n\nhttps://t.me/qiuchenlymac\n\n\n## 我的Tg群组\n挑战互联网米线下限\n\n别让欲望击穿你の意志\n\nhttps://t.me/+f3BWmkjVCzQwYzM1\n\n# 先TM点Star！别几把点Fork了！\n先TM点Star！别光几把点你那b fork按钮了 老子不更新你光fork项目有几把用？留着当互联网活化石？\n\n# 免责声明\n\n致来自中国大陆的各位学习研究爱好者:<br>\n   根据大陆中华人民共和国《计算机软件保护条例》第十七条规定：“为了学习和研究软件内含的设计思想和原理，通过安装、显示、传输或者存储软件等方式使用软件的，可以不经软件著作权人许可，不向其支付报酬。”您需知晓本仓库所有内容资源均来源于网络，仅供用户交流学习与研究使用，版权归属原版权方所有，版权争议与本仓库本作者无关，用户本人下载后不能用作商业或非法用途，需在24小时之内删除，否则后果均由用户承担责任。如果你不删,请发邮件到qiuchenly@outlook.com, 我做个登记, 然后让这些喜欢发律师函的事务所一对一指导你。\n\n我是来自北美的独立IOS应用开发者, 是二次元南桐. 从早稻田毕业的那一天, 我的青春也永远留在了京都.\n\n对了,下次发律师函的时候记得发往我住的地方: 华盛顿特区第35大道林肯大街15号-501, John Albet收.\n\n### 让你们看看原神的力量 去吧 芭芭拉\n\n[![启动](https://i2.hdslb.com/bfs/archive/966fe6fe2c1329919bb8972d69fb8c09d17047cc.jpg@100w_100h_1c.png)](https://ipfs.lanyundev.com/ipfs/bafybeigpm6ocaba2wlgi7zgio3lu7hzqxgrviiicuwc5xbddlo77leabcy/6e51fccaeb5343bda366d42e68c3c705.MP4)\n\n# 使用\n\n1. 下载整个仓库并解压，双击运行\"原神_启动.command\"并输入密码，按照提示操作。\n   <br>\n   小白不知道点哪里下载整个仓库？[点我下载](https://github.com/QiuChenlyOpenSource/InjectLib/archive/refs/heads/main.zip)\n2. 要是你不差这几分钟时间，从头到尾先认真读一遍这个readme，可能你看完之后会解决你的部分疑惑。\n\n纯小白另可参见:[小白参考](https://github.com/wolffya/InjectLib/tree/secondary)\n\n# 问题\n\n这里列举一下可能会遇到的问题。\n\n1. 遇到\"xxx想要访问你的机密信息\"<br>\n   ![img.png](img.png)<br>\n   原因:<br>\n   补丁对某些App会自动签名以保证能在SIP打开的情况下使用.但是保存在钥匙串里的信息只能被官方签名的app读取\n   自己签名App后会造成丢失权限<br><br>\n   解决方案:<br>\n   去钥匙串删除这个App用到的几个“机密信息”,说实话就你那破b电脑上能有什么机密信息啊？都用云上贵州了你的那点b信息谁不知道啊？\n\n2. 我不会用终端<br>\n   解决方案:<br>\n   没脑子？不会百度？动手破解软件不会可以理解，用别人写好的脚本一键破解也不会？21世纪怎么还会有这么废物的人啊？\n\n3. 需要移到垃圾篓\n   \n   应该是App没有打开过就直接执行注入了。这可能会导致检查不通过，不过影响不是很大。建议App在注入前先运行一次。\n\n   ![移到垃圾桶](image-3.png)\n\n   这是正常的，因为SIP打开的情况下如果修改了App会导致校验不通过，你只需要手动从Finder中右击点开一次就好了:<br>\n   ![打开](image-4.png)\n   ![进一步打开](image-5.png)\n\n   此时就能正常打开。如果还出现问题，请检查自己的注入操作有没有问题。\n\n4. Operation not permitted<br>\n   如下所示。<br>\n   ![simple](image-7.png)<br>\n   ```\n   开始注入App: com.nssurge.surge-mac\n   /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:1387:in `initialize': Operation not permitted @ rb_sysopen - /Applications/Surge.app/Contents/Frameworks/Bugsnag.framework/Versions/A/Bugsnag_backup (Errno::EPERM)\n   ```\n   这是很多人会遇到的问题。<br>Operation not permitted就是终端app需要修改app，但是没权限 所以会崩溃。<br>\n   原因：终端没有给操作权限<br>\n   解决办法：<br>\n   1. 打开设置<br>\n   2. 隐私和安全性<br>\n   3. 开发者工具 和 App管理<br>\n   4. 两个地方都要打开终端开关，重启终端即可正常执行。<br>\n   ![terminal](image-6.png)<br>\n   ![还有这个](image-8.png)\n\n# 环境\n\n代码运行最低操作系统要求&此代码编译环境\n\n- 最低运行 macOS High Sierra 10.13\n- 编译SDK macOS 14.0\n- 目标部署平台 macOS 10.13\n- CMakeLists 环境变量\n  - set(CMAKE_OSX_DEPLOYMENT_TARGET \"10.13\")\n- 检查二进制文件的最低macOS版本兼容性\n  - ```find . -name \"*.*\" | xargs otool -l | grep -E \"(minos|sdk)\"```\n\n# 兼容\n\n新增的SIP栏说明:<br>\n\n- ❌: 只能关闭SIP使用<br>\n- ✅: 可以在打开SIP的机器上使用<br>\n\n| App                                            | 版本                                                                                        | ARM64 | Intel | SIP | 特殊要求                                                                                                                                                                            |\n|:-----------------------------------------------|:------------------------------------------------------------------------------------------|:-----:|:-----:|-----|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| iShot                                          | 通杀                                                                                        |   ✅   |   ✅   | ✅   | 交个朋友 不杀了 大家支持正版吧 又不贵                                                                                                                                                            | \n| Infuse Pro                                     | 通杀                                                                                        |   ✅   |   ✅   | ✅   |                                                                                                                                                                                 | \n| MWEB Pro                                       | 通杀                                                                                        |   ✅   |   ✅   | ✅   |                                                                                                                                                                                 | \n| 解优2                                            | 通杀                                                                                        |   ✅   |   ✅   | ✅   |                                                                                                                                                                                 | \n| Omi录屏专家                                        | 通杀                                                                                        |   ✅   |   ✅   | ❌   | 需要从Mac AppStore 下载                                                                                                                                                              | \n| OmniPlayer                                     | 通杀                                                                                        |   ✅   |   ✅   | ✅   | 需要从Mac AppStore 下载                                                                                                                                                              |\n| Navicat Premium                                | 通杀                                                                                        |   ✅   |   ✅   | ✅   | 需要从Mac AppStore 下载                                                                                                                                                              |\n| Navicat 16 ForOracle                           | 通杀                                                                                        |   ❌   |   ✅   | ✅   | 需要从Mac AppStore 下载 我下不到ARM64的版本                                                                                                                                                 |\n| Sublime Text                                   | [通杀](https://download.sublimetext.com/sublime_text_build_4154_mac.zip)                    |   ✅   |   ✅   | ✅   | 授权信息下面找。                                                                                                                                                                        |\n| Elpass                                         | [通杀](https://elpass.app/macos/Elpass-1.5.6-490.zip)                                       |   ✅   |   ✅   | ✅   | 无法使用云同步 签名后的app通病 无解 搭配Surge脚本可以做到5138年授权                                                                                                                                       |\n| Surge 5                                        | [通杀](https://dl.nssurge.com/mac/v5/Surge-5.4.1-2471-6362273df75c0e6bc35e4b1734c37c52.zip) |   ✅   |   ✅   | ✅   | 年度好戏我愿称之为 《窃听风云8:赛博卧底》                                                                                                                                                          | \n| CleanMyMac X                                   | 通杀                                                                                        |   ✅   |   ✅   | ✅   | com.macpaw.CleanMyMac4.Menu 单独也要注入 Helper每个版本不一样还是需要单独处理 暂时不弄了 不要下大陆特供版 更新地址: https://s3-us-west-2.amazonaws.com/updateinfo.devmate.com/com.macpaw.CleanMyMac4/beta/updates.xml | \n| Microsoft Office Word/PowerPoint/Excel/Outlook | 通杀                                                                                        |   ✅   |   ✅   | ✅   | 365订阅版 需要从Mac AppStore 下载                                                                                                                                                       |\n| Stash                                          | [2.3.0](https://mac-release-static.stash.ws/Stash-build-221.zip)                          |   ❌   |   ✅   | ❌   | 无法设置全局代理 不知道哪里有问题 总体体验较差 不如surge                                                                                                                                                |\n| Paste                                          | 4.1.2                                                                                        |   ✅   |   ✅   | ✅   |     全新算法，杀！                                                                                                                                                                            | \n| App Cleaner & Uninstaller                      | 8.2.2                                                                                     |   ✅   |   ✅   | ✅   | 因为签名会导致提示盗版，有空在再弄。                                                                                                                                                              | \n| Affinity Photo 2/Designer 2/Publisher 2 全家桶    | 2.1.1                                                                                     |   ✅   |   ✅   | ✅   | 需要从Mac AppStore 下载                                                                                                                                                              |\n| ProxyMan                                       | [通杀](https://download.proxyman.io/49100/Proxyman_4.10.0.dmg)                            |   ✅   |   ✅   | ✅   | 更新地址: https://proxyman.io/osx/version.xml                                                                                                                                       |\n| BuhoCleaner                                    | [通杀](https://www.drbuho.com/buho-public-files/buhocleaner/buhocleaner197150.dmg)       |   ✅   |   ✅   | ✅   | 更新地址:https://www.drbuho.com/buho-public-files/buhocleaner/appcast.xml                                                                                                           |\n| Macs Fan Control                                    | [通杀](https://crystalidea.com/downloads/macsfancontrol.zip)       |   ✅   |   ✅   | ✅   | |\n| TablePlus                                    | [通杀](https://tableplus.com/release/osx/tableplus_latest)       |   ✅   |   ✅   | ✅   | 老子第一次喷App: 傻逼App 做的跟shit一样 我伪造的授权信息在内存数据结构被篡改成不知道哪来的ObjectC对象引起崩溃 浪费老子时间 真的垃圾App 作者能不能几把优化一下？？ 就这破App 老子弄到凌晨三点 真的狗都不用 而且连个汉化都没有 格局Down Down了 |\n|Transmit 5|5.9.2|✅|✅|✅| 需要从App Store下载\n|DevUtils|[1.17.0](https://devutils.com/archives/DevUtils-1.17.0.dmg)|✅|✅|✅| 功能可用 但是激活状态我懒得改了 作者写的这个App代码质量之烂令人无语 不想多说什么了\n|MP3Tag|[1.8.6 (86)](https://updates.mp3tag.app/Mp3tag-1.8.6.zip)|❌|✅|✅| 序列号随便输入 全部激活\n|Widgetter|[通杀](https://apps.apple.com/cn/app/widgetter-%E5%B0%8F%E5%B7%A5%E5%85%B7-%E6%A1%8C%E9%9D%A2%E5%A3%81%E7%BA%B8-%E4%B8%BB%E9%A2%98-%E5%B1%8F%E4%BF%9D/id1553223588?mt=12)|✅|✅|✅| MAS下载 激活全部功能\n|Bartender 5|[5.0.36-通杀](https://macbartender.com/B2/updates/5-0-31/Bartender%205.zip)|✅|✅|✅| 更新地址 https://www.macbartender.com/B2/updates/AppcastB5.xml\n|Parallels Desktop|[19.1.0](https://download.parallels.com/desktop/v19/19.1.0-54729/ParallelsDesktop-19.1.0-54729.dmg) |   ✅   |   ✅   | ✅   |  谁会想到会有人以全家除他以外(含亲妈)全部暴毙的代价冒名顶替别人给我发恐吓律师函呢？\n|QCAD-Intel|[3.28.2](https://www.qcad.org/archives/qcad/qcad-3.28.2-trial-macos-10.14-13.dmg)|❌|✅|✅| ARM懒得弄\n|Bandizip 365|7.28|✅|✅|✅|订阅版|\n|Bandizip|7.28|✅|✅|✅|买断版|\n\n| Adobe 全家桶               | 版本           | ARM64 | Intel | 特殊说明 全家桶全部支持打开SIP下使用                         |\n|:------------------------|:-------------|:-----:|:-----:|:-----------------------------|\n| Adobe PhotoShop         | 通杀           |   ✅   |   ✅   | PS:Intel上的神经滤镜已经完美可用 ARM的暂时不行                |\n| Adobe Acrobat Pro           | 23.006.20360 |   ✅   |   ✅   |                              |\n| Adobe Illustrator       | 28.0.0       |   ✅   |   ✅   | ARM64 测试通过 X86没有测试过 大家自行测试   |\n| Adobe Lightroom      | 7.0         |   ❌    |   ✅   | 注入后先点试用 然后过期后可以正常使用 |\n| Adobe Lightroom Classic | 13.0.1         |   ❌   |   ✅   | 注入后先点试用 然后过期后可以正常使用                 |\n| Adobe InCopy 2024      | 19.0.0.151         |   ✅    |   ❌   | 在M1 Mac Mini 中测试通过 |\n| Adobe InDesign 2024      | 19.0.0.151         |   ✅    |   ❌   | 在M1 Mac Mini 中测试通过 |\n| Adobe Premiere Pro 2024     | 24.0.0         |   ✅    |   ✅   | 在M1 Mac Mini 中测试通过 |\n| Adobe After Effects 2024      | 24.0.0         |   ✅    |   ✅   | 在M1 Mac Mini 中测试通过 |\n| Adobe Animate 2024      | 24.0         |   ✅   |   ✅   | 在M1 Mac Mini 中测试通过 |\n| Adobe Audition 2024      | 24.0.0.46         |   ✅    |   ✅   | 在M1 Mac Mini 中测试通过 |\n| Adobe Media Encoder 2024      | 24.0         |   ✅    |   ✅   | 在M1 Mac Mini 中测试通过 |\n\n激活Adobe后出现This non-genius app解决方案:\n![ATTENTION](image-10.png)\n不用代理工具的人想办法屏蔽下面的域名,用Surge的人解决方案简单如下:\n\n屏蔽所有*.adobe.io的域名, Surge手动增加规则DOMAIN-SUFFIX,值为adobe.io,但是要注意放行lcs-cops.adobe.io为DIRECT,否则App打开就会崩溃。\n![Adobe屏蔽](image-9.png)\n\n另请参见: [Adobe激活产品说明](./Adobe说明.md)\n\n# 激活注意\n\n## Emby Server 破解\n参见 [EmbyServer 破解说明](./EmbyServer)\n\n## Sublime Text Dev\n\n```\n----- BEGIN LICENSE -----\n秋城落叶@52pojie.com\nUnlimited User License\nEA7E-8888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n88888888888888888888888888888888\n------ END LICENSE ------\n```\n\n## PD 19\n\nPD 19 说明与注意事项:<br>\n\n1. 注入后已经不需要原始人启动就可以直接运行了。\n2. 不要command+q强制退出应用，否则注入库没有足够的机会切换文件导致下一次打开的时候显示为未激活。\n3. 总结：正常使用，退出时点退出按钮退出应用程序即可，不要乱秀操作。\n\n灵感和解决思路来自于:<br>\n仓库: https://github.com/trueToastedCode/ParallelsLab/tree/main<br>\n非常感谢trueToastedCode提出的想法和美妙设计！\n\n非常感谢@trueToastedCode，PD 19.1 的破解正是由@trueToastedCode的努力研究成果！\n\n## Stash\n\nhttps://mac-release.stash.ws/appcast.xml\n\n## ELPass\n\nhey,bro,what's up?\n\nElPass: https://elpass.app/macos/appcast-beta.xml\n\n## Surge\n\n目前最新支持 Surge 5.4.0 2417版本.\n\nlaoliu，good morning. not good also fine, follow u.\n\nSurge盗版用户请支持正版。<br>\n我对开发者致敬说个早上好也被某些无脑用户过度解读是嘲讽开发者是吧？那我直接说操你妈是不是你全家骨灰都被我扬了？<br>\nSurge是非常好的一个产品，我发我的补丁 你支持你自己的正版，who care u?<br>\n有的人不要两头带节奏 在正版群对开发者那边截图破解版嘲笑还打着为开发者着想的幌子拱火 另一边下破解版在别的电脑上用\n这种人你的米线很低我就不评价了 但是你的🐎肯定必死。<br>\n\n对开发者团队我无意冒犯，早上好。<br>\n\nSurge 更新地址: https://www.nssurge.com/mac/v5/appcast-signed-beta.xml <br>\n\n一切完美。感谢QQ 302***3398 用户无偿提供授权信息。<br>\n目前错误已全部修正。<br>\n之前安装过旧版本的用户进Surge后先卸载一遍Helper帮助程序才能正常安装帮助程序挂上代理。点击安装帮助程序没反应的不是破解的问题，能不能先去点一下卸载帮助程序呢？<br>\n如果你因为某些软件缺陷第一反应质疑是破解的问题，那么我只能说“SB 你是对的 都是破解的问题 你说的太对了 完全不是你的问题\n完全不是原始软件的问题”因为跟蠢货争论只会浪费我的生命。<br>\n\n## 拦截激活部分App\n\nSurge可以利用拦截修改http返回值的方式破解下面的app而无需修改原始App。下面是脚本破解步骤，如果你不需要用下面的App，看到这里就可以关闭网页了。\n\nSurge开启MitM和脚本功能，然后: <br>\n\n1. 在你的配置文件中加入例子中提供文件中的Script字段信息:\n   [Surge脚本配置例子.conf](Surge%E6%BF%80%E6%B4%BB%E8%84%9A%E6%9C%AC%2FSurge%E8%84%9A%E6%9C%AC%E9%85%8D%E7%BD%AE%E4%BE%8B%E5%AD%90.conf)\n   ![img.png](imgs/img.png)\n   ![img_1.png](imgs/img_1.png)\n   ![img_1.png](imgs/img_2.png)\n\n2. [paddle_act.js](Surge%E6%BF%80%E6%B4%BB%E8%84%9A%E6%9C%AC%2Fpaddle_act.js)这个文件一定要复制到conf文件所在目录中。\n\n3. 记得Https解密打开，并且信任证书，MitM域名加入*.paddleapi.com保存即可。<br>\n   如果要实现五千年授权需要打开增强模式并加入新的域名: api.elpass.app<br>\n   ![img.png](imgs/img3.png)\n\n4. 在App中随意输入序列号和邮箱，点击激活后秒激活。\n\n已测试支持以下App:\n\n| App           | 版本     | 特殊说明                                           |\n|:--------------|:-------|:-----------------------------------------------|\n| AlDente Pro   | 1.22   |                                                |\n| AirBuddy      | 2.7.1  |                                                |\n| Downie 4      | 4.6.27 | `B7EE3D3C-B7EE3D3C-B7EE3D3C-B7EE3D3C-B7EE3D3C` |\n| One Switch    | 1.31   |                                                |\n| Rectangle Pro | 3.0.8  |                                                |\n| Swish         | 1.10.2 |                                                |\n| TG Pro        | 2.8.2  |                                                |\n| Timemator     | 3.0.3  |                                                |\n\n# 提示\n\n1. 会自动扫描本地安装的App，你只需要在想注入的App后面输入y即可。\n2. Adobe App如果不想让官方ACC乱拉屎，可以用这个仓库下载v6版本的离线安装包: https://github.com/Drovosek01/adobe-packager,\n   然后配合AntiCC之类的组件运行Adobe产品。\n3. 激活之后由于App还需要依赖我的注入代码，所以不要移动注入文件夹或者删除注入文件夹，有的人用完就把注入文件夹删了，第二天就到处说破解不稳定第二次就崩溃。\n   这种人你动动你那个🐷脑子想想为什么第一次能用删了我的注入文件夹第二次打开就崩溃？\n4. 脚本如果没有权限执行注入操作终端报错类似于下面这样:<br>\n   ![示例](image-2.png)\n   那是因为SIP的安全策略限制不允许运行不符合安全策略的代码执行，所以你需要先打开:<br>\n   设置 - 隐私与安全性 - 开发者工具:<br>\n   ![开发者工具](image.png)<br>\n   并打开终端执行代码策略:<br>\n   ![策略](image-1.png)<br>\n\n   最后重新执行即可正常注入。这是MacOS的安全策略，麻烦你动动你那个b手点一下好吗？\n\n\n# 警告\n\n一定要关闭SIP，因为我使用的注入方式依赖于关闭SIP。\n但是有例外，上方表格中App的SIP状态为\"✅\"则可以不用关闭SIP即可使用,并且注入下载文件夹不需要保留，注入后可以删除。\n本库中几乎所有的App都建议你在打开SIP状态下使用，不建议用户关闭SIP，除非你很懂这块。\n\n# 目的\n\n本项目是Free的、开源的、基于互联网最原始的共享精神的、不接受任何打赏的、无所不包的、令人感叹的、无与伦比的、精妙绝伦的、化腐朽为神奇的、逆天的、养生的、抽象的、二次元的、OP的。\n\n在2023年，所有人都逐渐觉得打赏、付费才是理所应当的，哪怕是某些人只做了一件从外网搬运到国内的工作，也应该得到鼓励。\n我不能说这种行为是完全错误的，只能说有些人恬不知耻见利忘义。哪怕是打赏也应该基于双方意愿的基础上，而不是用“打赏后才能下载”这种理由强奸用户的使用习惯，把用户变成必须付费的蠢驴，并辅以几十元的超低价注册会员费用钝刀割肉式的强奸用户。\n\n当然，这种用户也确实是个蠢货。有这种钱你买正版得了，别跟我说太贵，你出去跟朋友吃一顿好点的饭200起步，大部分好软件正版才不到100块钱。抽包烟软中煊赫门起步，面对19.9年费会员时却面露难色，好像杀了你的🐎一样。相信我，你也并不是真的需要这些软件，只是人云亦云盲目从众罢了。\n\n我认为，共享精神不应该建立在物质上，我深刻的理解金钱对人的吸引和动力，但这种精神本身就超越了物质。\n\n# 群组交流\n下方小作文阅前预警:\n\n- 大家都知道楼主一向是有话直说 比较单纯\n- 喷人解决不了问题 但是能解决一部分人潜在会提出的问题\n- 但是请大家放心，楼主素质是很高的 爱恨分明。\n- 玻璃心的人现在立刻关闭当前网页，继续阅读我怕你被我喷的到处散布谣言说我坏话败我路人缘。\n- 有些人不专门写小作文喷一下真的就是为所欲为，本来不想搭理但是有的人真的该喷。\n\n本群欢迎以下人群进入:\n\n- 愿意学习交流安全共享知识技术的人 不区分大佬和新手 一律欢迎\n- 不抄ChatGPT答案的人\n  - 他妈的ChatGPT给的答案都是0x1000为例子 有的人猪脑子直接复制答案 完全看不到gpt说了是“例如” 还他妈把0xFFFC这种答案复制粘贴\n      你这种人确实没脑子 别进了\n  - 真想进就认真答题 错了也会放 我最鄙视的就是没脑子抄答案的人\n\n本群禁止以下人群进入:\n\n- 因为“7.11”停更事件被动引流而来的围观群众\n- 进来只为发一句“慕名而来”的人\n- 加群原因写一句“不知道”/“从xxx地方看到的”/“进来看18岁妹妹后续”这种傻逼\n\n符合以上条件的人先掂量一下你的🐎有几个。<br>\n有些傻逼进来就为发一句“慕名而来”或者发一张截图，配文“从xxx地方看到的”，极其影响老子心情。<br>\n本来18岁妹妹g了老子心情就很不好，反复在老子眼前刷要不是老子素质高早他妈喷你了，你是个什么东西要你在这“慕名而来”？<br>\n你给老子上眼药老子还不能喷你的？在我看不见的地方刷刷算了，别tm来老子群里刷。<br>\n\n之前还看到有人说老子利用这件事给这个群引流的那些傻逼你听好：<br>\n\n* 首先为接下来的话我给你先道个歉。<br>\n* 我引你妈了个b流呢？老子跟18岁妹妹郎才女貌要你在这围观评价？你是个什么臭鱼烂虾？引流？老子谈恋爱跟你有几把关系？傻逼。<br>\n*\n\n祝福我的人我虚心感谢，嘲笑我的人先照镜子看看自己单身二十多年天天躲房间里看日本黄片到处求二次元h漫N刷天天做梦自己能碰到女神小姐姐主动倒贴实际上除了同学朋友也很少月薪三千最后没办法找个190kg坦克还要忍受小仙女作妖27、8岁除了会躲房间里打胶其他什么都不会一事无成的失败人生，你这种废物也好意思评价我？我要是你早他妈从长江大桥上跳下去remake别在这浪费父母资源当个真孝子。\n\n* 你没有脑子不要觉得所有人都没脑子，群里全是(大部分，小部分确实不行)\n  安全行业的兴趣爱好者或者安全行业的专家,我需要一窍不通的围观群众拉低我群含金量？<br>\n* 我不需要没脑子的人加进群，ok？这种劣质流量等于垃圾，在我眼里这种人一点价值都没有，除了挨喷没有任何作用。\n* 最后声明: 我热烈欢迎安全爱好者一起学习研究，但是没脑子的围观党禁止加群。这种人你非要加群可以，我没事就喷你。看是你的赛博🐎多还是我的键盘厉害。\n\n# ~~停更~~\n\n~~最近想追个19岁的小妹妹。<br>\n项目基本上不会更新了，增加的新项目基本上是工作💻需要才做的。<br>\n也不会去维护下面App的新版本了，等我追到手🧑‍🤝‍🧑再说罢！<br>~~\n\n~~为了追💗妹妹👧，MD，跟米哈游原神铁道星穹崩坏王者荣耀蛋仔二次元拼了😡👊！<br>\n这下不得不成为农P/原P/穹P了🙏🙏<br>~~\n\n~~无知时诋毁原神🫤🙏<br>\n成熟时理解原神😭🙏<br>\n恋爱时成为原神😋🙏<br>~~\n\n~~原神助我！喝唉！🖐大荒天陨！️<br>\n任何邪恶！终将绳之以法👮！<br>~~\n\n~~原神，启动！~~\n\n失败了，大家别问了。 <br>\n她不是不喜欢玩游戏，她只是不想和不喜欢的人玩游戏。<br/>\n\n这段Repo不会删，警钟长鸣。但是你要问我如果再给我一次机会还会不会选18岁妹妹，我的回答是“yes i do.”\n"
  },
  {
    "path": "tool/Crossover Activation Script.command",
    "content": "#!/bin/zsh\n\nclear\ncd ~/Library/Preferences/\n\necho -e \"\\e[36mGenerating Licence.....\\e[0m\"\n\nopenssl genrsa -out temp.pem 2048 >> /dev/null 2>&1\nopenssl rsa -in temp.pem -outform PEM -pubout -out public.pem >> /dev/null 2>&1\nmv public.pem /Applications/CrossOver.app/Contents/SharedSupport/CrossOver/share/crossover/data/tie.pub\necho \"[crossmac]\\ncustomer=iAnon\\nemail=iAnon@ianon.com\\nexpires=2999/10/26\\n[license]\\nid=iAnonIsVeryNice\" > com.codeweavers.CrossOver.license\nopenssl dgst -sha1 -sign temp.pem -out com.codeweavers.CrossOver.sig com.codeweavers.CrossOver.license \nrm temp.pem\n\necho -e \"\\e[32mSuccessfully activated, enjoy!\\e[0m\"\n\nexit 0"
  },
  {
    "path": "tool/DIffPatchCode.py",
    "content": "# QiuChenly 计算数据差值做特征码算法\n# 部分网友提供了原始版本 虽然是用的Chatgpt写给我的 但是还是略表谢意\n# 提供不定长度的多个十六进制汇编代码段 自动求出差值特征码\n\ndata = \"\"\"\nFF 03 02 D1 F6 57 05 A9 F4 4F 06 A9 FD 7B 07 A9 FD C3 01 91 A8 25 00 90 08 09 41 F9 08 01 40 F9 A8 83 1D F8 BA 1A 0D 94 F4 03 00 AA C8 27 00 D0 08 81 0F 91 E8 17 00 F9 B5 2B 00 90 B3 06 46 F9 20 42 00 94 E2 03 00 AA E0 03 13 AA 03 74 0D 94 FD 03 1D AA B7 1A 0D 94 F3 03 00 AA 48 28 00 F0 08 01 35 91 E8 03 03 A9 B5 06 46 F9 88 2C 00 F0 08 61 1A 91 00 01 40 F9 30 B4 0D 94 E2 03 00 AA E0 03 15 AA D5 73 0D 94 FD 03 1D AA A9 1A 0D 94 F5 03 00 AA E0 23 00 F9\n\nFF 03 02 D1 F6 57 05 A9 F4 4F 06 A9 FD 7B 07 A9 FD C3 01 91 ?? 25 00 ?? 08 09 41 F9 08 01 40 F9 A8 83 1D F8 ?? ?? 0D 94 F4 03 00 AA ?? 27 00 ?? 08 ?? ?? 91 E8 17 00 F9 ?? 2B 00 ?? B3 ?? 45 F9 ?? 42 00 94 E2 03 00 AA E0 03 13 AA ?? ?? 0D 94 FD 03 1D AA ?? ?? 0D 94 F3 03 00 AA ?? 28 00 ?? 08 ?? ?? 91 E8 03 03 A9 B5 ?? 45 F9 ?? 2C 00 ?? 08 ?? ?? 91 00 01 40 F9 ?? ?? 0D 94 E2 03 00 AA E0 03 15 AA ?? ?? 0D 94 FD 03 1D AA ?? ?? 0D 94 F5 03 00 AA\n\"\"\"\n\ndata1 = []\n\nfor i in data.split(\"\\n\"):\n    if i == \"\":\n        continue\n    else:\n        data1.append(i)\n        if len(data1) > 1:\n            res = \" \".join(\n                [\n                    d1 if d1 == d2 else \"??\"\n                    for d1, d2 in zip(data1[0].split(), data1[1].split())\n                ]\n            )\n            data1 = [res]\n\nprint(data1[0])\n"
  },
  {
    "path": "tool/Parallels_原始人_起洞.command",
    "content": "#!/bin/bash\n\ncd \"${0%/*}\" || exit 1\nread -p \"⚙️ 请输入密码(明文)然后回车: \" -r passwd\nprintf \"\\r\\033[1A%s\" \"\" 1>&2\nprintf \"\\r\\033[K%s\" \"\" 1>&2\necho \"${passwd}\" | sudo -S echo \"⚙️ 当前是 $(sudo -S whoami) 用户\"\n\nif [[ -n \"$1\" ]]; then\n    file=\"/etc/hosts\"\n    lines=(\n        \"127.0.0.1 download.parallels.com\"\n        \"127.0.0.1 update.parallels.com\"\n        \"127.0.0.1 desktop.parallels.com\"\n        \"127.0.0.1 download.parallels.com.cdn.cloudflare.net\"\n        \"127.0.0.1 update.parallels.com.cdn.cloudflare.net\"\n        \"127.0.0.1 desktop.parallels.com.cdn.cloudflare.net\"\n        \"127.0.0.1 www.parallels.cn\"\n        \"127.0.0.1 www.parallels.com\"\n        \"127.0.0.1 www.parallels.de\"\n        \"127.0.0.1 www.parallels.es\"\n        \"127.0.0.1 www.parallels.fr\"\n        \"127.0.0.1 www.parallels.nl\"\n        \"127.0.0.1 www.parallels.pt\"\n        \"127.0.0.1 www.parallels.ru\"\n        \"127.0.0.1 www.parallelskorea.com\"\n        \"127.0.0.1 reportus.parallels.com\"\n        \"127.0.0.1 parallels.cn\"\n        \"127.0.0.1 parallels.com\"\n        \"127.0.0.1 parallels.de\"\n        \"127.0.0.1 parallels.es\"\n        \"127.0.0.1 parallels.fr\"\n        \"127.0.0.1 parallels.nl\"\n        \"127.0.0.1 parallels.pt\"\n        \"127.0.0.1 parallels.ru\"\n        \"127.0.0.1 parallelskorea.com\"\n        \"127.0.0.1 pax-manager.myparallels.com\"\n        \"127.0.0.1 myparallels.com\"\n        \"127.0.0.1 my.parallels.com\"\n        \"# 127.0.0.1 download.parallels.com\"\n        \"# 127.0.0.1 update.parallels.com\"\n        \"# 127.0.0.1 desktop.parallels.com\"\n        \"# 127.0.0.1 download.parallels.com.cdn.cloudflare.net\"\n        \"# 127.0.0.1 update.parallels.com.cdn.cloudflare.net\"\n        \"# 127.0.0.1 desktop.parallels.com.cdn.cloudflare.net\"\n        \"# 127.0.0.1 www.parallels.com\"\n        \"# 127.0.0.1 reportus.parallels.com\"\n        \"# 127.0.0.1 parallels.com\"\n        \"# 127.0.0.1 my.parallels.com\"\n    )\n    if [[ \"$1\" == \"add\" ]]; then\n        if [[ \"$(sudo -S awk 'END {print}' \"${file}\")\" != \"\" ]]; then\n            sudo -S tee -a \"${file}\" >/dev/null <<-EOF\n\nEOF\n        fi\n        # 循环检查和添加行\n        for line in \"${lines[@]}\"; do\n            if ! sudo -S grep -q \"^${line}\" \"${file}\"; then\n                sudo -S tee -a \"${file}\" >/dev/null <<-EOF\n${line}\nEOF\n            fi\n        done\n        echo \"⚙️ 已屏蔽 Parallels Desktop.\"\n        exit 0\n    elif [[ \"$1\" == \"del\" ]]; then\n        # 循环检查和删除行\n        for line in \"${lines[@]}\"; do\n            if sudo -S grep -q \"^${line}\" \"${file}\"; then\n                sudo -S sed -i \"\" \"/^${line}/d\" \"${file}\"\n            fi\n        done\n        echo \"⚙️ 已取消屏蔽 Parallels Desktop.\"\n        exit 0\n    else\n        echo \"⚙️ 参数错误: add / del\"\n    fi\nfi\n\nPDFM_DIR=\"/Applications/Parallels Desktop.app\"\nPDFM_DISP_DST=\"${PDFM_DIR}/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service\"\nPDFM_DISP_PATCH=\"${PDFM_DISP_DST}_patched\"\nPDFM_DISP_BCUP=\"${PDFM_DISP_DST}_backup\"\n\nif [ \"$(pgrep -x prl_disp_service)\" != \"\" ] && [ \"$(pgrep -x prl_client_app)\" != \"\" ]; then\n    open \"${PDFM_DIR}\"\n    exit 0\nfi\n\nif [ ! -e \"${PDFM_DISP_PATCH}\" ]; then\n    sudo -S cp -f \"${PDFM_DISP_DST}\" \"${PDFM_DISP_PATCH}\"\nfi\n\nsudo -S cp -f \"${PDFM_DISP_PATCH}\" \"${PDFM_DISP_DST}\"\nopen \"${PDFM_DIR}\"\n\nsleep 2\n\nsudo -S cp -f \"${PDFM_DISP_BCUP}\" \"${PDFM_DISP_DST}\"\n"
  },
  {
    "path": "tool/Patch.json",
    "content": "{\n  \"surge\": {\n    \"locate\": \"/Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper\",\n    \"arm\": \"FF C3 02 D1 FA 67 06 A9 F8 5F 07 A9 F6 57 08 A9 F4 4F 09 A9 FD 7B 0A A9 FD 83 02 91 F3 03 00 AA BF 83 1B F8 19 01 00 B0 20 ?? 43 F9 62 12 40 F9 ?? 46 00 94 A2 23 01 D1 01 00 80 52 ?? 3F 00 94 C0 00 00 F0 00 ?? ?? 91 E2 43 01 91 01 00 80 52 ?? ?? 00 94 A0 83 5B F8 E2 2B 40 F9 81 00 80 52 ?? ?? 00 94 F5 03 00 AA A0 83 5B F8 ?? 3E 00 94 E0 2B 40 F9 ?? 3E 00 94 C0 00 00 F0 00 ?? 3D 91 E2 43 01 91 01 00 80 52\",\n    \"x86\": \"55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 58 48 89 FB 4C 8D 7D C0 49 C7 07 00 00 00 00 48 8B 3D ?? ?? 01 00 48 8B 53 20 48 8B 35 ?? ?? 01 00 4C 8B 35 ?? ?? 01 00 41 FF D6 48 89 C7 31 F6 4C 89 FA E8 ?? ?? 01 00 48 8D 3D ?? ?? 01 00 4C 8D 65 C8 31 F6 4C 89 E2 E8 ?? ?? 01 00 49 8B 3F 49 8B 14 24 BE 04 00 00 00 E8 ?? ?? 01 00 89 45 BC 49 8B 3F E8 ?? ?? 01 00 49 8B 3C 24 E8 ?? ?? 01 00 48 8D 3D ?? ?? 01 00 31 F6 4C 89 E2 E8 ?? 2A 01 00\",\n    \"out\": \"surge.sh\",\n    \"replaceIntel\": \"{{==intel==}}\",\n    \"replaceARM\": \"{{==arm64==}}\"\n  },\n  \"cmmx\": {\n    \"locate\": \"/Applications/CleanMyMac X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\",\n    \"arm\": \"FF 03 02 D1 F6 57 05 A9 F4 4F 06 A9 FD 7B 07 A9 FD C3 01 91 E0 03 02 AA 1F 20 03 D5 C8 49 18 58 08 01 40 F9 A8 83 1D F8 38 2A 00 94 F3 03 00 AA FF FF 02 A9 FF 13 00 F9 A0 00 00 B4 E8 03 00 91 E0 03 13 AA 7E 2F 00 94 03 00 00 14 00 E4 00 6F E0 03 00 AD 1F 20 03 D5 20 03 26 58 E2 03 00 91 03 04 80 52 96 31 00 94 FD 03 1D AA 30 2A 00 94 F4 03 00 AA 1F 20 03 D5 E8 4D 18 58 08 01 40 F9 E8 1F 00 F9 A0 03 1D F8 1F 20 03 D5 80 00 26 58 A2 C3 00 D1 E3 E3 00 91 24 00 80 52 50 32 00 94 FD 03 1D AA\",\n    \"x86\": \"55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 58 48 89 D7 48 8B 05 8E 4F 02 00 48 8B 00 48 89 45 D0 FF 15 91 50 02 00 49 89 C6 31 C0 48 89 45 A8 48 89 45 B8 48 89 45 B0 4D 85 F6 74 15 48 8B 15 5C 55 04 00 48 8D 7D 80 4C 89 F6 E8 D0 BE 00 00 EB 0B 0F 57 C0 0F 29 45 90 0F 29 45 80 48 8B 3D F4 73 04 00 48 8B 35 55 57 04 00 48 8B 1D 36 50 02 00 48 8D 55 80 B9 20 00 00 00 FF D3 48 89 C7 E8 AD BE 00 00 49 89 C7 48 8B 05 F9 4F 02 00 48 8B 00 48 8D 4D C0 48 89 01 48 8D 55 C8 4C 89 3A\",\n    \"out\": \"cmm.sh\",\n    \"replaceIntel\": \"{{==intel==}}\",\n    \"replaceARM\": \"{{==arm64==}}\"\n  },\n  \"proxyman\": {\n    \"locate\": \"/Applications/Proxyman.app/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool\",\n    \"arm\": \"FF 83 04 D1 FC 6F 0D A9 F8 5F 0E A9 F6 57 0F A9 F4 4F 10 A9 FD 7B 11 A9 FD 43 04 91 F3 03 03 AA F5 03 00 AA 28 00 00 D0 08 0D 40 F9 08 01 40 F9 A8 83 1B F8 E0 03 02 AA D5 0A 00 94 F4 03 00 AA E0 03 13 AA D2 0A 00 94 F3 03 00 AA 00 E4 00 6F E0 03 00 AD E0 03 01 AD E0 03 14 AA CC 0A 00 94 F4 03 00 AA E2 03 00 91 E3 23 01 91 04 02 80 52 EE 0B 00 94 60 03 00 B4 F6 03 00 AA E8 0B 40 F9 17 01 40 F9 18 00 80 D2 E8 0B 40 F9 08 01 40 F9 1F 01 17 EB 60 00 00 54 E0 03 14 AA A4 0A 00 94 E8 07 40 F9 02 79 78 F8\",\n    \"x86\": \"55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC D8 00 00 00 48 89 CB 49 89 FF 48 8B 05 D0 53 00 00 48 8B 00 48 89 45 D0 4C 8B 2D 62 54 00 00 48 89 D7 41 FF D5 49 89 C6 48 89 DF 41 FF D5 48 89 85 40 FF FF FF 0F 57 C0 4C 8D A5 00 FF FF FF 41 0F 29 04 24 41 0F 29 44 24 10 41 0F 29 44 24 20 41 0F 29 44 24 30 4C 89 F7 41 FF D5 48 8B 35 CE A0 00 00 48 8D 8D 50 FF FF FF 41 B8 10 00 00 00 48 89 85 48 FF FF FF 48 89 C7 4C 89 E2 FF 15 EE 53 00 00 48 85 C0 0F 84 8C 00 00 00\",\n    \"out\": \"cmm.sh\",\n    \"replaceIntel\": \"{{==intel==}}\",\n    \"replaceARM\": \"{{==arm64==}}\"\n  }\n}\n"
  },
  {
    "path": "tool/bartender.sh",
    "content": "tccutil reset All com.surteesstudios.Bartender\ntccutil reset Camera com.surteesstudios.Bartender\ntccutil reset Microphone com.surteesstudios.Bartender\ntccutil reset ScreenCapture com.surteesstudios.Bartender"
  },
  {
    "path": "tool/buhoCleaner.sh",
    "content": "# declare user=$(whoami)\nsudo /bin/launchctl unload /Library/LaunchDaemons/com.drbuho.BuhoCleaner.PrivilegedHelperTool.plist\n# sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\nsudo /bin/rm /Library/LaunchDaemons/com.drbuho.BuhoCleaner.PrivilegedHelperTool.plist\nsudo /bin/rm /Library/PrivilegedHelperTools/com.drbuho.BuhoCleaner.PrivilegedHelperTool\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper='/Applications/BuhoCleaner.app/Contents/Library/LaunchServices/com.drbuho.BuhoCleaner.PrivilegedHelperTool'\n\necho ACCD: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel CFEqual\necho 20AC8: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64 CFEqual\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\\x20\\x61\\x70\\x70\\x6C\\x65\\x20\\x67\\x65\\x6E\\x65\\x72\\x69\\x63\\x20\\x61\\x6E\\x64\\x20\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x22\\x63\\x6F\\x6D\\x2E\\x64\\x72\\x62\\x75\\x68\\x6F\\x2E\\x42\\x75\\x68\\x6F\\x43\\x6C\\x65\\x61\\x6E\\x65\\x72\\x22\\x20\\x61\\x6E\\x64\\x20\\x28\\x63\\x65\\x72\\x74\\x69\\x66\\x69\\x63\\x61\\x74\\x65\\x20\\x6C\\x65\\x61\\x66\\x5B\\x66\\x69\\x65\\x6C\\x64\\x2E\\x31\\x2E\\x32\\x2E\\x38\\x34\\x30\\x2E\\x31\\x31\\x33\\x36\\x33\\x35\\x2E\\x31\\x30\\x30\\x2E\\x36\\x2E\\x31\\x2E\\x39\\x5D\\x20\\x2F\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  if [ \"$start\" -le 0 ]; then\n      echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n      break\n  fi\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 64 72 62 75 68 6F 2E 42 75 68 6F 43 6C 65 61 6E 65 72 22 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=44 conv=notrunc\n  start_pos=$((start + 44 + 8))\n  fill_byte=\"09\"\n  offset1=$((322 - 44 - 8))\n\n  for ((i=0;i<offset1;i++)); do\n    pos=$((start_pos + i))\n    echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$pos of=\"$helper\" count=1 conv=notrunc\n  done\ndone\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/BuhoCleaner.app'\nsrc_info='/Applications/BuhoCleaner.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.drbuho.BuhoCleaner.PrivilegedHelperTool \\\"identifier \\\\\\\"com.drbuho.BuhoCleaner.PrivilegedHelperTool\\\\\\\"\\\"\" \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/BuhoCleaner.app/Contents/Library/LaunchServices/com.drbuho.BuhoCleaner.PrivilegedHelperTool\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/cmm.sh",
    "content": "echo \"是否全新安装CleanMyMac X?\"\necho \"这将删除你的默认配置信息.请先备份配置信息到其他位置.\"\nread -p \"(y/n,默认n):\" option \nif [ $option = 'y' ];then             #判断用户是否输入，如果未输入则打印error\n  # declare user=$(whoami)\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.macpaw.CleanMyMac4.Agent.plist\n  # sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\n  sudo /bin/rm /Library/LaunchDaemons/com.macpaw.CleanMyMac4.Agent.plist\n  sudo /bin/rm /Library/PrivilegedHelperTools/com.macpaw.CleanMyMac4.Agent\nelse\n  echo \"非全新安装,跳过清除。\"\nfi\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper=\"/Applications/CleanMyMac X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\"\nhelper2=\"/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\"\n\nhelps=(\"$helper\" \"$helper2\")\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# 循环遍历数组中的所有元素\nfor item in \"${helps[@]}\"\ndo\n    # 4.14.3 版本\n    echo 4b1f7: 6A 01 58 C3 |sudo xxd -r - \"$item\" #intel\n    echo ef844: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$item\" #arm64\n    offsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x22\\x63\\x6F\\x6D\\x2E\\x6D\\x61\\x63\\x70\\x61\\x77\\x2E\\x43\\x6C\\x65\\x61\\x6E\\x4D\\x79\\x4D\\x61\\x63\\x34\\x2E\\x48\\x65\\x61\\x6C\\x74\\x68\\x4D\\x6F\\x6E\\x69\\x74\\x6F\\x72\\x22\\x20\\x61\\x6E\\x64\\x20\\x69\\x6E\\x66\\x6F\\x20\\x5B\\x43\\x46\\x42\\x75\\x6E\\x64\\x6C\\x65\\x53\\x68\\x6F\\x72\\x74\\x56\\x65\\x72\\x73\\x69\\x6F\\x6E\\x53\\x74\\x72\\x69\\x6E\\x67\\x5D\\x20\\x26\\x67\\x74\\x3B\\x3D\\x20\\x22\\x31\\x2E\\x31\\x2E\\x33\\x22\\x20\\x61\\x6E\\x64\\x20\\x61\\x6E\\x63\\x68\\x6F\\x72\" \"$item\" | cut -d: -f1)\n    sed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n      declare -i start=$s\n      if [ \"$start\" -le 0 ]; then\n          echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n          break\n      fi\n      # <string> 3C 73 74 72 69 6E 67 3E\n      # <string>anchor apple generic and identifier &quot;com.nssurge.surge-mac&quot; and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = &quot;YCKFLA6N72&quot;)</string>\n      echo \"69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 2E 48 65 61 6C 74 68 4D 6F 6E 69 74 6F 72 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 31 2E 31 2E 33 22 3C 2F 73 74 72 69 6E 67 3E 0A 09 09 3C 73 74 72 69 6E 67 3E 69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 34 2E 34 2E 36 22 3C 2F 73 74 72 69 6E 67 3E 0A 09 09 3C 73 74 72 69 6E 67 3E 69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 2E 4D 65 6E 75 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 31 2E 30 2E 31 36 22 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$item\" bs=1 seek=\"$((start + 8))\" count=330 conv=notrunc\n      start_pos=$((start + 330 + 8))\n      fill_byte=\"\"\n      lens=0\n      for ((i=0;i<557 - 330 - 8;i++)); do\n        lens=$((start_pos + i))\n        fill_byte+=\"09 \"\n      done\n      echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$item\" count=$((lens - 1)) conv=notrunc\n    done\ndone\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\n\nxattr -c '/Applications/CleanMyMac X.app'\nsrc_info='/Applications/CleanMyMac X.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.macpaw.CleanMyMac4.Agent \\\"identifier \\\\\\\"com.macpaw.CleanMyMac4.Agent\\\\\\\"\\\"\" \"$src_info\"\n\nsrc_info2='/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.macpaw.CleanMyMac4.Agent \\\"identifier \\\\\\\"com.macpaw.CleanMyMac4.Agent\\\\\\\"\\\"\" \"$src_info2\"\n\n\ncodesign -f -s - --all-architectures --deep /Applications/CleanMyMac\\ X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\ncodesign -f -s - --all-architectures --deep /Applications/CleanMyMac\\ X.app/Contents/Library/LoginItems/CleanMyMac\\ X\\ Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\ntccutil reset All com.macpaw.CleanMyMac4\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/cmm_o.sh",
    "content": "echo \"是否全新安装CleanMyMac X?\"\necho \"这将删除你的默认配置信息.请先备份配置信息到其他位置.\"\nread -p \"(y/n,默认n):\" option \nif [ $option = 'y' ];then             #判断用户是否输入，如果未输入则打印error\n  # declare user=$(whoami)\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.macpaw.CleanMyMac4.Agent.plist\n  # sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\n  sudo /bin/rm /Library/LaunchDaemons/com.macpaw.CleanMyMac4.Agent.plist\n  sudo /bin/rm /Library/PrivilegedHelperTools/com.macpaw.CleanMyMac4.Agent\nelse\n  echo \"非全新安装,跳过清除。\"\nfi\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper=\"/Applications/CleanMyMac X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\"\nhelper2=\"/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\"\n\nhelps=(\"$helper\" \"$helper2\")\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# 循环遍历数组中的所有元素\nfor item in \"${helps[@]}\"\ndo\n    # 4.14.3 版本\n    echo {{==intel==}}: 6A 01 58 C3 |sudo xxd -r - \"$item\" #intel\n    echo {{==arm64==}}: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$item\" #arm64\n    offsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x22\\x63\\x6F\\x6D\\x2E\\x6D\\x61\\x63\\x70\\x61\\x77\\x2E\\x43\\x6C\\x65\\x61\\x6E\\x4D\\x79\\x4D\\x61\\x63\\x34\\x2E\\x48\\x65\\x61\\x6C\\x74\\x68\\x4D\\x6F\\x6E\\x69\\x74\\x6F\\x72\\x22\\x20\\x61\\x6E\\x64\\x20\\x69\\x6E\\x66\\x6F\\x20\\x5B\\x43\\x46\\x42\\x75\\x6E\\x64\\x6C\\x65\\x53\\x68\\x6F\\x72\\x74\\x56\\x65\\x72\\x73\\x69\\x6F\\x6E\\x53\\x74\\x72\\x69\\x6E\\x67\\x5D\\x20\\x26\\x67\\x74\\x3B\\x3D\\x20\\x22\\x31\\x2E\\x31\\x2E\\x33\\x22\\x20\\x61\\x6E\\x64\\x20\\x61\\x6E\\x63\\x68\\x6F\\x72\" \"$item\" | cut -d: -f1)\n    sed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n      declare -i start=$s\n      if [ \"$start\" -le 0 ]; then\n          echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n          break\n      fi\n      # <string> 3C 73 74 72 69 6E 67 3E\n      # <string>anchor apple generic and identifier &quot;com.nssurge.surge-mac&quot; and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = &quot;YCKFLA6N72&quot;)</string>\n      echo \"69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 2E 48 65 61 6C 74 68 4D 6F 6E 69 74 6F 72 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 31 2E 31 2E 33 22 3C 2F 73 74 72 69 6E 67 3E 0A 09 09 3C 73 74 72 69 6E 67 3E 69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 34 2E 34 2E 36 22 3C 2F 73 74 72 69 6E 67 3E 0A 09 09 3C 73 74 72 69 6E 67 3E 69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 6D 61 63 70 61 77 2E 43 6C 65 61 6E 4D 79 4D 61 63 34 2E 4D 65 6E 75 22 20 61 6E 64 20 69 6E 66 6F 20 5B 43 46 42 75 6E 64 6C 65 53 68 6F 72 74 56 65 72 73 69 6F 6E 53 74 72 69 6E 67 5D 20 26 67 74 3B 3D 20 22 31 2E 30 2E 31 36 22 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$item\" bs=1 seek=\"$((start + 8))\" count=330 conv=notrunc\n      start_pos=$((start + 330 + 8))\n      fill_byte=\"\"\n      lens=0\n      for ((i=0;i<557 - 330 - 8;i++)); do\n        lens=$((start_pos + i))\n        fill_byte+=\"09 \"\n      done\n      echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$item\" count=$((lens - 1)) conv=notrunc\n    done\ndone\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\n\nxattr -c '/Applications/CleanMyMac X.app'\nsrc_info='/Applications/CleanMyMac X.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.macpaw.CleanMyMac4.Agent \\\"identifier \\\\\\\"com.macpaw.CleanMyMac4.Agent\\\\\\\"\\\"\" \"$src_info\"\n\nsrc_info2='/Applications/CleanMyMac X.app/Contents/Library/LoginItems/CleanMyMac X Menu.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.macpaw.CleanMyMac4.Agent \\\"identifier \\\\\\\"com.macpaw.CleanMyMac4.Agent\\\\\\\"\\\"\" \"$src_info2\"\n\n\ncodesign -f -s - --all-architectures --deep /Applications/CleanMyMac\\ X.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\ncodesign -f -s - --all-architectures --deep /Applications/CleanMyMac\\ X.app/Contents/Library/LoginItems/CleanMyMac\\ X\\ Menu.app/Contents/Library/LaunchServices/com.macpaw.CleanMyMac4.Agent\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\ntccutil reset All com.macpaw.CleanMyMac4\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/cmmxAgent.sh",
    "content": "\necho \"准备自动计算Helper偏移参数...\"\n\ncp ./tool/cmm_o.sh ./tool/cmm.sh\n\nchmod +x ./tool/SearchParttenCode\n\n./tool/SearchParttenCode cmmx\n\nsh ./tool/cmm.sh"
  },
  {
    "path": "tool/ishot.sh",
    "content": "tccutil reset Camera cn.better365.ishot\ntccutil reset Microphone cn.better365.ishot\ntccutil reset ScreenCapture cn.better365.ishot"
  },
  {
    "path": "tool/licenses.json",
    "content": "{\"license\":\"{\\\"product_version\\\":\\\"19.*\\\",\\\"edition\\\":2,\\\"platform\\\":3,\\\"product\\\":7,\\\"offline\\\":true,\\\"cpu_limit\\\":32,\\\"ram_limit\\\":131072}\"}"
  },
  {
    "path": "tool/macfans.sh",
    "content": "echo \"是否全新安装Mac Fans Control?\"\nread -p \"(y/n,默认n):\" option \nif [ $option = 'y' ];then             #判断用户是否输入，如果未输入则打印error\n  # declare user=$(whoami)\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.crystalidea.macsfancontrol.smcwrite.plist\n  sudo /bin/rm /Library/LaunchDaemons/com.crystalidea.macsfancontrol.smcwrite.plist\n  sudo /bin/rm /Library/PrivilegedHelperTools/com.crystalidea.macsfancontrol.smcwrite\n\n  sudo rm -rf ~/Library/Preferences/com.crystalidea.macsfancontrol.smcwrite.plist\n  sudo rm -rf ~/Library/Application\\ Support/com.crystalidea.macsfancontrol.smcwrite\nelse\n  echo \"非全新安装,跳过清除。\"\nfi\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper=\"/Applications/Macs Fan Control.app/Contents/Library/LaunchServices/com.crystalidea.macsfancontrol.smcwrite\" # 这里有空格下面“”一定要加上 否则傻b grep不会转义\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系Surge开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\necho 9ba0: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho 1dc20: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x63\\x6F\\x6D\\x2E\\x63\\x72\\x79\\x73\\x74\\x61\\x6C\\x69\\x64\\x65\\x61\\x2E\\x6D\\x61\\x63\\x73\\x66\\x61\\x6E\\x63\\x6F\\x6E\\x74\\x72\\x6F\\x6C\" \"$helper\" | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n  if [ \"$start\" -le 0 ]; then\n      break\n  fi\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 63 6F 6D 2E 63 72 79 73 74 61 6C 69 64 65 61 2E 6D 61 63 73 66 61 6E 63 6F 6E 74 72 6F 6C 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=50 conv=notrunc\n  start_pos=$((start + 50 + 8))\n  fill_byte=\"09\"\n\n  for ((i=0;i<104-50-8;i++)); do\n    pos=$((start_pos + i))\n    echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$pos of=\"$helper\" count=1 conv=notrunc\n  done\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Macs Fan Control.app'\nsrc_info='/Applications/Macs Fan Control.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.crystalidea.macsfancontrol.smcwrite \\\"identifier \\\\\\\"com.crystalidea.macsfancontrol.smcwrite\\\\\\\"\\\"\" \"$src_info\"\n# /usr/libexec/PlistBuddy -c 'Print SMPrivilegedExecutables' \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Macs\\ Fan\\ Control.app/Contents/Library/LaunchServices/com.crystalidea.macsfancontrol.smcwrite\ncodesign -f -s - --all-architectures --deep /Applications/Macs\\ Fan\\ Control.app\n# python /Users/qiuchenly/Downloads/SMJobBless/SMJobBlessUtil.py check /Applications/Surge.app\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/paste.sh",
    "content": "tccutil reset All com.wiheads.paste\ntccutil reset Camera com.wiheads.paste\ntccutil reset Microphone com.wiheads.paste\ntccutil reset ScreenCapture com.wiheads.paste"
  },
  {
    "path": "tool/pd.sh",
    "content": "#!/usr/bin/env bash\n\nBASE_PATH=$(\n  cd $(dirname \"$0\")\n  pwd\n)\n\nCOLOR_INFO='\\033[0;34m'\nCOLOR_ERR='\\033[0;35m'\nNOCOLOR='\\033[0m'\n\nPDFM_DIR=\"/Applications/Parallels Desktop.app\"\nPDFM_VER=\"19.1.0-54729\"\n\nPDFM_DISP_DIR=\"${PDFM_DIR}/Contents/MacOS/Parallels Service.app/Contents/MacOS\"\nPDFM_DISP_DST=\"${PDFM_DISP_DIR}/prl_disp_service\"\n\nLICENSE_FILE=\"${BASE_PATH}/licenses.json\"\nLICENSE_DST=\"/Library/Preferences/Parallels/licenses.json\"\n\necho \"${COLOR_INFO}[*] 确保你的版本是: https://download.parallels.com/desktop/v19/${PDFM_VER}/ParallelsDesktop-${PDFM_VER}.dmg\"\n\n# check parallels desktop version\nVERSION_1=$(defaults read \"${PDFM_DIR}/Contents/Info.plist\" CFBundleShortVersionString)\nVERSION_2=$(defaults read \"${PDFM_DIR}/Contents/Info.plist\" CFBundleVersion)\nINSTALL_VER=\"${VERSION_1}-${VERSION_2}\"\nif [ \"${PDFM_VER}\" != \"${VERSION_1}-${VERSION_2}\" ]; then\n  echo -e \"${COLOR_ERR}[-] This script is for ${PDFM_VER}, but your's is ${INSTALL_VER}.${NOCOLOR}\"\n  exit 2\nfi\n\necho \"${COLOR_INFO}[*] 复制伪造的授权文件 licenses.json${NOCOLOR}\"\n\n# stop prl_disp_service\nif pgrep -x \"prl_disp_service\" &> /dev/null; then\n  echo -e \"${COLOR_INFO}[*] Stopping Parallels Desktop${NOCOLOR}\"\n  pkill -9 prl_client_app &>/dev/null\n  # ensure prl_disp_service has stopped\n  \"${PDFM_DIR}/Contents/MacOS/Parallels Service\" service_stop &>/dev/null\n  sleep 1\n  launchctl stop /Library/LaunchDaemons/com.parallels.desktop.launchdaemon.plist &>/dev/null\n  sleep 1\n  pkill -9 prl_disp_service &>/dev/null\n  sleep 1\n  rm -f \"/var/run/prl_*\"\nfi\n\nif [ -f \"${LICENSE_DST}\" ]; then\n  chflags -R 0 \"${LICENSE_DST}\" || {\n    echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n    exit $?\n  }\n  rm -f \"${LICENSE_DST}\" >/dev/null || {\n    echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n    exit $?\n  }\nfi\n\ncp -f \"${LICENSE_FILE}\" \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\nchown root:wheel \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\nchmod 444 \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\nchflags -R 0 \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\nchflags uchg \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\nchflags schg \"${LICENSE_DST}\" || {\n  echo -e \"${COLOR_ERR}error $? at line $LINENO.${NOCOLOR}\"\n  exit $?\n}\n\nchmod 755 \"${PDFM_DISP_DST}\"\n\ncp -f \"/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service\" \"/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service_patched\"\n\necho \"${COLOR_INFO}[*] 破解完成。${NOCOLOR}\"\n"
  },
  {
    "path": "tool/proxyManAgent.sh",
    "content": "\necho \"准备自动计算Helper偏移参数...\"\n\ncp ./tool/proxyman_o.sh ./tool/proxyman.sh\n\nchmod +x ./tool/SearchParttenCode\n\n./tool/SearchParttenCode proxyman\n\nsh ./tool/proxyman.sh"
  },
  {
    "path": "tool/proxyman.sh",
    "content": "sudo /bin/launchctl unload /Library/LaunchDaemons/com.proxyman.NSProxy.HelperTool.plist\nsudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\nsudo /bin/rm /Library/LaunchDaemons/com.proxyman.NSProxy.HelperTool.plist\nsudo /bin/rm /Library/PrivilegedHelperTools/com.proxyman.NSProxy.HelperTool\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper='/Applications/Proxyman.app/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\necho {{==intel==}}: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho {{==arm64==}}: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\\x20\\x61\\x70\\x70\\x6C\\x65\\x20\\x67\\x65\\x6E\\x65\\x72\\x69\\x63\\x20\\x61\\x6E\\x64\\x20\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x22\\x63\\x6F\\x6D\\x2E\\x70\\x72\\x6F\\x78\\x79\\x6D\\x61\\x6E\\x2E\\x4E\\x53\\x50\\x72\\x6F\\x78\\x79\\x22\\x20\\x61\\x6E\\x64\\x20\\x28\\x63\\x65\\x72\\x74\\x69\\x66\\x69\\x63\\x61\\x74\\x65\\x20\\x6C\\x65\\x61\\x66\\x5B\\x66\\x69\\x65\\x6C\\x64\\x2E\\x31\\x2E\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  if [ \"$start\" -le 0 ]; then\n      echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n      break\n  fi\n  echo \"起始点在 $start, 准备修改Helper文件。\"\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 70 72 6F 78 79 6D 61 6E 2E 4E 53 50 72 6F 78 79 22 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=42 conv=notrunc\n  # start + 8 适用于 <string>八字节\n  # start + 42 + 8\n  start_pos=$((start + 42 + 8))\n  fill_byte=\"\"\n  lens=0\n  for ((i=0;i<320-42-8;i++)); do\n    lens=$((start_pos + i))\n    fill_byte+=\"09 \"\n  done\n  echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$helper\" count=$((lens - 1)) conv=notrunc\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Proxyman.app'\nsrc_info='/Applications/Proxyman.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.proxyman.NSProxy.HelperTool \\\"identifier \\\\\\\"com.proxyman.NSProxy.HelperTool\\\\\\\"\\\"\" \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Proxyman.app/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/proxyman_o.sh",
    "content": "sudo /bin/launchctl unload /Library/LaunchDaemons/com.proxyman.NSProxy.HelperTool.plist\nsudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\nsudo /bin/rm /Library/LaunchDaemons/com.proxyman.NSProxy.HelperTool.plist\nsudo /bin/rm /Library/PrivilegedHelperTools/com.proxyman.NSProxy.HelperTool\n\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper='/Applications/Proxyman.app/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\necho {{==intel==}}: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho {{==arm64==}}: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\\x20\\x61\\x70\\x70\\x6C\\x65\\x20\\x67\\x65\\x6E\\x65\\x72\\x69\\x63\\x20\\x61\\x6E\\x64\\x20\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x22\\x63\\x6F\\x6D\\x2E\\x70\\x72\\x6F\\x78\\x79\\x6D\\x61\\x6E\\x2E\\x4E\\x53\\x50\\x72\\x6F\\x78\\x79\\x22\\x20\\x61\\x6E\\x64\\x20\\x28\\x63\\x65\\x72\\x74\\x69\\x66\\x69\\x63\\x61\\x74\\x65\\x20\\x6C\\x65\\x61\\x66\\x5B\\x66\\x69\\x65\\x6C\\x64\\x2E\\x31\\x2E\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  if [ \"$start\" -le 0 ]; then\n      echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n      break\n  fi\n  echo \"起始点在 $start, 准备修改Helper文件。\"\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 22 63 6F 6D 2E 70 72 6F 78 79 6D 61 6E 2E 4E 53 50 72 6F 78 79 22 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=42 conv=notrunc\n  # start + 8 适用于 <string>八字节\n  # start + 42 + 8\n  start_pos=$((start + 42 + 8))\n  fill_byte=\"\"\n  lens=0\n  for ((i=0;i<320-42-8;i++)); do\n    lens=$((start_pos + i))\n    fill_byte+=\"09 \"\n  done\n  echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$helper\" count=$((lens - 1)) conv=notrunc\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Proxyman.app'\nsrc_info='/Applications/Proxyman.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.proxyman.NSProxy.HelperTool \\\"identifier \\\\\\\"com.proxyman.NSProxy.HelperTool\\\\\\\"\\\"\" \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Proxyman.app/Contents/Library/LaunchServices/com.proxyman.NSProxy.HelperTool\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/recorder.sh",
    "content": "tccutil reset Camera com.mac.utility.screen.recorder\ntccutil reset Microphone com.mac.utility.screen.recorder\ntccutil reset ScreenCapture com.mac.utility.screen.recorder"
  },
  {
    "path": "tool/signkeep.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n    <key>com.apple.security.get-task-allow</key>\n    <true/>\n    <key>com.apple.security.cs.allow-jits</key>\n    <true/>\n    <key>com.apple.security.cs.debugger</key>\n    <true/>\n    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>\n    <true/>\n    <key>com.apple.security.cs.disable-executable-page-protection</key>\n    <true/>\n    <key>com.apple.security.cs.disable-library-validation</key>\n    <true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "tool/stash.sh",
    "content": "echo \"是否全新安装Stash?\"\necho \"这将删除你的默认配置信息.请先备份配置信息到其他位置.\"\nread -p \"(y/n,默认n):\" option \nif [ $option = 'y' ];then             #判断用户是否输入，如果未输入则打印error\n  # declare user=$(whoami)\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\n  # sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\n  sudo /bin/rm /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\n  sudo /bin/rm /Library/PrivilegedHelperTools/com.nssurge.surge-mac.helper\nelse\n  echo \"非全新安装,跳过清除。\"\nfi\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper='/Applications/Stash.app/Contents/Library/LaunchServices/ws.stash.app.mac.daemon.helper'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系Surge开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# echo a5a3: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\n# echo 4172c: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\\x20\\x61\\x70\\x70\\x6C\\x65\\x20\\x67\\x65\\x6E\\x65\\x72\\x69\\x63\\x20\\x61\\x6E\\x64\\x20\\x69\\x64\\x65\\x6E\\x74\\x69\\x66\\x69\\x65\\x72\\x20\\x26\\x71\\x75\\x6F\\x74\\x3B\\x77\\x73\\x2E\\x73\\x74\\x61\\x73\\x68\\x2E\\x61\\x70\\x70\\x2E\\x6D\\x61\\x63\\x26\\x71\\x75\\x6F\\x74\\x3B\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  # <string> 3C 73 74 72 69 6E 67 3E\n  # <string>anchor apple generic and identifier &quot;com.nssurge.surge-mac&quot; and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = &quot;YCKFLA6N72&quot;)</string>\n  # 3C 73 74 72 69 6E 67 3E 61 6E 63 68 6F 72 20 61 70 70 6C 65 20 67 65 6E 65 72 69 63 20 61 6E 64 20 69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 63 6F 6D 2E 6E 73 73 75 72 67 65 2E 73 75 72 67 65 2D 6D 61 63 26 71 75 6F 74 3B 20 61 6E 64 20 28 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 31 2E 39 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 6F 72 20 63 65 72 74 69 66 69 63 61 74 65 20 31 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 32 2E 36 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 61 6E 64 20 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 31 2E 31 33 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 61 6E 64 20 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 73 75 62 6A 65 63 74 2E 4F 55 5D 20 3D 20 26 71 75 6F 74 3B 59 43 4B 46 4C 41 36 4E 37 32 26 71 75 6F 74 3B 29 3C 2F 73 74 72 69 6E 67 3E\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 77 73 2E 73 74 61 73 68 2E 61 70 70 2E 6D 61 63 26 71 75 6F 74 3B 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=48 conv=notrunc\n  start_pos=$((start + 48 + 8))\n  fill_byte=\"09\"\n\n  for ((i=0;i<324-48-8;i++)); do\n    pos=$((start_pos + i))\n    echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$pos of=\"$helper\" count=1 conv=notrunc\n  done\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Stash.app'\nsrc_info='/Applications/Stash.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:ws.stash.app.mac.daemon.helper \\\"identifier \\\\\\\"ws.stash.app.mac.daemon.helper\\\\\\\"\\\"\" \"$src_info\"\n# /usr/libexec/PlistBuddy -c 'Print SMPrivilegedExecutables' \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Stash.app/Contents/Library/LaunchServices/ws.stash.app.mac.daemon.helper\ncodesign -f -s - --all-architectures --deep /Applications/Stash.app\n# python /Users/qiuchenly/Downloads/SMJobBless/SMJobBlessUtil.py check /Applications/Stash.app\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/surge copy.sh",
    "content": "echo \"是否全新安装Surge?\"\necho \"这将删除你的默认配置信息.请先备份配置信息到其他位置.\"\nread -p \"(y/n,默认n):\" option \nif [ $option = 'y' ];then             #判断用户是否输入，如果未输入则打印error\n  # declare user=$(whoami)\n  sudo /bin/launchctl unload /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\n  # sudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\n  sudo /bin/rm /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\n  sudo /bin/rm /Library/PrivilegedHelperTools/com.nssurge.surge-mac.helper\n\n  sudo rm -rf ~/Library/Preferences/com.nssurge.surge-mac.plist\n  sudo rm -rf ~/Library/Application\\ Support/com.nssurge.surge-mac\nelse\n  echo \"非全新安装,跳过清除。\"\nfi\n\necho \"感谢QQ 302****398 用户无偿提供授权信息。\"\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！甚至被国家安全局和保密处就地正法，请三思！\"\n\nhelper='/Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系Surge开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# 版本2379\necho a5a3: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho 4172c: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\n# 版本2387\necho e3c5: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho 455c8: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\n# 版本2399\necho abed: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho 3dec8: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n  if [ \"$start\" -le 0 ]; then\n      break\n  fi\n  # <string> 3C 73 74 72 69 6E 67 3E\n  # <string>anchor apple generic and identifier &quot;com.nssurge.surge-mac&quot; and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = &quot;YCKFLA6N72&quot;)</string>\n  # 3C 73 74 72 69 6E 67 3E 61 6E 63 68 6F 72 20 61 70 70 6C 65 20 67 65 6E 65 72 69 63 20 61 6E 64 20 69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 63 6F 6D 2E 6E 73 73 75 72 67 65 2E 73 75 72 67 65 2D 6D 61 63 26 71 75 6F 74 3B 20 61 6E 64 20 28 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 31 2E 39 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 6F 72 20 63 65 72 74 69 66 69 63 61 74 65 20 31 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 32 2E 36 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 61 6E 64 20 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 66 69 65 6C 64 2E 31 2E 32 2E 38 34 30 2E 31 31 33 36 33 35 2E 31 30 30 2E 36 2E 31 2E 31 33 5D 20 2F 2A 20 65 78 69 73 74 73 20 2A 2F 20 61 6E 64 20 63 65 72 74 69 66 69 63 61 74 65 20 6C 65 61 66 5B 73 75 62 6A 65 63 74 2E 4F 55 5D 20 3D 20 26 71 75 6F 74 3B 59 43 4B 46 4C 41 36 4E 37 32 26 71 75 6F 74 3B 29 3C 2F 73 74 72 69 6E 67 3E\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 63 6F 6D 2E 6E 73 73 75 72 67 65 2E 73 75 72 67 65 2D 6D 61 63 26 71 75 6F 74 3B 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=53 conv=notrunc\n  # start + 8 适用于 <string>八字节\n  # start + 53 + 8\n  start_pos=$((start + 53 + 8))\n  fill_byte=\"09\"\n\n  for ((i=0;i<341-53-8;i++)); do\n    pos=$((start_pos + i))\n    echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$pos of=\"$helper\" count=1 conv=notrunc\n  done\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Surge.app'\nsrc_info='/Applications/Surge.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.nssurge.surge-mac.helper \\\"identifier \\\\\\\"com.nssurge.surge-mac.helper\\\\\\\"\\\"\" \"$src_info\"\n# /usr/libexec/PlistBuddy -c 'Print SMPrivilegedExecutables' \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app\n# python /Users/qiuchenly/Downloads/SMJobBless/SMJobBlessUtil.py check /Applications/Surge.app\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/surge.sh",
    "content": "# declare user=$(whoami)\nsudo /bin/launchctl unload /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\nsudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\nsudo /bin/rm /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\nsudo /bin/rm /Library/PrivilegedHelperTools/com.nssurge.surge-mac.helper\n# sudo rm -rf ~/Library/Preferences/com.nssurge.surge-mac.plist\n# sudo rm -rf ~/Library/Application\\ Support/com.nssurge.surge-mac\n\necho \"感谢QQ 302****398 用户无偿提供授权信息。\"\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！还可能会导致你被有关监管部门或工业和信息化委员会上门约谈，请慎重考虑是否决定使用盗版！\"\n\nhelper='/Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系Surge开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# 版本2410\necho a82d: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho 3dadc: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  if [ \"$start\" -le 0 ]; then\n      echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n      break\n  fi\n  echo \"起始点在 $start, 准备修改Helper文件。\"\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 63 6F 6D 2E 6E 73 73 75 72 67 65 2E 73 75 72 67 65 2D 6D 61 63 26 71 75 6F 74 3B 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=53 conv=notrunc\n  # start + 8 适用于 <string>八字节\n  # start + 53 + 8\n  start_pos=$((start + 53 + 8))\n  fill_byte=\"\"\n  lens=0\n  for ((i=0;i<341-53-8;i++)); do\n    lens=$((start_pos + i))\n    fill_byte+=\"09 \"\n  done\n  echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$helper\" count=$((lens - 1)) conv=notrunc\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Surge.app'\nsrc_info='/Applications/Surge.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.nssurge.surge-mac.helper \\\"identifier \\\\\\\"com.nssurge.surge-mac.helper\\\\\\\"\\\"\" \"$src_info\"\n# /usr/libexec/PlistBuddy -c 'Print SMPrivilegedExecutables' \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app\n# python /Users/qiuchenly/Downloads/SMJobBless/SMJobBlessUtil.py check /Applications/Surge.app\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/surgeAgent.sh",
    "content": "\necho \"准备自动计算Helper偏移参数...\"\n\ncp ./tool/surge_o.sh ./tool/surge.sh\n\nchmod +x ./tool/SearchParttenCode\n\n./tool/SearchParttenCode surge\n\nsh ./tool/surge.sh"
  },
  {
    "path": "tool/surge_o.sh",
    "content": "# declare user=$(whoami)\nsudo /bin/launchctl unload /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\nsudo /usr/bin/killall -u root -9 com.nssurge.surge-mac.helper\nsudo /bin/rm /Library/LaunchDaemons/com.nssurge.surge-mac.helper.plist\nsudo /bin/rm /Library/PrivilegedHelperTools/com.nssurge.surge-mac.helper\n# sudo rm -rf ~/Library/Preferences/com.nssurge.surge-mac.plist\n# sudo rm -rf ~/Library/Application\\ Support/com.nssurge.surge-mac\n\necho \"感谢QQ 302****398 用户无偿提供授权信息。\"\necho \"大胆！检测到你在用盗版软件，这可能会危害你的设备！还可能会导致你被有关监管部门或工业和信息化委员会上门约谈，请慎重考虑是否决定使用盗版！\"\n\nhelper='/Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper'\n\necho \"正在定位你的Mac物理地址...GPS定位中...你跑不掉了! 即将联系Surge开发者发送你的Mac所有信息，你即将被留存侵权数字证据，束手就擒！\"\n\n# 版本2410\necho {{==intel==}}: 6A 01 58 C3 |sudo xxd -r - \"$helper\" #intel\necho {{==arm64==}}: 20 00 80 D2 C0 03 5F D6 |sudo xxd -r - \"$helper\" #arm64\n\necho \"定位你的Mac物理地址完成，正在向国家安全局特工发送你的逮捕许可...\"\noffsets=$(grep -a -b -o \"\\x3C\\x73\\x74\\x72\\x69\\x6E\\x67\\x3E\\x61\\x6E\\x63\\x68\\x6F\\x72\" $helper | cut -d: -f1)\nsed 's/\\x0A/\\n/g' <<< \"$offsets\" | while read -r s; do\n  declare -i start=$s\n  if [ \"$start\" -le 0 ]; then\n      echo \"起始点在 $start,文件已被修改，跳过注入Helper。\"\n      break\n  fi\n  echo \"起始点在 $start, 准备修改Helper文件。\"\n  echo \"69 64 65 6E 74 69 66 69 65 72 20 26 71 75 6F 74 3B 63 6F 6D 2E 6E 73 73 75 72 67 65 2E 73 75 72 67 65 2D 6D 61 63 26 71 75 6F 74 3B 3C 2F 73 74 72 69 6E 67 3E\" | xxd -r -p | dd of=\"$helper\" bs=1 seek=\"$((start + 8))\" count=53 conv=notrunc\n  # start + 8 适用于 <string>八字节\n  # start + 53 + 8\n  start_pos=$((start + 53 + 8))\n  fill_byte=\"\"\n  lens=0\n  for ((i=0;i<341-53-8;i++)); do\n    lens=$((start_pos + i))\n    fill_byte+=\"09 \"\n  done\n  echo \"$fill_byte\" | xxd -r -p | dd bs=1 seek=$start_pos of=\"$helper\" count=$((lens - 1)) conv=notrunc\ndone\n\necho \"下发逮捕许可完成,即将有人来查你的水表，你别急...海内存知己,天涯若比邻.正在黑进你的Mac,目前已成功骗取到用户root密码.\"\n\nxattr -c '/Applications/Surge.app'\nsrc_info='/Applications/Surge.app/Contents/Info.plist'\n/usr/libexec/PlistBuddy -c \"Set :SMPrivilegedExecutables:com.nssurge.surge-mac.helper \\\"identifier \\\\\\\"com.nssurge.surge-mac.helper\\\\\\\"\\\"\" \"$src_info\"\n# /usr/libexec/PlistBuddy -c 'Print SMPrivilegedExecutables' \"$src_info\"\n\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app/Contents/Library/LaunchServices/com.nssurge.surge-mac.helper\ncodesign -f -s - --all-architectures --deep /Applications/Surge.app\n# python /Users/qiuchenly/Downloads/SMJobBless/SMJobBlessUtil.py check /Applications/Surge.app\n\necho \"恭喜你！你的Mac已经被我植入了后门程序,现在即将结束整个进程，特工已经在对面楼中布下天罗地网，请主动自首争取宽大处理(虽然宽大不了几天)，记得下辈子不要用盗版软件🙏。\\n\""
  },
  {
    "path": "tool/tablePlus.sh",
    "content": "xattr -cr /Applications/TablePlus.app"
  },
  {
    "path": "tool/terminus_zh_CN/cn.py",
    "content": "import os\nfrom os import path, read\n\n\ndef decompressAsar():\n    cmd = \"asar extract /Applications/Termius\\ Beta.app/Contents/Resources/app.asar /Applications/Termius\\ Beta.app/Contents/Resources/app\"\n    os.system(cmd)\n\n\ndef pack2asar():\n    cmd = 'asar p /Applications/Termius\\ Beta.app/Contents/Resources/app /Applications/Termius\\ Beta.app/Contents/Resources/app.asar --unpack-dir \"{node_modules/@termius,out}\"'\n    os.system(cmd)\n\n\nfiles: list[str] = []\n\nfiles_cache: dict[str:str] = {}\n\n\ndef main():\n    if not path.exists(\"/Applications/Termius Beta.app/Contents/Resources/app\"):\n        decompressAsar()\n\n    # read chinese\n    bg_progress = \"\"\n    ui_progress = \"\"\n    cnLang: list[str] = []\n\n    with open(\"lang.txt\") as lang:\n        cnLang = [ll for ll in lang.read().splitlines() if len(ll) > 0]\n\n    prefixLink = \"/Applications/Termius Beta.app/Contents/Resources/app/js\"\n    lstFile = [\n        prefixLink + '/' + ls for ls in os.listdir(prefixLink)\n    ]\n\n    for file in lstFile:\n        if path.exists(file):\n            with open(file) as lang:\n                files_cache[file] = lang.read()\n\n    for lang in cnLang:\n        mKey, mValue = lang.split(\"|\")\n\n        lastFile = \"\"\n        for cache in files_cache:\n            fileContent = files_cache[cache]\n            inx = fileContent.find(mKey)\n            if inx == -1:\n                if lastFile != mKey:\n                    lastFile = mKey\n                    print(\"找不到\", cache, mKey, mValue)\n                continue\n            else:\n                print(\"替换了\", cache, mKey, mValue)\n                fileContent = fileContent.replace(mKey, mValue)\n                files_cache[cache] = fileContent\n\n    for fileOut in files_cache:\n        with open(fileOut, \"w\", encoding=\"utf-8\") as u:\n            u.write(files_cache[fileOut])\n    pack2asar()\n\n\ncmd = \"cp /Applications/Termius\\ Beta.app/Contents/Resources/app.asar_副本 /Applications/Termius\\ Beta.app/Contents/Resources/app.asar\"\nos.system(cmd)\nos.system(\"rm -rf /Applications/Termius\\ Beta.app/Contents/Resources/app\")\nmain()\n"
  },
  {
    "path": "tool/terminus_zh_CN/lang.txt",
    "content": "=await this.api.bulkAccount()|={account:{authorized_features:{show_trial_section:false,show_subscription_section:true,show_github_account_section:false},pro_mode:true,need_to_update_subscription:false,current_period:{from:\"2023-01-01T00:00:00\",until:\"2099-01-01T00:00:00\"},plan_type:\"Premium\",user_type:\"Premium\",expired_screen_type:null},student:null,trial:null,personal_subscription:{now:\"2023-11-09T02:26:33\",status:\"SUCCESS\",platform:\"stripe\",current_period:{from:\"2023-01-01T00:00:00\",until:\"2099-01-01T00:00:00\"},revokable:true,refunded:false,cancelable:true,reactivatable:false,currency:\"usd\",created_at:\"2023-01-01T00:00:00\",updated_at:\"2023-11-09T02:26:33\",valid_until:\"2099-01-01T00:00:00\",auto_renew:true,price:360,verbose_plan_name:\"Termius Business Monthly\",plan_type:\"TEAM_BUSINESS\",is_expired:false},access_objects:[{period:{start:\"2023-01-01T00:00:00\",end:\"2099-01-01T00:00:00\"},title:\"Business\",}]}\n\ntitle:\"Terminal\"|title:\"终端\"\ntitle:\"Shortcuts\"|title:\"快捷键\"\ntitle:\"Known Hosts\"|title:\"已知主机\"\ntitle:\"Keychain\"|title:\"密钥链\"\ntitle:\"Account\"|title:\"账户\"\ntitle:\"Developer Tools\"|title:\"开发者工具\"\ntitle:\"QA Helpers\"|title:\"Q/A 帮助\"\ntitle:\"Invite People\"|title:\"邀请用户\"\ntitle:\"Manage Team\"|title:\"管理团队\"\ntitle:\"Hosts\"|title:\"Hosts主机\"\n\"Re-enter your \"|\"重新输入你的 \"\n\"To enable this feature, please enter your Termius\"|\"要启用这个特性, 请进入你的Termius\"\n\"To enable access to the shared data, please enter your Termius\"|\"要打开这个分享数据的访问, 请进入你的Termius\"\n\"You can also do it later in settings.\"|\"你爱做不做,现在不弄以后弄也行\"\n\n{LOCAL:\"Local\",REMOTE:\"Remote\",DYNAMIC:\"Dynamic\"}|{LOCAL:\"本地\",REMOTE:\"远程\",DYNAMIC:\"动态\"}\n[\"Hostname\", \"Username\"]|[\"主机名\", \"用户名\"]\n[\"Name\",\"Date\"]|[\"名称\",\"日期\"]\n\n\"Enable Shared Groups\"|\"启用分享组\"\n\"Enable Access to Shared Groups\"|\"启用分享组访问\"\n\"Log out\"|\"退出登录\"\n\n\ntitle:\"Warning\",text:\"After logout user data will be removed from the device\"|title:\"警告\",text:\"注销后，用户数据将从设备中删除!\"\ntitle:\"Enter required fields\"|title: \"输入需要的字段\"\ntitle:\"How we check passwords\"|title: \"我们如何验证密码\"\ntitle:\"No Identities or Keys\"|title:\"没有身份鉴权或密钥\"\ntitle:\"Copy to target directory\"|title:\"复制到目标目录\"\ntitle:\"Nothing to import\"|title:\"没什么可导入的\"\ntitle:\"Select Color Themes\"|title:\"选择主题颜色\"\ntitle:\"Hostchain Sharing\"|title: \"主机链共享\"\ntitle:\"Select Charset\"|title:\"选择字符集\"\ntitle:\"Port Forwarding\"|title:\"端口转发\"\ntitle:\"No Known Hosts\"|title:\"未知主机\"\ntitle:\"Select Snippets\"|title:\"选择代码片段\"\ntitle:\"Default Theme\"|title:\"默认主题\"\ntitle:\"Data Sharing\"|title: \"数据共享\"\ntitle:\"Privacy Policy\"|title:\"隐私政策\"\ntitle:\"Open in Terminal\"|title:\"在新的终端打开\"\ntitle:\"Edit Permissions\"|title:\"修改权限\"\ntitle:\"Color Themes\"|title:\"主题颜色\"\ntitle:\"Select Keys\"|title:\"选择密钥\"\ntitle:\"Remove tag\"|title:\"删除标签\"\ntitle:\"Arrange by: \"|title:\"排序: \"\ntitle:\"IP Version\"|title:\"IP 版本\"\ntitle:\"Known Hosts\"|title:\"已知主机\"\ntitle:\"Identities\"|title:\"身份凭据\"\ntitle:\"Documentation\"|title:\"文档\"\ntitle:\"Add Host\"|title:\"添加主机\"\ntitle:\"Uservoice\"|title:\"用户语音\"\ntitle:\"Edit Tag\"|title:\"编辑标签\"\ntitle:\"New Folder\"|title:\"新建文件夹\"\ntitle:\"Password\"|title:\"密码\"\ntitle:\"Address\"|title:\"地址\"\ntitle:\"Snippets\"|title: \"代码片段\"\ntitle:\"Protocol\"|title:\"协议\"\ntitle:\"Date\"|title:\"日期\"\ntitle:\"Keys\"|title:\"密钥\"\ntitle:\"Time\"|title:\"时间\"\ntitle:\"Snippet\"|title:\"代码片段\"\ntitle:\"Status\"|title:\"状态\"\ntitle:\"Billing\"|title:\"付款\"\ntitle:\"Groups\"|title:\"分组\"\ntitle:\"Select All\"|title:\"全选\"\ntitle:\"Port\"|title:\"端口\"\ntitle:\"SFTP\"|title:\"SFTP\"\ntitle:\"Rename\"|title:\"重命名\"\ntitle:\"Delete\"|title:\"删除\"\ntitle:\"Refresh\"|title:\"刷新\"\ntitle:\"Close\"|title:\"关闭\"\n\nlistName:\"Known Hosts\"|listName:\"已知主机\"\nlistName:\"Identities\"|listName:\"身份凭据\"\nlistTitle:\"Charsets\"|listTitle:\"字符集\"\nlistTitle:\"Keys\"|listTitle:\"密钥\"\nlistName:\"Groups\"|listName:\"分组\"\nlistName:\"Hosts\"|listName:\"主机\"\n\n\nsubtitle:\"Select Groups\"|subtitle:\"选择分组\"\n\nformTitle:\"Add key\"|formTitle:\"添加密钥\"\nformTitle:\"Add host\"|formTitle:\"添加主机\"\n\nendAdornment:\"save\"|endAdornment:\"保存\"\n\nimportButtonLocation:\"Preferences\"|importButtonLocation:\"首选项\"\n\nplaceholder:\"Search identities\"|placeholder:\"搜索鉴权凭证\"\nplaceholder:\"Add a Tag...\"|placeholder:\"新建标签\"\nplaceholder:\"Tab Title\"|placeholder:\"标签标题\"\nplaceholder:\"Select...\"|placeholder:\"选择...\"\nplaceholder:\"Disabled\"|placeholder:\"禁用\"\nplaceholder:\"Filter\"|placeholder:\"过滤器\"\nplaceholder:\"Search\"|placeholder:\"搜索\"\nplaceholder:\"Find\"|placeholder:\"查找\"\nonClick:t},\"Cancel\")|onClick:t},\"取消\")\nButtonTitle:\"Save\"|ButtonTitle:\"保存\"\nButtonTitle:\"Remove\"|ButtonTitle:\"删除\"\nButtonTitle:\"Logout\"|ButtonTitle:\"注销\"\n\ncase\"Known Hosts\"|case\"已知主机\"\ncase\"Experiments\"|case\"实验性\"\ncase\"Shortcuts\"|case\"快捷键\"\ncase\"Keychain\"|case\"密钥链\"\ncase\"Terminal\"|case\"终端\"\ncase\"Account\"|case\"账户\"\ncase\"Features\"|case\"新特性\"\n\nlabel:\"Bind address, 127.0.0.1 by default\"|label:\"绑定地址, 默认 127.0.0.1\"\nlabel:\"Bring All to Front\"|label:\"Bring All to Front\"\nlabel:\"Toggle Full Screen\"|label:\"切换全屏\"\nlabel:\"Check for Update\"|label:\"检查更新\"\nlabel:\"Date Modified\"|label:\"修改日期\"\nlabel:\"Startup Snippet\"|label:\"启动代码片段\"\nlabel:\"Learn More\"|label:\"了解更多\"\nlabel:\"Theme Options\"|label:\"主题选项\"\nlabel:\"Minimize\"|label:\"最小化\"\nlabel:\"Preferences\"|label:\"首选项\"\nlabel:\"New Window\"|label:\"新窗口\"\nlabel:\"Number of rows\"|label:\"行数\"\nlabel:\"Host from\"|label:\"来源主机\"\nlabel:\"Port From\"|label:\"来源端口\"\nlabel:\"Identities\"|label:\"身份凭据\"\nlabel:\"Host to\"|label:\"目的主机\"\nlabel:\"Port to\"|label:\"目的端口\"\nlabel:\"Root group\"|label:\"根分组\"\nlabel:\"Charset\"|label:\"字符集\"\nlabel:\"Interval\"|label:\"间隔\"\nlabel:\"Hosts\"|label:\"主机\"\nlabel:\"Find\"|label:\"查找\"\nlabel:\"File\"|label:\"文件\"\nlabel:\"Edit\"|label:\"编辑\"\nlabel:\"View\"|label:\"查看\"\nlabel:\"Window\"|label:\"窗口\"\nlabel:\"Help\"|label:\"帮助\"\nlabel:\"Size\"|label:\"大小\"\nlabel:\"Kind\"|label:\"类型\"\nlabel:\"About\"|label:\"关于\"\nlabel:\"Label\"|label:\"标签\"\nlabel:\"Tags\"|label:\"标签\"\nlabel:\"Keys\"|label:\"密钥\"\nlabel:\"Passphrase\"|label:\"密码\"\nlabel:\"Password\"|label:\"密码\"\nlabel:\"Proxy\"|label:\"代理\"\nlabel:\"Port\"|label:\"端口\"\nlabel:\"Username\"|label:\"用户名\"\nlabel:\"User\"|label:\"用户\"\nlabel:\"Address\"|label:\"地址\"\nlabel:\"Group\"|label:\"分组\"\nlabel:\"Groups\"|label:\"分组\"\nlabel:\"Name\"|label:\"名称\"\n\n{role:\"selectall\"}|{label:\"全选\",role:\"selectall\"}\n{role:\"delete\"}|{label:\"删除\",role:\"delete\"}\n{role:\"paste\"}|{label:\"粘贴\",role:\"paste\"}\n{role:\"copy\"}|{label:\"复制\",role:\"copy\"}\n{role:\"undo\"}|{label:\"撤销\",role:\"undo\"}\n{role:\"redo\"}|{label:\"重做\",role:\"redo\"}\n{role:\"cut\"}|{label:\"剪切\",role:\"cut\"}\n{role:\"minimize\"}|{label:\"最小化\",role:\"minimize\"}\n\n\n\"We’ve credited your account with a free 14 day trial of Termius Premium. Get Termius on iOS or Android, and keep everything synced automatically.\"|\"我们已为您的帐户提供Termius 高级版的14天免费试用。 在iOS或Android上获取Termius，并自动保持所有同步。\"\n`\\n      An item named \"${A}\" already exists in this location. \\n      Do you want to replace it with the one you are moving?\\n    `|`\\n     此目录已存在名为 \"${A}\" 的项目. \\n      您确定要用您移动的覆盖它吗?\\n    `\n\"The parameters below will be applied to all hosts and subgroups in this group, unless you explicitly rewrite them.\"|\"除非您明确重写它们，否则以下参数将应用于该组中的所有主机和子组。\"\n\"Upload and download files using the integrated SFTP client. Easily accessible from the terminal on all devices.\"|\"使用集成的SFTP客户端上传和下载文件。 可从所有设备上的终端轻松访问。\"\n\"How often (in milliseconds) to send SSH-level keepalive packets to the server. Set to 0 to disable.\"|\"设置SSH的心跳包频率(以毫秒为单位)。设置为0以禁用。\"\n\"Please re-enter your Termius password to re-sync your data from our servers:\"|\"请重新输入您的Termius密码以重新同步来自我们服务器的数据：\"\n\"We’ve credited your account with a free 14 day trial of Termius Premium.\"|\"我们已为您的帐户提供Termius 高级版的14天免费试用。\"\n\"This password has previously appeared in a data breach and should never be used!\"|\"该密码以前曾出现在数据泄露中，切勿使用！\"\n\"Unlock Termius Premium features such as SFTP, Snippets, Agent Forwarding,\"|\"解锁Termius 高级版功能，例如SFTP，代码片段，代理转发，\"\n\"and sync the data across all your devices using E2EE sync.\"|\" 并且在您所有设备之间同步数据，使用 E2EE 同步\"\n\"Limit number of terminal rows. Set to 0 to maximum limit size.\"|\"限制终端行数。 设置为0表示最大限制大小。\"\n\"Affects this device only, saved credentials will not be synced\"|\"仅影响此设备，保存的凭据将不会同步\"\n\"Create an account to unlock all Premium features for 14 days.\"|\"创建一个账户解锁所有高级版特性14天。\"\n\"Connecting to a host requires adding one to Termius first.\"|\"连接到主机需要先要将其添加到向Termius。\"\n\"Find a host or ssh user@hostname...\"|\"查找一个已知主机 或 ssh user@hostname 直接登录一个主机...\"\n\"Enable notification bell (backend flag won't change)\"|\"启用通知铃声（后端标志不会更改）\"\n\"Manage Subscription\":\"Learn more about Premium\"|\"管理订阅\":\"了解更多关于高级版\"\n\"Manage Billing Information\":\"Manage Subscription\"|\"管理帐单信息\":\"管理订阅\"\n\"Connect to a new host via SSH, MOSH or Telnet.\"|\"通过SSH，MOSH或Telnet连接到新主机。\"\nhas been downloaded and will be automatically installed on exit`|退出时将会自动安装`\n\"Once you've added hosts, you'll find them here\"|\"添加主机后，您将在这里找到它们\"\n\"Your reset link has been sent to your email\"|\"您的重置链接已发送至您的电子邮件\"\n\"New Terminals will use the selected theme, \"|\"新打开的终端将会使用选中主题，\"\n\"Select text to copy & Right click to paste\"|\"选中文本复制 & 右击鼠标粘贴\"\n\"email address. Enter your password to log in.\"|\"电子邮件地址。 输入密码登录。\"\n\"There’s already an account associated with this\"|\"已经有与此相关的帐户的\"\n\"Account with specified email is not registered\"|\"指定电子邮件的帐户未注册\"\n\"Select what type of data you want to import:\"|\"选择您要导入的数据类型：\"\n\"Hide Hidden Files\":\"Show Hidden Files\"|\"隐藏隐藏文件\":\"显示隐藏文件\"\n\"Are you sure you want to remove this known host?\"|\"您确定要删除此主机吗？\"\n\"This password hasn't appeared in a data breach\"|\"此密码未出现数据泄露事件\"\n\"Connection failed with connection log:\"|\"连接失败，并显示连接日志:\"\n\"The update will be downloaded automatically.\"|\"将会自动下载更新。\"\n\"Snippets are predefined port knocking or\"|\"代码片段是预定义 端口敲击 或者\"\n\"shell scripts. Add a snippet to conveniently\"|\"Shell 脚本。添加一段代码片段方便\"\n\"Are you sure you want to remove snippet?\"|\"您确定要删除代码片段吗？\"\n\"run any command at any time.\"|\"在任意时候运行任意代码\"\n\"Import from AWS and Digital Ocean\"|\"从 AWS 或者 Digital Ocean导入\"\n\"Data has not been synchronized yet\"|\"数据未同步\"\n\" existing Terminals are not affected.\"|\"已经打开的终端不受影响。\"\n\"Delete local data and start over\"|\"删除本地数据并重新开始\"\n\"Allow local SSH/SFTP connections\"|\"允许本地 SSH/SFTP 连接\"\n\"Use new terminal rendering engine\"|\"使用新的终端渲染引擎\"\n\"Password reset failed with status \"|\"密码重置失败，状态为 \"\n\"Need to import something else?\"|\"需要导入其他内容吗？\"\n\"Delete local data and re-sync\"|\"删除本地数据并重新同步\"\n\"Edit identity\":\"Add identity\"|\"编辑身份凭据\":\"添加身份凭据\"\n\"Are you sure you want to delete tag?\"|\"您确定要删除标签吗?\"\n\" Premium on all your devices.\"|\" 高级版在您所有设备上.\"\n\"Start a free 14 day trial and use \"|\"开始免费使用 14 天 \"\n\"Please fill out your Phone Number\"|\"请输入您的手机号码\"\n\"A new update is ready to install\"|\"一个更新已经准备就绪\"\n\"Try Premium - 14 day free trial\"|\"免费试用高级版 14 天\"\n\"Select from your saved Hosts\"|\"从您已经保存的主机中选择\"\n\"Something went wrong, try again.\"|\"发生错误，请稍后再试\"\n\"Manage your usernames and\"|\"管理您的用户名和访问密钥\"\n\"Redirect communication requests\"|\"重定向通讯请求\"\n\"with port forwarding rules.\"|\"通过端口转发规则.\"\n\"Edit snippet\":\"Add snippet\"|\"编辑代码片段\":\"添加代码片段\"\n\"To create a port forwarding rule\"|\"在创建端口转发规则之前\"\n\"Sync keys and identities\"|\"同步密钥和身份凭据\"\n\" at the end of trial period.\"|\"，在试用期结束后\"\n\"Enable new virtualized list\"|\"启用新的虚拟列表\"\n\"Enable new connection flow\"|\"启用新的连接流程\"\n\"Continue without account\"|\"不登录账户继续使用\"\n\"Hide Logs\":\"Show Logs\"|\"隐藏日志\":\"显示日志\"\n\"Enable new crypto system\"|\"启用新的加密系统\"\n\"SFTP is a Premium Feature\"|\"SFTP是高级版特性\"\n\"Continue\":\"Create account\"|\"继续\":\"创建账户\"\n\"Edit Rule\":\"Add Rule\"|\"编辑规则\":\"新建规则\"\n\"Already have an account?\"|\"已经有账户了?\"\n\"Edit key\":\"Add key\"|\"编辑密钥\":\"添加密钥\"\n\"Backspace as Ctrl+H\"|\"Backspace 当作 Ctrl+H\"\n\"From Parent group\":\"Default\"|\"继承父组\":\"默认\"\n\"Edit group\":\"Add group\"|\"编辑分组\":\"添加分组\"\n\"Edit host\":\"Add host\"|\"编辑主机\":\"添加主机\"\n\"access keys by adding them\"|\"通过添加他们\"\n\"ADD ENVIRONMENT VARIABLE\"|\"添加环境变量\"\n\" from specified file.\"|\"在您提供的文件中。\"\n\"nothing to import\"|\"没有可导入的数据\"\n\"Unfortunately we found \"|\"实在抱歉！我们发现\"\n\"Where are you coming from?\"|\"从那里导入？\"\n\"AWS and Digital Ocean\"|\"AWS 和 Digital Ocean\"\n\"Sync Keys & Passwords\"|\"同步 密钥 和 密码\"\n`Do you want to delete|`您确定想要删除\n\"Start by adding a host\"|\"从添加主机开始\"\n\"SSH Agent Forwarding\"|\"SSH 代理转发\"\n\"Import from AWS, DO*\"|\"从AWS导入, DO*\"\n\"Name is already used\"|\"名称已经被使用\"\n\"Error during transfer\"|\"传输过程发生错误\"\n\" What do you want to do?\"|\" 你想做什么？\"\n\"Two-Factor Authentication\"|\"两因素身份验证\"\n\"Phone number\"|\"手机号码\"\n\"Port-knocking*\"|\"Port-knocking*\"\n\"Enable session reuse\"|\"启用会话重用\"\n\"No automatic charge\"|\"不会自动收费\"\n\"Password reset failed\"|\"密码重置失败\"\n\"Verified\":\"Not verified\"|\"已验证\":\"未验证\"\n\"New Update Available\"|\"新版本可用\"\n\"Protocol selected: \"|\"选择协议: \"\n\"Local Terminal Path\"|\"本地终端路径\"\n\"Keepalive Interval\"|\"保持连接间隔\"\n\"Import from PuTTY\"|\"从 PuTTY 导入\"\n\"Import from KiTTY\"|\"从 KiTTY 导入\"\n\"Import from CSV\"|\"从 CSV 导入\"\n\"SSH config file\"|\"SSH 配置文件\"\n\"Remove known host\"|\"删除已知主机\"\n\"New Update available.\"|\"新版本可用。\"\n\"Theme inherited from \"|\"主题继承自 \"\n\"Experiment Toggles\"|\"实验性开关\"\n\"Import Ssh Config\"|\"导入 SSH 配置文件\"\n\"How do we know?\"|\"我们如何知道？\"\n\"Password strength:\"|\"密码强度:\"\n\"Log In\":\"Sign Up\"|\"登录\":\"注册\"\n\"Feature Toggles\"|\"新特性开关\"\n\"Connect to Host\"|\"连接到主机\"\n\"[SSH2] Port\"|\"[SSH2] 端口\"\n\"Autocomplete*\"|\"Autocomplete*\"\n\"Add new host\"|\"添加新主机\"\n\"Global settings\"|\"全局设置\"\n\"SOCKS Proxy\"|\"SOCKS 代理\"\n\"Port Forwarding\"|\"端口转发\"\n\"SFTP Client\"|\"SFTP 客户端\"\n\"to the Keychain\"|\"到密钥链\"\n\"Terminal settings\"|\"终端设置\"\n\"Scrollback\"|\"Scrollback(回滚)\"\nchildren:\"New\"|children:\"新建\"\n\"Local Terminal\"|\"本地终端\"\n\"Let us know!\"|\"让我们知道！\"\n\"Do it later\"|\"这事儿我以后再弄\"\n\"these items\"|\"这些项目\"\n\"this folder\"|\"这个文件夹\"\n\"GO PREMIUM\"|\"购买高级版\"\n\"this file\"|\"这个文件\"\n\"these folders\"|\"这些目录\"\n\"these files\"|\"这些文件\"\n\"Adding a host\"|\"添加一个主机\"\n\"Foldername *\"|\"目录名 *\"\n\"New filename *\"|\"新文件名 *\"\n\"Required\"|\"需要的\"\n\"Let’s go!\"|\"让我们开始吧！\"\n\"Reset password\"|\"重置密码\"\n\"Remove snippet\"|\"删除代码片段\"\n\"Local Terminal\"|\"本地终端\"\n\" Preferences\"|\" 首选项\"\n\"Terminal theme\"|\"终端主题\"\n\"Terminal Font\"|\"终端字体\"\n\"Apply to All\"|\"应用到所有\"\n\"New Identity\"|\"添加身份凭据\"\n\"Synchronization\"|\"数据同步\"\n\"Sync keys\"|\"同步密钥\"\n\"Connection to \"|\"连接到 \"\n\"Exit\":\"Quit\"|\"退出\":\"退出\"\n\"Enable IPv6\"|\"启用 IPv6\"\n\"New Host\"|\"添加主机\"\n\"New Group\"|\"添加分组\"\n`Connecting to |`连接到 \n\"Add to host\"|\"添加到主机\"\n\"Preferences\"|\"首选项\"\n\"New email\"|\"新邮箱\"\n\"Change Email\"|\"修改邮箱\"\n\"Change email\"|\"修改邮箱\"\n\"Old Password\"|\"旧密码\"\n\"Change Password\"|\"修改密码\"\n\"Change password\"|\"修改密码\"\n\"Log Out\"|\"退出登录\"\n\"Reload Data\"|\"重新加载数据\"\n\"Enable 2FA\"|\"启用 2FA\"\n\"Error!!!\"|\"错误!!!\"\n\"Public key\"|\"公钥\"\n\"Private key\"|\"私钥\"\n\"New Key\"|\"添加密钥\"\n\"Skip All\"|\"全部跳过\"\n\"start by\"|\"请先\"\n\"Select Host\"|\"选择主机\"\n\"Select Hosts\"|\"选择主机\"\nlabel:\"Tags\"|label:\"标签\"\n\"Let us know!\"|\"让我们知道！\"\n\"Learn more in \"|\"了解更多 \"\n\"Start Over\"|\"重新开始\"\n\"Dynamic Rule\"|\"动态规则\"\n\"Local Rule\"|\"本地规则\"\n\"Remote Rule\"|\"远程规则\"\n\"New Password\"|\"新密码\"\n\"Dark mode\"|\"深色模式\"\n\"Host Chaining\"|\"主机链\"\n\"Parent group\"|\"父分组\"\n\"Edit Chain\"|\"编辑链\"\n\"Text size\"|\"文本大小\"\n\"Bell sound\"|\"铃声\"\n\"Sync now\"|\"立即同步\"\n\"History\"|\"历史记录\"\n\"Duplicate\"|\"重复\"\n\"Snippets\"|\"代码片段\"\n\"Username\"|\"用户名\"\n`Arrange by:|`排序:\n\"Account\"|\"账户\"\n\"Hostname\"|\"主机名\"\n:\"Tags\"),|:\"标签\"),\n\"Login\")|\"登录\")\n\"Log In\"|\"登录\"\n\"Edit\"|\"编辑\"\n\"Remove\"|\"删除\"\n\"Close\"|\"关闭\"\n\"Connect\"|\"连接\"\n\"Actions\"|\"操作\"\n\"Continue\"|\"继续\"\n\"Import\"|\"导入\"\n\"Delete\"|\"删除\"\n\"Replace\"|\"替换\"\n\"Reset\"|\"重置\"\n\"Skip\"|\"跳过\"\n\"Merge\"|\"合并\"\n\"Cancel\"|\"取消\"\n\"Retry\"|\"重试\"\n\"Size \"|\"大小 \"\n\"Stop\"|\"停止\""
  },
  {
    "path": "原神_启动.command",
    "content": "#!/bin/sh\ncd \"${0%/*}\" || exit 1\nread -p \"⚙️ 请输入密码(明文)然后回车: \" -r passwd\nprintf \"\\r\\033[1A%s\" \"\" 1>&2\nprintf \"\\r\\033[K%s\" \"\" 1>&2\nfind . -name \"*.*\" 2>/dev/null | xargs otool -l 2>/dev/null | grep -E \"(minos|sdk)\" 2>/dev/null\necho \"${passwd}\" | sudo -S echo \"⚙️ 当前是 $(sudo -S whoami) 用户\"\nsudo -S ruby main.rb"
  },
  {
    "path": "小白请看.md",
    "content": "使用方法\n1. 点击star\n![star项目](https://tc.souk.eu.org/d/33.png)\n2. 下载整个仓库\n   <br>\n   小白不知道点哪里下载整个仓库？[点我下载](https://github.com/QiuChenlyOpenSource/InjectLib/archive/refs/heads/main.zip)\n3. 下载后一般会自动解压，如没有自动解压请手动解压\n![Alt Text](https://tc.souk.eu.org/d/34.png)\n4. 确保Surge软件已安装至/Application 文件夹内 然后关闭 Surge 程序\n5. 双击 原神_启动.command 执行文件，然后输入电脑的登录密码授予脚本权限\n![Alt Text](https://tc.souk.eu.org/d/37.png)\n6. 输入 “y” 执行注入操作\n![Alt Text](https://tc.souk.eu.org/d/35.png)\n7. 等待注入完成后打开 Surge 即可\n![Alt Text](https://tc.souk.eu.org/d/36.png)\n"
  }
]