├── LICENSE ├── README.md ├── app_bbg.js ├── app_cwjl.js ├── app_dlsj.js ├── app_ds.js ├── app_ggb.js ├── app_htzq.js ├── app_jbxq.js ├── app_jfh.js ├── app_jhh.js ├── app_jqsj.js ├── app_khz.js ├── app_kt.js ├── app_kyin.js ├── app_lfb.js ├── app_mmyp.js ├── app_rlsp.js ├── app_sdsj.js ├── app_sdsj_cs.js ├── app_sdsj_transaction.js ├── app_sjzy.js ├── app_sqq.js ├── app_swxq.js ├── app_txzxg.js ├── app_wkllq.js ├── app_wytk.js ├── app_xmyd.js ├── app_xsh.js ├── app_yhxq.js ├── app_zzb.js ├── axios.js ├── config ├── Config.js ├── NFT_code.js ├── app_kzk ├── git_token.js ├── sdsj.js ├── shareid.txt ├── ttl_data.js ├── wyyx_code.js ├── zyEb_data.js └── 脚本模板.js ├── ds_variable_data.js ├── dwsj_variable_data.js ├── mac.js ├── md5.js ├── picture ├── ddz.jpg ├── gk.png ├── kzk.jpg ├── lmyx.jpg ├── mkjl.png ├── nw.jpg ├── qmrd.png ├── qysc.jpg ├── sqq.png ├── wx_fqkk.png ├── wx_jysz.png ├── wx_yyd.jpg ├── wxsg.png ├── wytk.jpg ├── yf.jpg ├── ygy.jpg ├── yqyf.jpg └── zmyd.jpg ├── sendNotify.js ├── soy_dwsj_gettoken.js ├── soy_jqsj_data.js ├── soy_ks_zl.js ├── soy_yqyf_data.js ├── variable ├── soy_jbxq_data.js ├── soy_jhh_data.js ├── soy_kdjl_data.js └── soy_sjzy_data.js ├── wx_jjy.js ├── wx_ymf.js └── wx_yxxsh.js /LICENSE: -------------------------------------------------------------------------------- 1 | 木兰宽松许可证, 第2版 2 | 3 | 木兰宽松许可证, 第2版 4 | 2020年1月 http://license.coscl.org.cn/MulanPSL2 5 | 6 | 7 | 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第2版(“本许可证”)的如下条款的约束: 8 | 9 | 0. 定义 10 | 11 | “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 12 | 13 | “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 14 | 15 | “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 16 | 17 | “法人实体”是指提交贡献的机构及其“关联实体”。 18 | 19 | “关联实体”是指,对“本许可证”下的行为方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 20 | 21 | 1. 授予版权许可 22 | 23 | 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 24 | 25 | 2. 授予专利许可 26 | 27 | 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括对“贡献”的修改或包含“贡献”的其他结合。如果您或您的“关联实体”直接或间接地,就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 28 | 29 | 3. 无商标许可 30 | 31 | “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 32 | 33 | 4. 分发限制 34 | 35 | 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 36 | 37 | 5. 免责声明与责任限制 38 | 39 | “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 40 | 41 | 6. 语言 42 | “本许可证”以中英文双语表述,中英文版本具有同等法律效力。如果中英文版本存在任何冲突不一致,以中文版为准。 43 | 44 | 条款结束 45 | 46 | 如何将木兰宽松许可证,第2版,应用到您的软件 47 | 48 | 如果您希望将木兰宽松许可证,第2版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: 49 | 50 | 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; 51 | 52 | 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; 53 | 54 | 3, 请将如下声明文本放入每个源文件的头部注释中。 55 | 56 | Copyright (c) [Year] [name of copyright holder] 57 | [Software Name] is licensed under Mulan PSL v2. 58 | You can use this software according to the terms and conditions of the Mulan PSL v2. 59 | You may obtain a copy of Mulan PSL v2 at: 60 | http://license.coscl.org.cn/MulanPSL2 61 | THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 62 | See the Mulan PSL v2 for more details. 63 | 64 | 65 | Mulan Permissive Software License,Version 2 66 | 67 | Mulan Permissive Software License,Version 2 (Mulan PSL v2) 68 | January 2020 http://license.coscl.org.cn/MulanPSL2 69 | 70 | Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions: 71 | 72 | 0. Definition 73 | 74 | Software means the program and related documents which are licensed under this License and comprise all Contribution(s). 75 | 76 | Contribution means the copyrightable work licensed by a particular Contributor under this License. 77 | 78 | Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. 79 | 80 | Legal Entity means the entity making a Contribution and all its Affiliates. 81 | 82 | Affiliates means entities that control, are controlled by, or are under common control with the acting entity under this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. 83 | 84 | 1. Grant of Copyright License 85 | 86 | Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. 87 | 88 | 2. Grant of Patent License 89 | 90 | Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution, where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed. The patent license shall not apply to any modification of the Contribution, and any other combination which includes the Contribution. If you or your Affiliates directly or indirectly institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. 91 | 92 | 3. No Trademark License 93 | 94 | No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in Section 4. 95 | 96 | 4. Distribution Restriction 97 | 98 | You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. 99 | 100 | 5. Disclaimer of Warranty and Limitation of Liability 101 | 102 | THE SOFTWARE AND CONTRIBUTION IN IT ARE PROVIDED WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL ANY CONTRIBUTOR OR COPYRIGHT HOLDER BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO ANY DIRECT, OR INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING FROM YOUR USE OR INABILITY TO USE THE SOFTWARE OR THE CONTRIBUTION IN IT, NO MATTER HOW IT’S CAUSED OR BASED ON WHICH LEGAL THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 103 | 104 | 6. Language 105 | 106 | THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN THE CASE OF DIVERGENCE BETWEEN THE CHINESE AND ENGLISH VERSIONS, THE CHINESE VERSION SHALL PREVAIL. 107 | 108 | END OF THE TERMS AND CONDITIONS 109 | 110 | How to Apply the Mulan Permissive Software License,Version 2 (Mulan PSL v2) to Your Software 111 | 112 | To apply the Mulan PSL v2 to your work, for easy identification by recipients, you are suggested to complete following three steps: 113 | 114 | i Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; 115 | 116 | ii Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; 117 | 118 | iii Attach the statement to the appropriate annotated syntax at the beginning of each source file. 119 | 120 | 121 | Copyright (c) [Year] [name of copyright holder] 122 | [Software Name] is licensed under Mulan PSL v2. 123 | You can use this software according to the terms and conditions of the Mulan PSL v2. 124 | You may obtain a copy of Mulan PSL v2 at: 125 | http://license.coscl.org.cn/MulanPSL2 126 | THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 127 | See the Mulan PSL v2 for more details. 128 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 谁对我的感情能像对人民币那样坚定啊 2 | -------------------------------------------------------------------------------- /app_ds.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | 项目名称:达赏 4 | 5 | 项目注册地址: 6 | app地址:http://m.tokshine.com/h5/ 7 | 交易app地址:http://www.xiangxincapital.com 8 | 9 | 邀请码:RPRR47 10 | 11 | 声明:脚本只能作者下级才能跑以及你自己号的自己下级跑(后者未更新) 12 | 13 | 零撸玩法: 14 | 下载app → 登录 → 填邀请码 → 自行吧能做到任务做做(不做也可以,反正没有钻石送) 15 | 实名认证(需要人脸) → 进 交易app 选达赏 登录(同app账号同步) → 确权 → 收款方式认证 → 业绩激励 → 申请业绩激励 → 选10股期,确定申请 16 | 17 | 然后每在app看5分钟视频,得5克拉钻石(第二天释放前一天钻石) 18 | 19 | 5分钟视频后确保交易app的 业绩激励 上面显示今日月绩进度是否正确 20 | 21 | 如需要有啥奖励自行查看 业绩激励 界面右上角的规则 22 | 23 | 399元玩法: 24 | 25 | 自行查看:https://www.yuque.com/docs/share/622a0d2c-53f6-441c-bad0-9418287eb20b 26 | 27 | 注:走399元邀请码不支持使用脚本,走我码再走399元的我也没能力扶持,除非有客观收入会联系下级发放 28 | 29 | 变现: 30 | 在交易app里面出售释放出来的股权(可官方回收和自行挂单) 31 | 32 | 一天2-3次,刷1个小时应该够,不够自己看时长计算 33 | cron 0-59/1 8,17 * * * 34 | 35 | 脚本地址:https://gitee.com/soy-tool/app-script/raw/master/app_ds.js 36 | 37 | 变量配置文件地址:https://gitee.com/soy-tool/app-script/raw/master/ds_variable_data.js 38 | 39 | */ 40 | 41 | 42 | const $ = new Env('【达赏】版本:22/03/03_0'); 43 | // @grant require 44 | const notify = $.isNode() ? require('./sendNotify') : ''; 45 | 46 | var _0xodA='jsjiami.com.v6',_0xodA_=['_0xodA'],_0x440e=[_0xodA,'\x69\x73\x4e\x6f\x64\x65','\x2e\x2f\x72\x61\x77\x5f\x6d\x61\x73\x74\x65\x72\x5f\x64\x73\x5f\x76\x61\x72\x69\x61\x62\x6c\x65\x5f\x64\x61\x74\x61\x2e\x6a\x73','\x63\x6f\x64\x65','\x6c\x6f\x67','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\u3011\uff1a\u914d\u7f6e\u6587\u4ef6\u6570\u636e\u6709\u8bef\x2c\u8bf7\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u7684\u6b63\u786e\u6027','\x0a\x3d\x3d\x3d\x20\u811a\u672c\u6267\u884c\x20\x2d\x20\u5317\u4eac\u65f6\u95f4\uff1a','\x67\x65\x74\x54\x69\x6d\x65','\x67\x65\x74\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x4f\x66\x66\x73\x65\x74','\x74\x6f\x4c\x6f\x63\x61\x6c\x65\x53\x74\x72\x69\x6e\x67','\x20\x3d\x3d\x3d\x0a','\x3d\x3d\x3d\u3010\u5171\x20','\x64\x73\x5f\x76\x61\x72\x69\x61\x62\x6c\x65\x5f\x64\x61\x74\x61','\x75\x73\x65\x72\x5f\x64\x61\x74\x61','\x6c\x65\x6e\x67\x74\x68','\x20\u4e2a\u8d26\u53f7\u3011\x3d\x3d\x3d\x0a','\x75\x73\x65\x72\x5f\x49\x44','\x74\x6f\x6b\x65\x6e','\x69\x6e\x64\x65\x78','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x6e\x61\x6d\x65','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x0a\u5f00\u59cb\u3010\u7b2c\x20','\x20\u4e2a\u8d26\u53f7\u4efb\u52a1\u3011','\x75\x73\x65\x72\x2f\x75\x73\x65\x72\x49\x6e\x66\x6f\x2f\x67\x65\x74\x55\x73\x65\x72\x42\x79\x49\x64','\x67\x65\x74','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\x2d\x2d\x2d\u8d26\u53f7\x20','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x70\x61\x72\x73\x65','\x64\x61\x74\x61','\x70\x61\x72\x65\x6e\x74\x55\x73\x65\x72\x49\x64','\x31\x33\x38\x39\x39\x37\x37','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\x0a\x2d\x2d\x2d\u8be5\u811a\u672c\u5f8b\u5c5e\u4f5c\u8005\u4e0b\u7ea7\u4f7f\u7528\x0a\x2d\x2d\x2d\u8be5\u8d26\u6237\u975e\u4f5c\u8005\u4e0b\u7ea7\x0a\x2d\x2d\x2d\u4f5c\u8005\u9080\u8bf7\u7801\u4e3a\uff1a\x52\x50\x52\x52\x34\x37','\x20\u83b7\u53d6\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\x28\u8d26\u53f7\u975e\u4f5c\u8005\u4e0b\u7ea7\x29\u8be5\u8d26\u53f7\u975e\u4f60\u81ea\u5df1\u8d26\u53f7\u7684\u4e0b\u7ea7','\x20\u5237\u65f6\u957f\u3011\x3a\x20','\x6d\x65\x73\x73\x61\x67\x65','\x76\x6f\x64\x2f\x76\x69\x64\x65\x6f\x2f\x67\x65\x74\x52\x65\x63\x6f\x6d\x6d\x65\x6e\x64\x4c\x69\x73\x74\x3f\x70\x61\x67\x65\x3d\x33\x26\x73\x69\x7a\x65\x3d\x39','\x20\u89c6\u9891\u5217\u8868\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x66\x6c\x6f\x6f\x72','\x72\x61\x6e\x64\x6f\x6d','\x76\x6f\x64','\x20\u89c6\u9891\u5217\u8868\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x63\x6f\x69\x6e\x4d\x69\x6e\x75\x74\x65\x44\x72\x61\x77\x41\x6d\x6f\x75\x6e\x74\x42\x79\x55\x73\x65\x72\x49\x64\x3f\x73\x65\x63\x6f\x6e\x64\x3d\x37\x32','\x70\x6f\x73\x74','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20\u5904\u7406\u6210\u529f','\x7b\x22\x64\x61\x74\x61\x22\x3a\x22\x30\x2c\x32\x3b\x22\x2c\x22\x73\x65\x71\x75\x65\x6e\x63\x65\x22\x3a\x33\x32\x2c\x22\x74\x6f\x6b\x65\x6e\x22\x3a\x22','\x20\u89c2\u770b\u89c6\u9891\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x67\x65\x74\x54\x6f\x6b\x65\x6e\x2f','\x20\u83b7\u53d6\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u83b7\u53d6\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x77\x61\x74\x63\x68\x52\x65\x70\x6f\x72\x74','\x20\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u540c\u6b65\u4fe1\u606f\u3011\x3a\x20','\x76\x6f\x64\x2f\x77\x61\x74\x63\x68\x2f\x74\x6f\x64\x61\x79\x54\x6f\x74\x61\x6c\x44\x75\x72\x61\x74\x69\x6f\x6e','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u957f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20\u603b\u65f6\u957f\x20','\x20\u4eca\u65e5\u89c2\u770b\u65f6\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x6c\x69\x73\x74\x43\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x42\x79\x55\x73\x65\x72\x49\x64\x47\x72\x6f\x75\x70\x42\x79\x4f\x77\x6e\x44\x61\x74\x65','\x7b\x22\x70\x61\x67\x65\x22\x3a\x31\x2c\x22\x73\x69\x7a\x65\x22\x3a\x31\x30\x7d','\x20\u94bb\u77f3\u5217\u8868\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x73\x74\x61\x74\x75\x73','\x20\u94bb\u77f3\u5217\u8868\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x63\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x2f\x75\x70\x43\x6f\x69\x6e\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x53\x74\x61\x74\x65\x3f\x69\x64\x3d','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20\u6210\u529f','\x20\u9886\u53d6\u94bb\u77f3\u3011\x3a\x20','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x67\x77\x2e\x74\x6f\x6b\x73\x68\x69\x6e\x65\x2e\x63\x6f\x6d\x2f\x61\x70\x70\x2f','\x44\x61\x72\x74\x2f\x32\x2e\x31\x35\x20\x28\x64\x61\x72\x74\x3a\x69\x6f\x29','\x67\x7a\x69\x70','\x67\x77\x2e\x74\x6f\x6b\x73\x68\x69\x6e\x65\x2e\x63\x6f\x6d','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x3b\x20\x63\x68\x61\x72\x73\x65\x74\x3d\x75\x74\x66\x2d\x38','\x6a\x64\x73\x68\x6a\x69\x61\x6d\x69\x2e\x66\x63\x6f\x59\x6d\x58\x42\x2e\x76\x71\x36\x74\x49\x42\x51\x6b\x41\x41\x3d\x3d'];function _0x2d56(_0x2b2325,_0x41f407){_0x2b2325=~~'0x'['concat'](_0x2b2325['slice'](0x0));var _0x4807d7=_0x440e[_0x2b2325];return _0x4807d7;};(function(_0x24db3d,_0x58ebcf){var _0xdd071=0x0;for(_0x58ebcf=_0x24db3d['shift'](_0xdd071>>0x2);_0x58ebcf&&_0x58ebcf!==(_0x24db3d['pop'](_0xdd071>>0x3)+'')['replace'](/[dhfYXBqtIBQkAA=]/g,'');_0xdd071++){_0xdd071=_0xdd071^0xd4e7c;}}(_0x440e,_0x2d56));const fs=require('\x66\x73');const ds_variable=$[_0x2d56('0')]()?require(_0x2d56('1')):'';let UserId='';!(async()=>{if($[_0x2d56('0')]()){if(ds_variable[_0x2d56('2')]!==0xc8){console[_0x2d56('3')](_0x2d56('4'));return;}console[_0x2d56('3')](_0x2d56('5')+new Date(new Date()[_0x2d56('6')]()+new Date()[_0x2d56('7')]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[_0x2d56('8')]()+_0x2d56('9'));console[_0x2d56('3')](_0x2d56('a')+ds_variable[_0x2d56('b')][_0x2d56('c')][_0x2d56('d')]+_0x2d56('e'));subTitle='';for(i=0x0;i$[_0x2d56('15')](_0x109d2a))[_0x2d56('16')](()=>$[_0x2d56('17')]());async function implement(){console[_0x2d56('3')](_0x2d56('18')+$[_0x2d56('11')]+_0x2d56('19'));await UserById();}function UserById(){let _0x136d83=Get_request(_0x2d56('1a'));return new Promise((_0xc75732,_0x5a07b9)=>{$[_0x2d56('1b')](_0x136d83,async(_0x16e5e9,_0x2ee786,_0x5d34ef)=>{try{if(_0x16e5e9){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('1d'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('1d');}else{let _0x36978c=JSON[_0x2d56('1e')](_0x5d34ef);if(_0x36978c[_0x2d56('2')]==0xc8){if($[_0x2d56('11')]==0x1){if(_0x36978c[_0x2d56('1f')][_0x2d56('20')]!=_0x2d56('21')){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('22'));return;}else{UserId=_0x36978c[_0x2d56('1f')]['\x69\x64'];await RecommendList();await listCoin();}}else{if(_0x36978c[_0x2d56('1f')][_0x2d56('20')]==UserId){await RecommendList();await listCoin();}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('23'));}}}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('24')+_0x36978c[_0x2d56('25')]);}}}catch(_0x402e16){console[_0x2d56('3')](_0x402e16,_0x2ee786);}finally{_0xc75732();}});});}function RecommendList(){let _0x4d842a=Get_request(_0x2d56('26'));return new Promise((_0x2b9327,_0x1371de)=>{$[_0x2d56('1b')](_0x4d842a,async(_0x4e1ff8,_0x41468f,_0x3e847d)=>{try{if(_0x4e1ff8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('27'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('27');}else{let _0x36ca1c=JSON[_0x2d56('1e')](_0x3e847d);if(_0x36ca1c[_0x2d56('2')]==0xc8){let _0x1fe7d3=Math[_0x2d56('28')](Math[_0x2d56('29')]()*0x9);await getToken(_0x36ca1c[_0x2d56('1f')][_0x1fe7d3][_0x2d56('2a')]['\x69\x64']);}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2b')+_0x36ca1c[_0x2d56('25')]);}}}catch(_0x2d2dd7){console[_0x2d56('3')](_0x2d2dd7,_0x41468f);}finally{_0x2b9327();}});});}function DrawRecord(_0x178389){let _0x514c83=Post_request(_0x2d56('2c'),'');return new Promise((_0x4990e3,_0x2eddf6)=>{$[_0x2d56('2d')](_0x514c83,async(_0x2cd999,_0xac7315,_0x2bc298)=>{try{if(_0x2cd999){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2e'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2e');}else{let _0x3fdff4=JSON[_0x2d56('1e')](_0x2bc298);if(_0x3fdff4[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('2f'));await watchReport(_0x2d56('30')+_0x178389+'\x22\x7d');}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('31')+_0x3fdff4[_0x2d56('25')]);}}}catch(_0x4b0e52){console[_0x2d56('3')](_0x4b0e52,_0xac7315);}finally{_0x4990e3();}});});}function getToken(_0xfafa95){let _0x3afbf0=Get_request(_0x2d56('32')+_0xfafa95);return new Promise((_0x1c67ce,_0x13c8e9)=>{$[_0x2d56('1b')](_0x3afbf0,async(_0x14bc9b,_0x133fbd,_0xb0846f)=>{try{if(_0x14bc9b){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('33'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('33');}else{let _0xb71bf0=JSON[_0x2d56('1e')](_0xb0846f);if(_0xb71bf0[_0x2d56('2')]==0xc8){await DrawRecord(_0xb71bf0[_0x2d56('1f')][_0x2d56('10')]);}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('34')+_0xb71bf0[_0x2d56('25')]);}}}catch(_0x2689b4){console[_0x2d56('3')](_0x2689b4,_0x133fbd);}finally{_0x1c67ce();}});});}function watchReport(_0x2e4bbc){let _0x119f90=Post_request(_0x2d56('35'),_0x2e4bbc);return new Promise((_0x2699bb,_0x37f9d9)=>{$[_0x2d56('2d')](_0x119f90,async(_0x20f6b4,_0x225767,_0x13e03d)=>{try{if(_0x20f6b4){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('36'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('36');}else{let _0x4e0af9=JSON[_0x2d56('1e')](_0x13e03d);if(_0x4e0af9[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('37')+_0x4e0af9[_0x2d56('25')]);await todaytime();}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('37')+_0x4e0af9[_0x2d56('25')]);}}}catch(_0x1af1bf){console[_0x2d56('3')](_0x1af1bf,_0x225767);}finally{_0x2699bb();}});});}function todaytime(){let _0xcf51b1=Get_request(_0x2d56('38'));return new Promise((_0x2c4eac,_0x3507b9)=>{$[_0x2d56('1b')](_0xcf51b1,async(_0x2b853b,_0x585ab4,_0x27c878)=>{try{if(_0x2b853b){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('39'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3a');}else{let _0x7a5661=JSON[_0x2d56('1e')](_0x27c878);if(_0x7a5661[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3b')+_0x7a5661[_0x2d56('1f')]+'\x20\u79d2');}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3c')+_0x7a5661[_0x2d56('25')]);}}}catch(_0x558a2a){console[_0x2d56('3')](_0x558a2a,_0x585ab4);}finally{_0x2c4eac();}});});}function listCoin(){let _0x4fa69d=Post_request(_0x2d56('3d'),_0x2d56('3e'));return new Promise((_0x2e772b,_0x50b682)=>{$[_0x2d56('2d')](_0x4fa69d,async(_0x56274e,_0x4c6120,_0x1b9d83)=>{try{if(_0x56274e){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3f'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('3f');}else{let _0x3dbbaa=JSON[_0x2d56('1e')](_0x1b9d83);if(_0x3dbbaa[_0x2d56('2')]==0xc8){if(_0x3dbbaa[_0x2d56('1f')]!=null){for(let _0xa62adf of _0x3dbbaa[_0x2d56('1f')][0x0]){if(_0xa62adf[_0x2d56('40')]==0x0){await upCoin(_0xa62adf['\x69\x64']);}}}}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('41')+_0x3dbbaa[_0x2d56('25')]);}}}catch(_0x4270f0){console[_0x2d56('3')](_0x4270f0,_0x4c6120);}finally{_0x2e772b();}});});}function upCoin(_0x5aba6a){let _0x3212e4=Post_request(_0x2d56('42')+_0x5aba6a,'');return new Promise((_0x59f3cd,_0x316730)=>{$[_0x2d56('2d')](_0x3212e4,async(_0x3a8324,_0x1703ed,_0x409de1)=>{try{if(_0x3a8324){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('43'));subTitle+=_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('43');}else{let _0x5a86cf=JSON[_0x2d56('1e')](_0x409de1);if(_0x5a86cf[_0x2d56('2')]==0xc8){console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('44'));}else{console[_0x2d56('3')](_0x2d56('1c')+$[_0x2d56('11')]+_0x2d56('45')+_0x5a86cf[_0x2d56('25')]);}}}catch(_0x49a2dc){console[_0x2d56('3')](_0x49a2dc,_0x1703ed);}finally{_0x59f3cd();}});});}function Post_request(_0x4b560e,_0x337e3f){return{'\x75\x72\x6c':_0x2d56('46')+_0x4b560e,'\x68\x65\x61\x64\x65\x72\x73':{'user-agent':_0x2d56('47'),'userid':userid,'accept-encoding':_0x2d56('48'),'host':_0x2d56('49'),'authorization':token,'apptype':'\x31','Content-Type':_0x2d56('4a')},'\x62\x6f\x64\x79':_0x337e3f};};function Get_request(_0x5ec1a1){return{'\x75\x72\x6c':_0x2d56('46')+_0x5ec1a1,'\x68\x65\x61\x64\x65\x72\x73':{'user-agent':_0x2d56('47'),'userid':userid,'accept-encoding':_0x2d56('48'),'host':_0x2d56('49'),'authorization':token,'apptype':'\x31','content-type':_0x2d56('4a')}};};;_0xodA='jsjiami.com.v6'; 47 | 48 | 49 | function Env(t, e) { 50 | class s { 51 | constructor(t) { 52 | this.env = t 53 | } 54 | send(t, e = "GET") { 55 | t = "string" == typeof t ? { 56 | url: t 57 | } : t; 58 | let s = this.get; 59 | return "POST" === e && (s = this.post), new Promise((e, i) => { 60 | s.call(this, t, (t, s, r) => { 61 | t ? i(t) : e(s) 62 | }) 63 | }) 64 | } 65 | get(t) { 66 | return this.send.call(this.env, t) 67 | } 68 | post(t) { 69 | return this.send.call(this.env, t, "POST") 70 | } 71 | } 72 | return new class { 73 | constructor(t, e) { 74 | this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) 75 | } 76 | isNode() { 77 | return "undefined" != typeof module && !!module.exports 78 | } 79 | isQuanX() { 80 | return "undefined" != typeof $task 81 | } 82 | isSurge() { 83 | return "undefined" != typeof $httpClient && "undefined" == typeof $loon 84 | } 85 | isLoon() { 86 | return "undefined" != typeof $loon 87 | } 88 | toObj(t, e = null) { 89 | try { 90 | return JSON.parse(t) 91 | } catch { 92 | return e 93 | } 94 | } 95 | toStr(t, e = null) { 96 | try { 97 | return JSON.stringify(t) 98 | } catch { 99 | return e 100 | } 101 | } 102 | getjson(t, e) { 103 | let s = e; 104 | const i = this.getdata(t); 105 | if (i) try { 106 | s = JSON.parse(this.getdata(t)) 107 | } catch {} 108 | return s 109 | } 110 | setjson(t, e) { 111 | try { 112 | return this.setdata(JSON.stringify(t), e) 113 | } catch { 114 | return !1 115 | } 116 | } 117 | getScript(t) { 118 | return new Promise(e => { 119 | this.get({ 120 | url: t 121 | }, (t, s, i) => e(i)) 122 | }) 123 | } 124 | runScript(t, e) { 125 | return new Promise(s => { 126 | let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); 127 | i = i ? i.replace(/\n/g, "").trim() : i; 128 | let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); 129 | r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; 130 | const [o, h] = i.split("@"), a = { 131 | url: `http://${h}/v1/scripting/evaluate`, 132 | body: { 133 | script_text: t, 134 | mock_type: "cron", 135 | timeout: r 136 | }, 137 | headers: { 138 | "X-Key": o, 139 | Accept: "*/*" 140 | } 141 | }; 142 | this.post(a, (t, e, i) => s(i)) 143 | }).catch(t => this.logErr(t)) 144 | } 145 | loaddata() { 146 | if (!this.isNode()) return {}; { 147 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 148 | const t = this.path.resolve(this.dataFile), 149 | e = this.path.resolve(process.cwd(), this.dataFile), 150 | s = this.fs.existsSync(t), 151 | i = !s && this.fs.existsSync(e); 152 | if (!s && !i) return {}; { 153 | const i = s ? t : e; 154 | try { 155 | return JSON.parse(this.fs.readFileSync(i)) 156 | } catch (t) { 157 | return {} 158 | } 159 | } 160 | } 161 | } 162 | writedata() { 163 | if (this.isNode()) { 164 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 165 | const t = this.path.resolve(this.dataFile), 166 | e = this.path.resolve(process.cwd(), this.dataFile), 167 | s = this.fs.existsSync(t), 168 | i = !s && this.fs.existsSync(e), 169 | r = JSON.stringify(this.data); 170 | s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) 171 | } 172 | } 173 | lodash_get(t, e, s) { 174 | const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); 175 | let r = t; 176 | for (const t of i) 177 | if (r = Object(r)[t], void 0 === r) return s; 178 | return r 179 | } 180 | lodash_set(t, e, s) { 181 | return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) 182 | } 183 | getdata(t) { 184 | let e = this.getval(t); 185 | if (/^@/.test(t)) { 186 | const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; 187 | if (r) try { 188 | const t = JSON.parse(r); 189 | e = t ? this.lodash_get(t, i, "") : e 190 | } catch (t) { 191 | e = "" 192 | } 193 | } 194 | return e 195 | } 196 | setdata(t, e) { 197 | let s = !1; 198 | if (/^@/.test(e)) { 199 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; 200 | try { 201 | const e = JSON.parse(h); 202 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) 203 | } catch (e) { 204 | const o = {}; 205 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) 206 | } 207 | } else s = this.setval(t, e); 208 | return s 209 | } 210 | getval(t) { 211 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null 212 | } 213 | setval(t, e) { 214 | return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null 215 | } 216 | initGotEnv(t) { 217 | this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) 218 | } 219 | get(t, e = (() => {})) { 220 | t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 221 | "X-Surge-Skip-Scripting": !1 222 | })), $httpClient.get(t, (t, s, i) => { 223 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 224 | })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 225 | hints: !1 226 | })), $task.fetch(t).then(t => { 227 | const { 228 | statusCode: s, 229 | statusCode: i, 230 | headers: r, 231 | body: o 232 | } = t; 233 | e(null, { 234 | status: s, 235 | statusCode: i, 236 | headers: r, 237 | body: o 238 | }, o) 239 | }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { 240 | try { 241 | if (t.headers["set-cookie"]) { 242 | const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); 243 | this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar 244 | } 245 | } catch (t) { 246 | this.logErr(t) 247 | } 248 | }).then(t => { 249 | const { 250 | statusCode: s, 251 | statusCode: i, 252 | headers: r, 253 | body: o 254 | } = t; 255 | e(null, { 256 | status: s, 257 | statusCode: i, 258 | headers: r, 259 | body: o 260 | }, o) 261 | }, t => { 262 | const { 263 | message: s, 264 | response: i 265 | } = t; 266 | e(s, i, i && i.body) 267 | })) 268 | } 269 | post(t, e = (() => {})) { 270 | if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 271 | "X-Surge-Skip-Scripting": !1 272 | })), $httpClient.post(t, (t, s, i) => { 273 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 274 | }); 275 | else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 276 | hints: !1 277 | })), $task.fetch(t).then(t => { 278 | const { 279 | statusCode: s, 280 | statusCode: i, 281 | headers: r, 282 | body: o 283 | } = t; 284 | e(null, { 285 | status: s, 286 | statusCode: i, 287 | headers: r, 288 | body: o 289 | }, o) 290 | }, t => e(t)); 291 | else if (this.isNode()) { 292 | this.initGotEnv(t); 293 | const { 294 | url: s, 295 | ...i 296 | } = t; 297 | this.got.post(s, i).then(t => { 298 | const { 299 | statusCode: s, 300 | statusCode: i, 301 | headers: r, 302 | body: o 303 | } = t; 304 | e(null, { 305 | status: s, 306 | statusCode: i, 307 | headers: r, 308 | body: o 309 | }, o) 310 | }, t => { 311 | const { 312 | message: s, 313 | response: i 314 | } = t; 315 | e(s, i, i && i.body) 316 | }) 317 | } 318 | } 319 | time(t) { 320 | let e = { 321 | "M+": (new Date).getMonth() + 1, 322 | "d+": (new Date).getDate(), 323 | "H+": (new Date).getHours(), 324 | "m+": (new Date).getMinutes(), 325 | "s+": (new Date).getSeconds(), 326 | "q+": Math.floor(((new Date).getMonth() + 3) / 3), 327 | S: (new Date).getMilliseconds() 328 | }; 329 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); 330 | for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); 331 | return t 332 | } 333 | msg(e = t, s = "", i = "", r) { 334 | const o = t => { 335 | if (!t) return t; 336 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { 337 | "open-url": t 338 | } : this.isSurge() ? { 339 | url: t 340 | } : void 0; 341 | if ("object" == typeof t) { 342 | if (this.isLoon()) { 343 | let e = t.openUrl || t.url || t["open-url"], 344 | s = t.mediaUrl || t["media-url"]; 345 | return { 346 | openUrl: e, 347 | mediaUrl: s 348 | } 349 | } 350 | if (this.isQuanX()) { 351 | let e = t["open-url"] || t.url || t.openUrl, 352 | s = t["media-url"] || t.mediaUrl; 353 | return { 354 | "open-url": e, 355 | "media-url": s 356 | } 357 | } 358 | if (this.isSurge()) { 359 | let e = t.url || t.openUrl || t["open-url"]; 360 | return { 361 | url: e 362 | } 363 | } 364 | } 365 | }; 366 | this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); 367 | let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; 368 | h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) 369 | } 370 | log(...t) { 371 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) 372 | } 373 | logErr(t, e) { 374 | const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); 375 | s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) 376 | } 377 | wait(t) { 378 | return new Promise(e => setTimeout(e, t)) 379 | } 380 | done(t = {}) { 381 | const e = (new Date).getTime(), 382 | s = (e - this.startTime) / 1e3; 383 | this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) 384 | } 385 | }(t, e) 386 | } -------------------------------------------------------------------------------- /app_khz.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | 项目名称:垦荒者 4 | 5 | 卷轴模式,怎么玩我还不知道,交易和之前那个达赏交易一起的 6 | 7 | 好像是兑换到交易所然后卖的 8 | 9 | 需要人脸实名 10 | 11 | 想玩的就玩,不需要的就不要理 12 | 13 | 变量填写 14 | 15 | 变量名:soy_khz_data 16 | 变量值:抓包的请求头上token值(注意:不要Bearer和空格) 17 | 18 | 脚本地址:https://gitee.com/soy-tool/app-script/rawmaster/app_khz.js 19 | 20 | */ 21 | 22 | 23 | const $ = new Env('【垦荒者】版本:22/03/15_0'); 24 | const notify = $.isNode() ? require('./sendNotify') : ''; 25 | 26 | 27 | var _0xod1='jsjiami.com.v6',_0xod1_=['_0xod1'],_0x3467=[_0xod1,'\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73','\x6c\x6f\x67','\x0a\u3010\x73\x6f\x79\u811a\u672c\u6587\u4ef6\u514d\u8d23\u58f0\u660e\u3011\uff1a\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u53ea\u7528\u4e8e\u5174\u8da3\u4ea4\u6d41\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u4efb\u4f55\u4eba\u4e0d\u5f97\u7528\u4e8e\u5546\u4e1a\u4ee5\u53ca\u975e\u6cd5\u7528\u9014\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u4e0b\u8f7d\u8bd5\u7528\u540e\x32\x34\u5c0f\u65f6\u5185\u81ea\u884c\u5220\u9664\x0a\x2d\x2d\x2d\u56e0\u4f7f\u7528\u811a\u672c\u6587\u4ef6\u9020\u6210\u4f7f\u7528\u8005\u4ee5\u53ca\u4efb\u4f55\u7f51\u7ad9\u5e73\u53f0\u7684\u4e00\u5207\u635f\u5931\u7686\u7531\u4f7f\u7528\u8005\u627f\u62c5\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u5982\u6709\u4e0d\u614e\u88ab\u7834\u89e3\u6216\u4fee\u6539\u7686\u6709\u7834\u89e3\u6216\u4fee\u6539\u8005\u627f\u62c5\x0a\x2d\x2d\x2d\u5982\u4e0d\u63a5\u53d7\u6b64\u6761\u6b3e\u8bf7\u7acb\u5373\u5220\u9664\u811a\u672c\u6587\u4ef6','\x69\x73\x4e\x6f\x64\x65','\x65\x6e\x76','\x73\x6f\x79\x5f\x6b\x68\x7a\x5f\x64\x61\x74\x61','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\u3011\uff1a\u672a\u586b\u5199\u76f8\u5e94\u53d8\u91cf\x20\x73\x6f\x79\x5f\x6b\x68\x7a\x5f\x64\x61\x74\x61','\x69\x6e\x64\x65\x78\x4f\x66','\x73\x70\x6c\x69\x74','\x0a\x3d\x3d\x3d\x20\u811a\u672c\u6267\u884c\x20\x2d\x20\u5317\u4eac\u65f6\u95f4\uff1a','\x67\x65\x74\x54\x69\x6d\x65','\x67\x65\x74\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x4f\x66\x66\x73\x65\x74','\x74\x6f\x4c\x6f\x63\x61\x6c\x65\x53\x74\x72\x69\x6e\x67','\x20\x3d\x3d\x3d\x0a','\x3d\x3d\x3d\u3010\u5171\x20','\x6c\x65\x6e\x67\x74\x68','\x20\u4e2a\u8d26\u53f7\u3011\x3d\x3d\x3d\x0a','\x69\x6e\x64\x65\x78','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x6e\x61\x6d\x65','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\u5f00\u59cb\u3010\u7b2c\x20','\x20\u4e2a\u8d26\u53f7\u4efb\u52a1\u3011','\x6a\x69\x61\x64\x69\x61\x6e\x2d\x70\x6f\x77\x65\x72\x2f\x61\x64\x76\x65\x72\x74\x69\x73\x65\x2f\x63\x68\x65\x63\x6b\x5f\x73\x68\x6f\x77\x5f\x61\x64\x76\x65\x72\x74\x5f\x63\x6f\x75\x6e\x74','\x67\x65\x74','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\x2d\x2d\x2d\u8d26\u53f7\x20','\x20\u67e5\u8be2\u72b6\u6001\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x70\x61\x72\x73\x65','\x63\x6f\x64\x65','\x64\x61\x74\x61','\x20\u67e5\u8be2\u72b6\u6001\u3011\x3a\x20','\x6d\x73\x67','\x6a\x69\x61\x64\x69\x61\x6e\x2d\x70\x6f\x77\x65\x72\x2f\x61\x64\x76\x65\x72\x74\x69\x73\x65\x2f\x63\x6f\x6e\x66\x69\x72\x6d\x5f\x73\x68\x6f\x77\x5f\x61\x64\x76\x65\x72\x74','\x7b\x22\x61\x64\x54\x79\x70\x65\x22\x3a\x22\x31\x30\x30\x38\x36\x22\x2c\x22\x63\x68\x65\x63\x6b\x53\x74\x72\x69\x6e\x67\x22\x3a\x22\x64\x32\x63\x35\x39\x63\x30\x31\x37\x32\x32\x63\x34\x38\x38\x64\x38\x62\x30\x38\x61\x39\x39\x66\x39\x33\x37\x34\x66\x30\x36\x37\x22\x2c\x22\x74\x79\x70\x65\x22\x3a\x22\x32\x22\x7d','\x70\x6f\x73\x74','\x20\u89c2\u770b\u5e7f\u544a\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u89c2\u770b\u5e7f\u544a\u3011\x3a\x20','\x77\x61\x69\x74','\x66\x6c\x6f\x6f\x72','\x72\x61\x6e\x64\x6f\x6d','\x6a\x69\x61\x64\x69\x61\x6e\x2d\x70\x6f\x77\x65\x72\x2f\x70\x6f\x77\x65\x72\x2f\x67\x65\x74\x2f\x70\x6f\x77\x65\x72\x2f\x70\x61\x67\x65\x3f\x70\x61\x67\x65\x4e\x75\x6d\x62\x65\x72\x3d\x31\x26\x70\x61\x67\x65\x53\x69\x7a\x65\x3d\x31\x30','\x20\u67e5\u8be2\u9886\u53d6\u5217\u8868\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x72\x65\x63\x6f\x72\x64\x73','\x63\x72\x65\x61\x74\x65\x44\x61\x74\x65','\x67\x65\x74\x44\x61\x74\x65','\x20\u67e5\u8be2\u72b6\u6001\u3011\x3a\x20\u4eca\u65e5\u4efb\u52a1\u5df2\u5b8c\u6210','\x20\u67e5\u8be2\u9886\u53d6\u5217\u8868\u3011\x3a\x20\u67e5\u8be2\u5931\u8d25','\x6a\x69\x61\x64\x69\x61\x6e\x2d\x70\x6f\x77\x65\x72\x2f\x70\x6f\x77\x65\x72\x2f\x67\x72\x61\x6e\x74\x2f\x70\x6f\x77\x65\x72','\x20\u9886\u53d6\u6536\u76ca\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u9886\u53d6\u6536\u76ca\u3011\x3a\x20','\x68\x74\x74\x70\x3a\x2f\x2f\x6b\x65\x6e\x2e\x6e\x75\x6f\x66\x61\x6e\x67\x74\x69\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f','\x55\x53\x45\x52','\x42\x65\x61\x72\x65\x72\x20','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x3b\x63\x68\x61\x72\x73\x65\x74\x3d\x55\x54\x46\x2d\x38','\x6b\x65\x6e\x2e\x6e\x75\x6f\x66\x61\x6e\x67\x74\x69\x2e\x63\x6f\x6d','\x4b\x65\x65\x70\x2d\x41\x6c\x69\x76\x65','\x67\x7a\x69\x70','\x6f\x6b\x68\x74\x74\x70\x2f\x34\x2e\x39\x2e\x30','\x66\x6a\x77\x73\x6a\x65\x69\x4a\x61\x6d\x44\x69\x59\x2e\x63\x47\x6f\x66\x59\x6d\x2e\x76\x36\x44\x56\x67\x55\x3d\x3d'];function _0x1ea3(_0x188b1d,_0x523ef0){_0x188b1d=~~'0x'['concat'](_0x188b1d['slice'](0x0));var _0x3671c0=_0x3467[_0x188b1d];return _0x3671c0;};(function(_0xc2158c,_0x105934){var _0x2b0a0f=0x0;for(_0x105934=_0xc2158c['shift'](_0x2b0a0f>>0x2);_0x105934&&_0x105934!==(_0xc2158c['pop'](_0x2b0a0f>>0x3)+'')['replace'](/[fweJDYGfYDVgU=]/g,'');_0x2b0a0f++){_0x2b0a0f=_0x2b0a0f^0xd75ad;}}(_0x3467,_0x1ea3));const crypto=require(_0x1ea3('0'));let app_soy_khz_data=[],soy_khz_UA='';console[_0x1ea3('1')](_0x1ea3('2'));!(async()=>{if($[_0x1ea3('3')]()){if(!process[_0x1ea3('4')][_0x1ea3('5')]){console[_0x1ea3('1')](_0x1ea3('6'));return;}if(process[_0x1ea3('4')][_0x1ea3('5')]&&process[_0x1ea3('4')][_0x1ea3('5')][_0x1ea3('7')]('\x0a')>-0x1){app_soy_khz_data=process[_0x1ea3('4')][_0x1ea3('5')][_0x1ea3('8')]('\x0a');}else if(process[_0x1ea3('4')][_0x1ea3('5')]&&process[_0x1ea3('4')][_0x1ea3('5')][_0x1ea3('7')]('\x23')>-0x1){app_soy_khz_data=process[_0x1ea3('4')][_0x1ea3('5')][_0x1ea3('8')]('\x23');}else{app_soy_khz_data=process[_0x1ea3('4')][_0x1ea3('5')][_0x1ea3('8')]();};}console[_0x1ea3('1')](_0x1ea3('9')+new Date(new Date()[_0x1ea3('a')]()+new Date()[_0x1ea3('b')]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[_0x1ea3('c')]()+_0x1ea3('d'));console[_0x1ea3('1')](_0x1ea3('e')+app_soy_khz_data[_0x1ea3('f')]+_0x1ea3('10'));subTitle='';for(i=0x0;i$[_0x1ea3('15')](_0x4fb68e))[_0x1ea3('16')](()=>$[_0x1ea3('17')]());async function implement(){console[_0x1ea3('1')](_0x1ea3('18')+$[_0x1ea3('11')]+_0x1ea3('19'));await advert_count();}function advert_count(){let _0x1f5974=Get_request(_0x1ea3('1a'));return new Promise((_0x2093cf,_0x22f7f3)=>{$[_0x1ea3('1b')](_0x1f5974,async(_0x2e821c,_0x23fc83,_0x31db3a)=>{try{if(_0x2e821c){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('1d'));subTitle+=_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('1d');}else{let _0x43560b=JSON[_0x1ea3('1e')](_0x31db3a);if(_0x43560b[_0x1ea3('1f')]==0xc8){if(_0x43560b[_0x1ea3('20')]<0x6){await show_advert();}else{await power_page();}}else{console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('21')+_0x43560b[_0x1ea3('22')]);}}}catch(_0xcfb101){console[_0x1ea3('1')](_0xcfb101,_0x23fc83);}finally{_0x2093cf();}});});}function show_advert(){let _0x29f16a=Post_request(_0x1ea3('23'),_0x1ea3('24'));return new Promise((_0x46a972,_0x3d5d72)=>{$[_0x1ea3('25')](_0x29f16a,async(_0x3e9a60,_0x427f6f,_0x1069ed)=>{try{if(_0x3e9a60){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('26'));subTitle+=_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('26');}else{let _0x4741ab=JSON[_0x1ea3('1e')](_0x1069ed);if(_0x4741ab[_0x1ea3('1f')]==0xc8){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('27')+_0x4741ab[_0x1ea3('22')]);await $[_0x1ea3('28')](Math[_0x1ea3('29')](Math[_0x1ea3('2a')]()*(0x6d60-0x61a8+0x3e8)+0x61a8));await advert_count();}else{console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('27')+_0x4741ab[_0x1ea3('22')]);}}}catch(_0x4865f5){console[_0x1ea3('1')](_0x4865f5,_0x427f6f);}finally{_0x46a972();}});});}function power_page(){let _0x1ec138=Get_request(_0x1ea3('2b'));return new Promise((_0x18c62a,_0x5f20bc)=>{$[_0x1ea3('1b')](_0x1ec138,async(_0x4f2c63,_0x9b006,_0x44d4d6)=>{try{if(_0x4f2c63){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('2c'));subTitle+=_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('2c');}else{let _0x435480=JSON[_0x1ea3('1e')](_0x44d4d6);if(_0x435480[_0x1ea3('1f')]==0xc8){if(_0x435480[_0x1ea3('20')][_0x1ea3('2d')][0x0][_0x1ea3('2e')][_0x1ea3('7')](new Date()[_0x1ea3('2f')]())>-0x1){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('30'));}else{await grant_power();}}else{console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('31'));}}}catch(_0x5387d9){console[_0x1ea3('1')](_0x5387d9,_0x9b006);}finally{_0x18c62a();}});});}function grant_power(){let _0x5796d5=Post_request(_0x1ea3('32'),'\x7b\x7d');return new Promise((_0x2ab4bd,_0x3396ed)=>{$[_0x1ea3('25')](_0x5796d5,async(_0x390c21,_0x3f9383,_0x230a67)=>{try{if(_0x390c21){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('33'));subTitle+=_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('33');}else{let _0x1eacf2=JSON[_0x1ea3('1e')](_0x230a67);if(_0x1eacf2[_0x1ea3('1f')]==0xc8){console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('34')+_0x1eacf2[_0x1ea3('22')]);}else{console[_0x1ea3('1')](_0x1ea3('1c')+$[_0x1ea3('11')]+_0x1ea3('34')+_0x1eacf2[_0x1ea3('22')]);}}}catch(_0x5b9fb2){console[_0x1ea3('1')](_0x5b9fb2,_0x3f9383);}finally{_0x2ab4bd();}});});}function Post_request(_0xfc8804,_0x36215e){return{'\x75\x72\x6c':_0x1ea3('35')+_0xfc8804,'\x68\x65\x61\x64\x65\x72\x73':{'token_type':_0x1ea3('36'),'Authorization':_0x1ea3('37')+token,'token':_0x1ea3('37')+token,'Content-Type':_0x1ea3('38'),'Content-Length':_0x36215e[_0x1ea3('f')],'Host':_0x1ea3('39'),'Connection':_0x1ea3('3a'),'Accept-Encoding':_0x1ea3('3b'),'User-Agent':_0x1ea3('3c')},'\x62\x6f\x64\x79':_0x36215e};};function Get_request(_0x3ca4e7){return{'\x75\x72\x6c':_0x1ea3('35')+_0x3ca4e7,'\x68\x65\x61\x64\x65\x72\x73':{'token_type':_0x1ea3('36'),'Authorization':_0x1ea3('37')+token,'token':_0x1ea3('37')+token,'Content-Type':_0x1ea3('38'),'Content-Length':0x0,'Host':_0x1ea3('39'),'Connection':_0x1ea3('3a'),'Accept-Encoding':_0x1ea3('3b'),'User-Agent':_0x1ea3('3c')}};};;_0xod1='jsjiami.com.v6'; 28 | 29 | 30 | 31 | function Env(t, e) { 32 | class s { 33 | constructor(t) { 34 | this.env = t 35 | } 36 | send(t, e = "GET") { 37 | t = "string" == typeof t ? { 38 | url: t 39 | } : t; 40 | let s = this.get; 41 | return "POST" === e && (s = this.post), new Promise((e, i) => { 42 | s.call(this, t, (t, s, r) => { 43 | t ? i(t) : e(s) 44 | }) 45 | }) 46 | } 47 | get(t) { 48 | return this.send.call(this.env, t) 49 | } 50 | post(t) { 51 | return this.send.call(this.env, t, "POST") 52 | } 53 | } 54 | return new class { 55 | constructor(t, e) { 56 | this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) 57 | } 58 | isNode() { 59 | return "undefined" != typeof module && !!module.exports 60 | } 61 | isQuanX() { 62 | return "undefined" != typeof $task 63 | } 64 | isSurge() { 65 | return "undefined" != typeof $httpClient && "undefined" == typeof $loon 66 | } 67 | isLoon() { 68 | return "undefined" != typeof $loon 69 | } 70 | toObj(t, e = null) { 71 | try { 72 | return JSON.parse(t) 73 | } catch { 74 | return e 75 | } 76 | } 77 | toStr(t, e = null) { 78 | try { 79 | return JSON.stringify(t) 80 | } catch { 81 | return e 82 | } 83 | } 84 | getjson(t, e) { 85 | let s = e; 86 | const i = this.getdata(t); 87 | if (i) try { 88 | s = JSON.parse(this.getdata(t)) 89 | } catch {} 90 | return s 91 | } 92 | setjson(t, e) { 93 | try { 94 | return this.setdata(JSON.stringify(t), e) 95 | } catch { 96 | return !1 97 | } 98 | } 99 | getScript(t) { 100 | return new Promise(e => { 101 | this.get({ 102 | url: t 103 | }, (t, s, i) => e(i)) 104 | }) 105 | } 106 | runScript(t, e) { 107 | return new Promise(s => { 108 | let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); 109 | i = i ? i.replace(/\n/g, "").trim() : i; 110 | let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); 111 | r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; 112 | const [o, h] = i.split("@"), a = { 113 | url: `http://${h}/v1/scripting/evaluate`, 114 | body: { 115 | script_text: t, 116 | mock_type: "cron", 117 | timeout: r 118 | }, 119 | headers: { 120 | "X-Key": o, 121 | Accept: "*/*" 122 | } 123 | }; 124 | this.post(a, (t, e, i) => s(i)) 125 | }).catch(t => this.logErr(t)) 126 | } 127 | loaddata() { 128 | if (!this.isNode()) return {}; { 129 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 130 | const t = this.path.resolve(this.dataFile), 131 | e = this.path.resolve(process.cwd(), this.dataFile), 132 | s = this.fs.existsSync(t), 133 | i = !s && this.fs.existsSync(e); 134 | if (!s && !i) return {}; { 135 | const i = s ? t : e; 136 | try { 137 | return JSON.parse(this.fs.readFileSync(i)) 138 | } catch (t) { 139 | return {} 140 | } 141 | } 142 | } 143 | } 144 | writedata() { 145 | if (this.isNode()) { 146 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 147 | const t = this.path.resolve(this.dataFile), 148 | e = this.path.resolve(process.cwd(), this.dataFile), 149 | s = this.fs.existsSync(t), 150 | i = !s && this.fs.existsSync(e), 151 | r = JSON.stringify(this.data); 152 | s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) 153 | } 154 | } 155 | lodash_get(t, e, s) { 156 | const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); 157 | let r = t; 158 | for (const t of i) 159 | if (r = Object(r)[t], void 0 === r) return s; 160 | return r 161 | } 162 | lodash_set(t, e, s) { 163 | return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) 164 | } 165 | getdata(t) { 166 | let e = this.getval(t); 167 | if (/^@/.test(t)) { 168 | const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; 169 | if (r) try { 170 | const t = JSON.parse(r); 171 | e = t ? this.lodash_get(t, i, "") : e 172 | } catch (t) { 173 | e = "" 174 | } 175 | } 176 | return e 177 | } 178 | setdata(t, e) { 179 | let s = !1; 180 | if (/^@/.test(e)) { 181 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; 182 | try { 183 | const e = JSON.parse(h); 184 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) 185 | } catch (e) { 186 | const o = {}; 187 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) 188 | } 189 | } else s = this.setval(t, e); 190 | return s 191 | } 192 | getval(t) { 193 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null 194 | } 195 | setval(t, e) { 196 | return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null 197 | } 198 | initGotEnv(t) { 199 | this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) 200 | } 201 | get(t, e = (() => {})) { 202 | t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 203 | "X-Surge-Skip-Scripting": !1 204 | })), $httpClient.get(t, (t, s, i) => { 205 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 206 | })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 207 | hints: !1 208 | })), $task.fetch(t).then(t => { 209 | const { 210 | statusCode: s, 211 | statusCode: i, 212 | headers: r, 213 | body: o 214 | } = t; 215 | e(null, { 216 | status: s, 217 | statusCode: i, 218 | headers: r, 219 | body: o 220 | }, o) 221 | }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { 222 | try { 223 | if (t.headers["set-cookie"]) { 224 | const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); 225 | this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar 226 | } 227 | } catch (t) { 228 | this.logErr(t) 229 | } 230 | }).then(t => { 231 | const { 232 | statusCode: s, 233 | statusCode: i, 234 | headers: r, 235 | body: o 236 | } = t; 237 | e(null, { 238 | status: s, 239 | statusCode: i, 240 | headers: r, 241 | body: o 242 | }, o) 243 | }, t => { 244 | const { 245 | message: s, 246 | response: i 247 | } = t; 248 | e(s, i, i && i.body) 249 | })) 250 | } 251 | post(t, e = (() => {})) { 252 | if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 253 | "X-Surge-Skip-Scripting": !1 254 | })), $httpClient.post(t, (t, s, i) => { 255 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 256 | }); 257 | else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 258 | hints: !1 259 | })), $task.fetch(t).then(t => { 260 | const { 261 | statusCode: s, 262 | statusCode: i, 263 | headers: r, 264 | body: o 265 | } = t; 266 | e(null, { 267 | status: s, 268 | statusCode: i, 269 | headers: r, 270 | body: o 271 | }, o) 272 | }, t => e(t)); 273 | else if (this.isNode()) { 274 | this.initGotEnv(t); 275 | const { 276 | url: s, 277 | ...i 278 | } = t; 279 | this.got.post(s, i).then(t => { 280 | const { 281 | statusCode: s, 282 | statusCode: i, 283 | headers: r, 284 | body: o 285 | } = t; 286 | e(null, { 287 | status: s, 288 | statusCode: i, 289 | headers: r, 290 | body: o 291 | }, o) 292 | }, t => { 293 | const { 294 | message: s, 295 | response: i 296 | } = t; 297 | e(s, i, i && i.body) 298 | }) 299 | } 300 | } 301 | time(t) { 302 | let e = { 303 | "M+": (new Date).getMonth() + 1, 304 | "d+": (new Date).getDate(), 305 | "H+": (new Date).getHours(), 306 | "m+": (new Date).getMinutes(), 307 | "s+": (new Date).getSeconds(), 308 | "q+": Math.floor(((new Date).getMonth() + 3) / 3), 309 | S: (new Date).getMilliseconds() 310 | }; 311 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); 312 | for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); 313 | return t 314 | } 315 | msg(e = t, s = "", i = "", r) { 316 | const o = t => { 317 | if (!t) return t; 318 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { 319 | "open-url": t 320 | } : this.isSurge() ? { 321 | url: t 322 | } : void 0; 323 | if ("object" == typeof t) { 324 | if (this.isLoon()) { 325 | let e = t.openUrl || t.url || t["open-url"], 326 | s = t.mediaUrl || t["media-url"]; 327 | return { 328 | openUrl: e, 329 | mediaUrl: s 330 | } 331 | } 332 | if (this.isQuanX()) { 333 | let e = t["open-url"] || t.url || t.openUrl, 334 | s = t["media-url"] || t.mediaUrl; 335 | return { 336 | "open-url": e, 337 | "media-url": s 338 | } 339 | } 340 | if (this.isSurge()) { 341 | let e = t.url || t.openUrl || t["open-url"]; 342 | return { 343 | url: e 344 | } 345 | } 346 | } 347 | }; 348 | this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); 349 | let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; 350 | h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) 351 | } 352 | log(...t) { 353 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) 354 | } 355 | logErr(t, e) { 356 | const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); 357 | s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) 358 | } 359 | wait(t) { 360 | return new Promise(e => setTimeout(e, t)) 361 | } 362 | done(t = {}) { 363 | const e = (new Date).getTime(), 364 | s = (e - this.startTime) / 1e3; 365 | this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) 366 | } 367 | }(t, e) 368 | } -------------------------------------------------------------------------------- /app_xmyd.js: -------------------------------------------------------------------------------- 1 | /* 2 | * TG频道: https://t.me/soy_pull 3 | * TG讨论群: https://t.me/joinchat/8D2_IDN5t0A2ZmM1 4 | * 原作者不知道是谁了,本人只是修复,感谢原作者 5 | */ 6 | 7 | /*小米改运动步数 8 | cron 自己设置,一天下午6-8点1-2次即可,好像第一次不会自动同步,第二步就可以 9 | 10 | 手动添加变量 11 | 12 | 变量名如下,多账号 & 隔开 13 | 14 | ##小米运动手机号 15 | XMYD_phone= 16 | 17 | ##登录密码 18 | XMYD_password= 19 | 20 | ##要修改的步数(可选) 21 | XMYD_STEP 22 | 23 | */ 24 | 25 | 26 | const $ = new Env('小米运动改步数'); 27 | 28 | const notify = $.isNode() ? require('./sendNotify') : ''; 29 | let tz = ($.getval('tz') || '1');//通知 30 | const axios = require("axios"); 31 | $.message = '',app_XMYD_phone=[],app_XMYD_password=[] 32 | let login_token = ''; 33 | //需要修改的运动步数波动范围,脚本默认修改步数范围为1w9到2w5 34 | //const step = Math.ceil(Math.random() * 10000) + 9300; 35 | 36 | if ($.isNode()) { 37 | if (process.env.XMYD_phone && process.env.XMYD_phone.indexOf('&') > -1) { 38 | XMYD_phone = process.env.XMYD_phone.split('&'); 39 | } else{ 40 | XMYD_phone = process.env.XMYD_phone.split(); 41 | }; 42 | 43 | if (process.env.XMYD_password && process.env.XMYD_password.indexOf('&') > -1) { 44 | XMYD_password = process.env.XMYD_password.split('&'); 45 | } else{ 46 | XMYD_password = process.env.XMYD_password.split(); 47 | }; 48 | step=process.env.XMYD_STEP 49 | if(!step||step==''){ 50 | step = Math.ceil(Math.random() * 15000) + 9300; 51 | } 52 | 53 | } else { 54 | if($.getdata('XMYD_phone')&&$.getdata('XMYD_phone').indexOf('&')>-1){ 55 | XMYD_phone=$.getdata('XMYD_phone').split('&'); 56 | }else{ 57 | XMYD_phoned=$.getdata('XMYD_phone').split(); 58 | } 59 | if($.getdata('XMYD_password')&&$.getdata('XMYD_password').indexOf('&')>-1){ 60 | XMYD_password=$.getdata('XMYD_password').split('&'); 61 | }else{ 62 | XMYD_password=$.getdata('XMYD_password').split(); 63 | } 64 | step=$.getdata('XMYD_STEP') 65 | if(!step||step==''){ 66 | step = Math.ceil(Math.random() * 15000) + 9300; 67 | } 68 | 69 | } 70 | 71 | 72 | Object.keys(XMYD_phone).forEach((item) => { 73 | if (XMYD_phone[item]) { 74 | app_XMYD_phone.push(XMYD_phone[item]); 75 | }; 76 | }); 77 | 78 | Object.keys(XMYD_password).forEach((item) => { 79 | if (XMYD_password[item]) { 80 | app_XMYD_password.push(XMYD_password[item]); 81 | }; 82 | }); 83 | const headers = { 84 | 'User-Agent':'Dalvik/2.1.0 (Linux; U; Android 9; MI 6 MIUI/20.6.18)' 85 | } 86 | 87 | !(async () => { 88 | if(!app_XMYD_phone || !app_XMYD_password || app_XMYD_phone.length!=app_XMYD_password.length){ 89 | console.log("\n【小米运动改步数提示】:❌ 手机、密码数量不匹配或者为填写") 90 | $.message +="\n【小米运动改步数提示】:手机、密码数量不匹配或者为填写"+'\n' 91 | }else{ 92 | console.log(`------------- 共${app_XMYD_phone.length}个账号-------------\n`) 93 | for (i = 0; i < app_XMYD_phone.length; i++) { 94 | user=app_XMYD_phone[i] 95 | password=app_XMYD_password[i] 96 | $.index = i + 1; 97 | console.log(`\n开始【执行账号${user}】`) 98 | 99 | await login(user,password) 100 | await exports.main() 101 | } 102 | 103 | } 104 | }) 105 | ().catch((e) => $.logErr(e)) 106 | .finally(() => $.done()) 107 | 108 | let dataJSON = "%5B%7B%22data_hr%22%3A%22%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F9L%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2FVv%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F0v%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F9e%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F0n%5C%2Fa%5C%2F%5C%2F%5C%2FS%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F0b%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F1FK%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2FR%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%2F%5C%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fgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAAfgAA%22%2C%22tz%22%3A32%2C%22did%22%3A%22DA932FFFFE8816E7%22%2C%22src%22%3A24%7D%5D%2C%22summary%22%3A%22%7B%5C%22v%5C%22%3A6%2C%5C%22slp%5C%22%3A%7B%5C%22st%5C%22%3A1628296479%2C%5C%22ed%5C%22%3A1628296479%2C%5C%22dp%5C%22%3A0%2C%5C%22lt%5C%22%3A0%2C%5C%22wk%5C%22%3A0%2C%5C%22usrSt%5C%22%3A-1440%2C%5C%22usrEd%5C%22%3A-1440%2C%5C%22wc%5C%22%3A0%2C%5C%22is%5C%22%3A0%2C%5C%22lb%5C%22%3A0%2C%5C%22to%5C%22%3A0%2C%5C%22dt%5C%22%3A0%2C%5C%22rhr%5C%22%3A0%2C%5C%22ss%5C%22%3A0%7D%2C%5C%22stp%5C%22%3A%7B%5C%22ttl%5C%22%3A18272%2C%5C%22dis%5C%22%3A10627%2C%5C%22cal%5C%22%3A510%2C%5C%22wk%5C%22%3A41%2C%5C%22rn%5C%22%3A50%2C%5C%22runDist%5C%22%3A7654%2C%5C%22runCal%5C%22%3A397%2C%5C%22stage%5C%22%3A%5B%7B%5C%22start%5C%22%3A327%2C%5C%22stop%5C%22%3A341%2C%5C%22mode%5C%22%3A1%2C%5C%22dis%5C%22%3A481%2C%5C%22cal%5C%22%3A13%2C%5C%22step%5C%22%3A680%7D%2C%7B%5C%22start%5C%22%3A342%2C%5C%22stop%5C%22%3A367%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A2295%2C%5C%22cal%5C%22%3A95%2C%5C%22step%5C%22%3A2874%7D%2C%7B%5C%22start%5C%22%3A368%2C%5C%22stop%5C%22%3A377%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A1592%2C%5C%22cal%5C%22%3A88%2C%5C%22step%5C%22%3A1664%7D%2C%7B%5C%22start%5C%22%3A378%2C%5C%22stop%5C%22%3A386%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A1072%2C%5C%22cal%5C%22%3A51%2C%5C%22step%5C%22%3A1245%7D%2C%7B%5C%22start%5C%22%3A387%2C%5C%22stop%5C%22%3A393%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A1036%2C%5C%22cal%5C%22%3A57%2C%5C%22step%5C%22%3A1124%7D%2C%7B%5C%22start%5C%22%3A394%2C%5C%22stop%5C%22%3A398%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A488%2C%5C%22cal%5C%22%3A19%2C%5C%22step%5C%22%3A607%7D%2C%7B%5C%22start%5C%22%3A399%2C%5C%22stop%5C%22%3A414%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A2220%2C%5C%22cal%5C%22%3A120%2C%5C%22step%5C%22%3A2371%7D%2C%7B%5C%22start%5C%22%3A415%2C%5C%22stop%5C%22%3A427%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A1268%2C%5C%22cal%5C%22%3A59%2C%5C%22step%5C%22%3A1489%7D%2C%7B%5C%22start%5C%22%3A428%2C%5C%22stop%5C%22%3A433%2C%5C%22mode%5C%22%3A1%2C%5C%22dis%5C%22%3A152%2C%5C%22cal%5C%22%3A4%2C%5C%22step%5C%22%3A238%7D%2C%7B%5C%22start%5C%22%3A434%2C%5C%22stop%5C%22%3A444%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A2295%2C%5C%22cal%5C%22%3A95%2C%5C%22step%5C%22%3A2874%7D%2C%7B%5C%22start%5C%22%3A445%2C%5C%22stop%5C%22%3A455%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A1592%2C%5C%22cal%5C%22%3A88%2C%5C%22step%5C%22%3A1664%7D%2C%7B%5C%22start%5C%22%3A456%2C%5C%22stop%5C%22%3A466%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A1072%2C%5C%22cal%5C%22%3A51%2C%5C%22step%5C%22%3A1245%7D%2C%7B%5C%22start%5C%22%3A467%2C%5C%22stop%5C%22%3A477%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A1036%2C%5C%22cal%5C%22%3A57%2C%5C%22step%5C%22%3A1124%7D%2C%7B%5C%22start%5C%22%3A478%2C%5C%22stop%5C%22%3A488%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A488%2C%5C%22cal%5C%22%3A19%2C%5C%22step%5C%22%3A607%7D%2C%7B%5C%22start%5C%22%3A489%2C%5C%22stop%5C%22%3A499%2C%5C%22mode%5C%22%3A4%2C%5C%22dis%5C%22%3A2220%2C%5C%22cal%5C%22%3A120%2C%5C%22step%5C%22%3A2371%7D%2C%7B%5C%22start%5C%22%3A500%2C%5C%22stop%5C%22%3A511%2C%5C%22mode%5C%22%3A3%2C%5C%22dis%5C%22%3A1268%2C%5C%22cal%5C%22%3A59%2C%5C%22step%5C%22%3A1489%7D%2C%7B%5C%22start%5C%22%3A512%2C%5C%22stop%5C%22%3A522%2C%5C%22mode%5C%22%3A1%2C%5C%22dis%5C%22%3A152%2C%5C%22cal%5C%22%3A4%2C%5C%22step%5C%22%3A238%7D%5D%7D%2C%5C%22goal%5C%22%3A8000%2C%5C%22tz%5C%22%3A%5C%2228800%5C%22%7D%22%2C%22source%22%3A24%2C%22type%22%3A0%7D%5D"; 109 | 110 | 111 | async function gethttp(params){ 112 | return axios({ 113 | url: params.url, 114 | method: params.method, 115 | headers: params.headers || headers, 116 | data: new URLSearchParams(params.body), 117 | validateStatus: status => { 118 | return status >= 200 && status < 400; 119 | }, 120 | maxRedirects: 0 121 | }) 122 | .then(res => { 123 | return res; 124 | }) 125 | .catch(err => { 126 | console.log(params.url, err) 127 | throw Error(err) 128 | }) 129 | } 130 | 131 | 132 | //登录获取access 133 | async function login(u, p){ 134 | const access_data = await gethttp({ 135 | url: `https://api-user.huami.com/registrations/+86${u}/tokens`, 136 | body: { 137 | "client_id":"HuaMi", 138 | "password": p, 139 | "redirect_uri":"https://s3-us-west-2.amazonaws.com/hm-registration/successsignin.html", 140 | "token":"access", 141 | }, 142 | headers: { 143 | "Content-Type":"application/x-www-form-urlencoded;charset=UTF-8", 144 | "User-Agent":"MiFit/4.6.0 (iPhone; iOS 14.0.1; Scale/2.00)" 145 | }, 146 | method: 'POST', 147 | }) 148 | //console.log(res1.headers.location) 149 | const reg = /(?<=access=).*?(?=&)/; 150 | const codeArr = reg.exec(access_data.headers.location); 151 | 152 | //console.log(codeArr[0]); 153 | if(!codeArr[0]&&codeArr[0]==''&&codeArr[0]==null){ 154 | console.log(`\n【${$.name}---账号${user}】: 获取 access 失败`) 155 | }else{ 156 | console.log(`\n【${$.name}---账号${user}】: access 为 ${codeArr[0]}`) 157 | dl_code=codeArr[0] 158 | 159 | const access_data = await gethttp({ 160 | url: `https://account.huami.com/v2/client/login`, 161 | body: { 162 | "app_name":"com.xiaomi.hm.health", 163 | "app_version":"4.6.0", 164 | "code": dl_code, 165 | "country_code":"CN", 166 | "device_id":"2C8B4939-0CCD-4E94-8CBA-CB8EA6E613A1", 167 | "device_model":"phone", 168 | "grant_type":"access_token", 169 | "third_name":"huami_phone", 170 | }, 171 | headers: { 172 | "Content-Type":"application/x-www-form-urlencoded;charset=UTF-8", 173 | "User-Agent":"MiFit/4.6.0 (iPhone; iOS 14.0.1; Scale/2.00)" 174 | }, 175 | method: 'POST', 176 | }) 177 | login_token = access_data.data.token_info.login_token; 178 | userid = access_data.data.token_info.user_id; 179 | if(!login_token&&userid){ 180 | console.log(`\n【${$.name}---账号${user}】: 获取用户 token 和 userid 失败`) 181 | }else{ 182 | console.log(`\n【${$.name}---账号${user}】: 获取用户 token 为 ${login_token}`) 183 | console.log(`\n【${$.name}---账号${user}】: 获取用户 userid 为 ${userid}`) 184 | return { 185 | login_token, 186 | userid,} 187 | } 188 | } 189 | } 190 | 191 | exports.main = async () => { 192 | if(!login_token){ 193 | console.log('登陆失败!'); 194 | return "login fail!" 195 | } 196 | const t = await get_time(); 197 | const app_token = await get_app_token(login_token); 198 | await change_step(app_token, userid) 199 | } 200 | 201 | // 获取时间戳,调用淘宝的接口 202 | async function get_time(){ 203 | //console.log('1!'); 204 | const res = await gethttp({ 205 | url: 'http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp', 206 | method: 'GET', 207 | }); 208 | //console.log('get_time res===', res.data.data.t) 209 | return res.data.data.t; 210 | } 211 | 212 | // 获取app_token 213 | async function get_app_token(login_token){ 214 | //console.log('1!'); 215 | const res = await gethttp({ 216 | url: `https://account-cn.huami.com/v1/client/app_tokens?app_name=com.xiaomi.hm.health&dn=api-user.huami.com%2Capi-mifit.huami.com%2Capp-analytics.huami.com&login_token=${login_token}&os_version=4.1.0`, 217 | method: 'GET' 218 | }) 219 | //console.log('get_app_token res===', res.data.token_info.app_token) 220 | return res.data.token_info.app_token; 221 | } 222 | 223 | //改步数 224 | function change_step(app_token, user_id) { 225 | const date = dataJSON.match(/.*?date%22%3A%22(.*?)%22%2C%22data.*?/)[1]; 226 | const ttf = dataJSON.match(/.*?ttl%5C%22%3A(.*?)%2C%5C%22dis.*?/)[1]; 227 | dataJSON = dataJSON.replace(date, timeFormat(localtime())); 228 | dataJSON = dataJSON.replace(ttf, step.toString()); 229 | console.log(`\n【${$.name}---账号${user}】: 当前日期 ${timeFormat(localtime())}`) 230 | return new Promise(resolve => { 231 | const options = { 232 | "url": `https://api-mifit-cn.huami.com/v1/data/band_data.json?&t=${$.t}`, 233 | "body": `userid=${user_id.toString()}&last_sync_data_time=1597306380&device_type=0&last_deviceid=DA932FFFFE8816E7&data_json=${dataJSON}`, 234 | "headers": { 235 | "Content-Type":"application/x-www-form-urlencoded;charset=UTF-8", 236 | "apptoken": app_token, 237 | } 238 | } 239 | $.post(options, (err, resp, data) => { 240 | try { 241 | if (err) { 242 | console.log(`${JSON.stringify(err)}`) 243 | console.log(`${$.name} API请求失败,请检查网路重试`) 244 | } else { 245 | let result = JSON.parse(data) 246 | if(result.code==1){ 247 | console.log(`\n【${$.name}---账号${user}】: 修改步数结果:${result.message} 步数为:${step}`) 248 | }else{ 249 | console.log(`\n【${$.name}---账号${user}】: 修改步数结果:${result.message}`) 250 | } 251 | 252 | } 253 | } catch (e) { 254 | $.logErr(e, resp) 255 | } finally { 256 | resolve(); 257 | } 258 | }) 259 | }) 260 | } 261 | 262 | function localtime() { 263 | return new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000; 264 | } 265 | 266 | function timeFormat(time) { 267 | let date; 268 | if (time) { 269 | date = new Date(time) 270 | } else { 271 | date = new Date(); 272 | } 273 | return date.getFullYear() + '-' + ((date.getMonth() + 1) >= 10 ? (date.getMonth() + 1) : '0' + (date.getMonth() + 1)) + '-' + (date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()); 274 | } 275 | //随机生成m(小)到n(大)的数,包含m和n 276 | function randomFriendPin(m,n) { 277 | return Math.round(Math.random()*(n - m) + m); 278 | } 279 | 280 | 281 | function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)} -------------------------------------------------------------------------------- /app_xsh.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | 安卓软件名称:鑫生活 4 | 5 | 项目注册地址:https://jyxapp.juyuanxinkeji.com/dist/#/regist/642609 6 | 7 | 邀请码:642609 8 | 9 | 333积分=3元才可提现, 10 | 11 | 一个ip只能挂3个号,否则封号 12 | 13 | 必要变量: 14 | 15 | 变量名 soy_xsh_data 16 | 变量值 微信阅读的code&抓包app的请求头token 17 | 注释:参数一:阅读code,app阅读后跳抓包微信链接 带有 api.gezs.cc/read/index 的链接上的请求数据中的code值(此值只有2小时) 18 | 参数二:抓包app 带有 jyxtest.juyuanxinkeji.com 链接的请求头是 token 值 19 | 20 | 阅读需要每跑一次(过期)就要补一次,然后不想做只填一个token参数即可 21 | 22 | 多个号用 # 或 @ 或 换行 隔开 23 | 24 | cron 25 5,15 * * * 25 | 26 | */ 27 | 28 | 29 | const $ = new Env('鑫生活'); 30 | // @grant require 31 | const notify = $.isNode() ? require('./sendNotify') : ''; 32 | 33 | 34 | 35 | 36 | var _0xodr='jsjiami.com.v6',_0xodr_=['_0xodr'],_0x5f12=[_0xodr,'\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x69\x73\x4e\x6f\x64\x65','\x65\x6e\x76','\x73\x6f\x79\x5f\x78\x73\x68\x5f\x64\x61\x74\x61','\x6c\x6f\x67','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\u3011\uff1a\u672a\u586b\u5199\u76f8\u5e94\u53d8\u91cf\x20\x73\x6f\x79\x5f\x78\x73\x68\x5f\x64\x61\x74\x61','\x69\x6e\x64\x65\x78\x4f\x66','\x73\x70\x6c\x69\x74','\x67\x65\x74\x64\x61\x74\x61','\x0a\x3d\x3d\x3d\x20\u811a\u672c\u6267\u884c\x20\x2d\x20\u5317\u4eac\u65f6\u95f4\uff1a','\x67\x65\x74\x54\x69\x6d\x65','\x67\x65\x74\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x4f\x66\x66\x73\x65\x74','\x74\x6f\x4c\x6f\x63\x61\x6c\x65\x53\x74\x72\x69\x6e\x67','\x20\x3d\x3d\x3d\x0a','\x3d\x3d\x3d\u3010\u5171\x20','\x6c\x65\x6e\x67\x74\x68','\x20\u4e2a\u8d26\u53f7\u3011\x3d\x3d\x3d\x0a','\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x4c\x69\x6e\x75\x78\x3b\x20\x41\x6e\x64\x72\x6f\x69\x64\x20\x37\x2e\x31\x2e\x32\x3b\x20\x56\x4f\x47\x2d\x41\x4c\x30\x30\x20\x42\x75\x69\x6c\x64\x2f\x4e\x32\x47\x34\x38\x48\x3b\x20\x77\x76\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x35\x33\x37\x2e\x33\x36\x20\x28\x4b\x48\x54\x4d\x4c\x2c\x20\x6c\x69\x6b\x65\x20\x47\x65\x63\x6b\x6f\x29\x20\x56\x65\x72\x73\x69\x6f\x6e\x2f\x34\x2e\x30\x20\x43\x68\x72\x6f\x6d\x65\x2f\x36\x38\x2e\x30\x2e\x33\x34\x34\x30\x2e\x37\x30\x20\x4d\x6f\x62\x69\x6c\x65\x20\x53\x61\x66\x61\x72\x69\x2f\x35\x33\x37\x2e\x33\x36','\x69\x6e\x64\x65\x78','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x6e\x61\x6d\x65','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6a\x79\x78\x74\x65\x73\x74\x2e\x6a\x75\x79\x75\x61\x6e\x78\x69\x6e\x6b\x65\x6a\x69\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f\x76\x31\x2e','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x67\x65\x7a\x73\x2e\x63\x63\x2f','\x0a\u5f00\u59cb\u3010\u7b2c\x20','\x20\u4e2a\u8d26\u53f7\u4efb\u52a1\u3011','\x61\x64\x76\x65\x72\x74\x5f\x74\x79\x70\x65\x2f\x69\x6e\x64\x65\x78','\x70\x6f\x73\x74','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\x2d\x2d\x2d\u8d26\u53f7\x20','\x20\u4efb\u52a1\u72b6\u51b5\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x70\x61\x72\x73\x65','\x63\x6f\x64\x65','\x64\x61\x74\x61','\x61\x64\x76\x65\x72\x74','\x6e\x75\x6d\x62\x65\x72\x5f\x76\x69\x65\x77\x73','\x20\u4efb\u52a1\u72b6\u51b5\u3011\x3a\x20\u89c2\u770b\u5e7f\u544a\u5b8c\u6210\x2c\u4e0d\u505a\u9605\u8bfb\u4efb\u52a1','\x20\u4efb\u52a1\u72b6\u51b5\u3011\x3a\x20\u4eca\u65e5\u4efb\u52a1\u5df2\u5b8c\u6210','\x20\u4efb\u52a1\u72b6\u51b5\u3011\x3a\x20','\x6d\x73\x67','\x75\x73\x65\x72\x2f\x69\x6e\x64\x65\x78','\x20\u7528\u6237\u72b6\u51b5\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u7528\u6237\u72b6\u51b5\u3011\x3a\x20','\x72\x65\x61\x64\x2f\x69\x6e\x64\x65\x78','\x7b\x22\x63\x68\x61\x6e\x6e\x65\x6c\x5f\x69\x64\x22\x3a\x22\x63\x61\x78\x63\x64\x37\x22\x2c\x22\x75\x73\x65\x72\x5f\x69\x64\x22\x3a\x22','\x22\x2c\x22\x75\x72\x6c\x5f\x63\x6f\x64\x65\x22\x3a\x22','\x20\u83b7\u53d6\x69\x64\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x6f\x70\x65\x6e\x69\x64','\x75\x6e\x69\x74\x65\x5f\x69\x64','\x61\x72\x74\x69\x63\x6c\x65','\x20\u83b7\u53d6\x69\x64\u3011\x3a\x20','\x72\x65\x61\x64\x2f\x74\x69\x6d\x65\x53\x74\x61\x72\x74\x5f\x32','\x7b\x22\x61\x72\x74\x69\x63\x6c\x65\x5f\x69\x64\x22\x3a','\x2c\x22\x6f\x70\x65\x6e\x69\x64\x22\x3a\x22','\x22\x2c\x22\x75\x6e\x69\x74\x65\x5f\x69\x64\x22\x3a\x22','\x20\u63d0\u4ea4\u9605\u8bfb\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x77\x61\x69\x74','\x66\x6c\x6f\x6f\x72','\x72\x61\x6e\x64\x6f\x6d','\x20\u63d0\u4ea4\u9605\u8bfb\u3011\x3a\x20','\x61\x64\x76\x65\x72\x74\x5f\x72\x65\x63\x6f\x72\x64\x2f\x73\x61\x76\x65','\x7b\x22\x74\x79\x70\x65\x22\x3a\x22\x32\x22\x7d','\x20\u770b\u5e7f\u544a\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25','\x20\u770b\u5e7f\u544a\u3011\x3a\x20','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x3b\x20\x63\x68\x61\x72\x73\x65\x74\x3d\x75\x74\x66\x2d\x38','\x67\x7a\x69\x70','\x6a\x79\x78\x74\x65\x73\x74\x2e\x6a\x75\x79\x75\x61\x6e\x78\x69\x6e\x6b\x65\x6a\x69\x2e\x63\x6f\x6d','\x61\x70\x69\x2e\x67\x65\x7a\x73\x2e\x63\x63','\x6b\x65\x65\x70\x2d\x61\x6c\x69\x76\x65','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x2c\x20\x74\x65\x78\x74\x2f\x70\x6c\x61\x69\x6e\x2c\x20\x2a\x2f\x2a','\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x4c\x69\x6e\x75\x78\x3b\x20\x41\x6e\x64\x72\x6f\x69\x64\x20\x31\x31\x3b\x20\x53\x4b\x57\x2d\x41\x30\x20\x42\x75\x69\x6c\x64\x2f\x53\x4b\x59\x57\x32\x31\x31\x30\x31\x35\x31\x43\x4e\x30\x30\x4d\x52\x30\x3b\x20\x77\x76\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x35\x33\x37\x2e\x33\x36\x20\x28\x4b\x48\x54\x4d\x4c\x2c\x20\x6c\x69\x6b\x65\x20\x47\x65\x63\x6b\x6f\x29\x20\x56\x65\x72\x73\x69\x6f\x6e\x2f\x34\x2e\x30\x20\x43\x68\x72\x6f\x6d\x65\x2f\x38\x36\x2e\x30\x2e\x34\x32\x34\x30\x2e\x39\x39\x20\x58\x57\x45\x42\x2f\x33\x31\x38\x35\x20\x4d\x4d\x57\x45\x42\x53\x44\x4b\x2f\x32\x30\x32\x31\x31\x32\x30\x32\x20\x4d\x6f\x62\x69\x6c\x65\x20\x53\x61\x66\x61\x72\x69\x2f\x35\x33\x37\x2e\x33\x36\x20\x4d\x4d\x57\x45\x42\x49\x44\x2f\x37\x35\x39\x39\x20\x4d\x69\x63\x72\x6f\x4d\x65\x73\x73\x65\x6e\x67\x65\x72\x2f\x38\x2e\x30\x2e\x31\x38\x2e\x32\x30\x36\x30\x28\x30\x78\x32\x38\x30\x30\x31\x32\x33\x37\x29\x20\x50\x72\x6f\x63\x65\x73\x73\x2f\x74\x6f\x6f\x6c\x73\x6d\x70\x20\x57\x65\x43\x68\x61\x74\x2f\x61\x72\x6d\x36\x34\x20\x57\x65\x69\x78\x69\x6e\x20\x4e\x65\x74\x54\x79\x70\x65\x2f\x57\x49\x46\x49\x20\x4c\x61\x6e\x67\x75\x61\x67\x65\x2f\x7a\x68\x5f\x43\x4e\x20\x41\x42\x49\x2f\x61\x72\x6d\x36\x34','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e\x3b\x63\x68\x61\x72\x73\x65\x74\x3d\x55\x54\x46\x2d\x38','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x68\x32\x39\x2e\x63\x68\x65\x63\x6b\x73\x68\x2e\x63\x6f\x6d','\x63\x6f\x6d\x2e\x74\x65\x6e\x63\x65\x6e\x74\x2e\x6d\x6d','\x63\x72\x6f\x73\x73\x2d\x73\x69\x74\x65','\x63\x6f\x72\x73','\x65\x6d\x70\x74\x79','\x67\x7a\x69\x70\x2c\x20\x64\x65\x66\x6c\x61\x74\x65','\x7a\x68\x2d\x43\x4e\x2c\x7a\x68\x3b\x71\x3d\x30\x2e\x39\x2c\x65\x6e\x2d\x55\x53\x3b\x71\x3d\x30\x2e\x38\x2c\x65\x6e\x3b\x71\x3d\x30\x2e\x37','\x6a\x6e\x73\x6a\x66\x67\x51\x69\x6b\x45\x75\x61\x6d\x5a\x74\x69\x2e\x63\x59\x6f\x6d\x55\x2e\x57\x58\x48\x76\x36\x4a\x4d\x3d\x3d'];function _0x2181(_0x2699a9,_0x501e82){_0x2699a9=~~'0x'['concat'](_0x2699a9['slice'](0x0));var _0x4a9879=_0x5f12[_0x2699a9];return _0x4a9879;};(function(_0x589c6d,_0x5b08bd){var _0x4ef491=0x0;for(_0x5b08bd=_0x589c6d['shift'](_0x4ef491>>0x2);_0x5b08bd&&_0x5b08bd!==(_0x589c6d['pop'](_0x4ef491>>0x3)+'')['replace'](/[nfgQkEuZtYUWXHJM=]/g,'');_0x4ef491++){_0x4ef491=_0x4ef491^0xd75bf;}}(_0x5f12,_0x2181));const AES_DE=require(_0x2181('0'));let app_soy_xsh_data=[],soy_xsh_UA='';!(async()=>{if(typeof $request!==_0x2181('1')){await get_appdata();}if($[_0x2181('2')]()){if(!process[_0x2181('3')][_0x2181('4')]){console[_0x2181('5')](_0x2181('6'));return;}if(process[_0x2181('3')][_0x2181('4')]&&process[_0x2181('3')][_0x2181('4')][_0x2181('7')]('\x0a')>-0x1){app_soy_xsh_data=process[_0x2181('3')][_0x2181('4')][_0x2181('8')]('\x0a');}else if(process[_0x2181('3')][_0x2181('4')]&&process[_0x2181('3')][_0x2181('4')][_0x2181('7')]('\x23')>-0x1){app_soy_xsh_data=process[_0x2181('3')][_0x2181('4')][_0x2181('8')]('\x23');}else if(process[_0x2181('3')][_0x2181('4')]&&process[_0x2181('3')][_0x2181('4')][_0x2181('7')]('\x40')>-0x1){app_soy_xsh_data=process[_0x2181('3')][_0x2181('4')][_0x2181('8')]('\x40');}else{app_soy_xsh_data=process[_0x2181('3')][_0x2181('4')][_0x2181('8')]();};}else{if(!$[_0x2181('9')](_0x2181('4'))){console[_0x2181('5')](_0x2181('6'));return;}if($[_0x2181('9')](_0x2181('4'))&&$[_0x2181('9')](_0x2181('4'))[_0x2181('7')]('\x0a')>-0x1){app_soy_xsh_data=$[_0x2181('9')](_0x2181('4'))[_0x2181('8')]('\x0a');}else if($[_0x2181('9')](_0x2181('4'))&&$[_0x2181('9')](_0x2181('4'))[_0x2181('7')]('\x40')>-0x1){app_soy_xsh_data=$[_0x2181('9')](_0x2181('4'))[_0x2181('8')]('\x40');}else if($[_0x2181('9')](_0x2181('4'))&&$[_0x2181('9')](_0x2181('4'))[_0x2181('7')]('\x23')>-0x1){app_soy_xsh_data=$[_0x2181('9')](_0x2181('4'))[_0x2181('8')]('\x23');}else{app_soy_xsh_data=$[_0x2181('9')](_0x2181('4'))[_0x2181('8')]();};}console[_0x2181('5')](_0x2181('a')+new Date(new Date()[_0x2181('b')]()+new Date()[_0x2181('c')]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[_0x2181('d')]()+_0x2181('e'));console[_0x2181('5')](_0x2181('f')+app_soy_xsh_data[_0x2181('10')]+_0x2181('11'));subTitle='';for(i=0x0;i$[_0x2181('17')](_0x400735))[_0x2181('18')](()=>$[_0x2181('19')]());async function implement(){host=_0x2181('1a');host_wx=_0x2181('1b');console[_0x2181('5')](_0x2181('1c')+$[_0x2181('13')]+_0x2181('1d'));await advert_type();}function advert_type(){let _0xa179f7=Post_request(_0x2181('1e'),'');return new Promise((_0x7bec22,_0x5814b1)=>{$[_0x2181('1f')](_0xa179f7,async(_0x47674b,_0x336e82,_0x10ffb7)=>{try{if(_0x47674b){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('21'));subTitle+=_0x2181('20')+$[_0x2181('13')]+_0x2181('21');}else{let _0x1ed7c3=JSON[_0x2181('22')](_0x10ffb7);if(_0x1ed7c3[_0x2181('23')]==0x1){if(_0x1ed7c3[_0x2181('24')][_0x2181('25')][0x0][_0x2181('26')]<0x8){await save();}else{if(!code){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('27'));}else{if(_0x1ed7c3[_0x2181('24')][_0x2181('25')][0x1][_0x2181('26')]<0x14){await user();}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('28'));}}}}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('29')+_0x1ed7c3[_0x2181('2a')]);}}}catch(_0x296d9d){console[_0x2181('5')](_0x296d9d,_0x336e82);}finally{_0x7bec22();}});});}function user(){let _0x47f4e3=Post_request(_0x2181('2b'),'');return new Promise((_0x427c1f,_0x3f9083)=>{$[_0x2181('1f')](_0x47f4e3,async(_0x164f2e,_0x2bfd3a,_0x3b0893)=>{try{if(_0x164f2e){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('2c'));subTitle+=_0x2181('20')+$[_0x2181('13')]+_0x2181('2c');}else{let _0x50d960=JSON[_0x2181('22')](_0x3b0893);if(_0x50d960[_0x2181('23')]==0x1){user_id=_0x50d960[_0x2181('24')][_0x2181('24')]['\x69\x64'];await get_id();}else if(_0x50d960[_0x2181('23')]==0x195){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('2d')+_0x50d960[_0x2181('2a')]);}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('2d')+_0x50d960[_0x2181('2a')]);}}}catch(_0x470946){console[_0x2181('5')](_0x470946,_0x2bfd3a);}finally{_0x427c1f();}});});}function get_id(){let _0x418d61=Post_request_wx(_0x2181('2e'),_0x2181('2f')+user_id+_0x2181('30')+code+'\x22\x7d');return new Promise((_0x1ae9d6,_0x205795)=>{$[_0x2181('1f')](_0x418d61,async(_0x835072,_0x33bc56,_0xb3b918)=>{try{if(_0x835072){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('31'));subTitle+=_0x2181('20')+$[_0x2181('13')]+_0x2181('31');}else{let _0x28c764=JSON[_0x2181('22')](_0xb3b918);if(_0x28c764[_0x2181('23')]==0xc8){await timeStart_2(_0x28c764[_0x2181('24')][_0x2181('32')],_0x28c764[_0x2181('24')][_0x2181('33')],_0x28c764[_0x2181('24')][_0x2181('34')]['\x69\x64']);}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('35')+_0x28c764[_0x2181('2a')]);}}}catch(_0x23dd97){console[_0x2181('5')](_0x23dd97,_0x33bc56);}finally{_0x1ae9d6();}});});}function timeStart_2(_0x143d6b,_0x579ceb,_0x4f4b2d){let _0x26be1c=Post_request_wx(_0x2181('36'),_0x2181('37')+_0x4f4b2d+_0x2181('38')+_0x143d6b+_0x2181('39')+_0x579ceb+'\x22\x7d');return new Promise((_0x3bb197,_0x32c21b)=>{$[_0x2181('1f')](_0x26be1c,async(_0x4a041b,_0x1fb851,_0xa148bb)=>{try{if(_0x4a041b){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('3a'));subTitle+=_0x2181('20')+$[_0x2181('13')]+_0x2181('3a');}else{let _0x1dbb46=JSON[_0x2181('22')](_0xa148bb);if(_0x1dbb46[_0x2181('23')]==0xc8){await $[_0x2181('3b')](Math[_0x2181('3c')](Math[_0x2181('3d')]()*(0x1f40-0x1770+0x3e8)+0x1770));console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('3e')+_0x1dbb46[_0x2181('2a')]);await get_id();}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('3e')+_0x1dbb46[_0x2181('2a')]);}}}catch(_0x5e66ec){console[_0x2181('5')](_0x5e66ec,_0x1fb851);}finally{_0x3bb197();}});});}function save(){let _0x1e76a2=Post_request(_0x2181('3f'),_0x2181('40'));return new Promise((_0x1ec5c8,_0xfae505)=>{$[_0x2181('1f')](_0x1e76a2,async(_0x16c0f2,_0x1ef556,_0x594f65)=>{try{if(_0x16c0f2){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('41'));subTitle+=_0x2181('20')+$[_0x2181('13')]+_0x2181('41');console[_0x2181('5')](_0x16c0f2);}else{let _0xd4f2d1=JSON[_0x2181('22')](_0x594f65);if(_0xd4f2d1[_0x2181('23')]==0x1){console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('42')+_0xd4f2d1[_0x2181('2a')]);await $[_0x2181('3b')](Math[_0x2181('3c')](Math[_0x2181('3d')]()*(0x3a98-0x2710+0x3e8)+0x2710));await advert_type();}else{console[_0x2181('5')](_0x2181('20')+$[_0x2181('13')]+_0x2181('42')+_0xd4f2d1[_0x2181('2a')]);}}}catch(_0x5d6b20){console[_0x2181('5')](_0x5d6b20,_0x1ef556);}finally{_0x1ec5c8();}});});}function Post_request(_0x1bcc87,_0x38c1d5){return{'\x75\x72\x6c':_0x2181('1a')+_0x1bcc87,'\x68\x65\x61\x64\x65\x72\x73':{'Content-Type':_0x2181('43'),'Accept-encoding':_0x2181('44'),'Content-Length':_0x38c1d5[_0x2181('10')],'Host':_0x2181('45'),'Token':token},'\x62\x6f\x64\x79':_0x38c1d5};};function Post_request_wx(_0x5df0f5,_0xcd0380){return{'\x75\x72\x6c':''+host_wx+_0x5df0f5,'\x68\x65\x61\x64\x65\x72\x73':{'Host':_0x2181('46'),'Connection':_0x2181('47'),'Content-Length':_0xcd0380[_0x2181('10')],'Accept':_0x2181('48'),'User-Agent':_0x2181('49'),'Content-Type':_0x2181('4a'),'Origin':_0x2181('4b'),'X-Requested-With':_0x2181('4c'),'Sec-Fetch-Site':_0x2181('4d'),'Sec-Fetch-Mode':_0x2181('4e'),'Sec-Fetch-Dest':_0x2181('4f'),'Accept-Encoding':_0x2181('50'),'Accept-Language':_0x2181('51')},'\x62\x6f\x64\x79':_0xcd0380};};;_0xodr='jsjiami.com.v6'; 37 | 38 | 39 | 40 | function Env(t, e) { 41 | class s { 42 | constructor(t) { 43 | this.env = t 44 | } 45 | send(t, e = "GET") { 46 | t = "string" == typeof t ? { 47 | url: t 48 | } : t; 49 | let s = this.get; 50 | return "POST" === e && (s = this.post), new Promise((e, i) => { 51 | s.call(this, t, (t, s, r) => { 52 | t ? i(t) : e(s) 53 | }) 54 | }) 55 | } 56 | get(t) { 57 | return this.send.call(this.env, t) 58 | } 59 | post(t) { 60 | return this.send.call(this.env, t, "POST") 61 | } 62 | } 63 | return new class { 64 | constructor(t, e) { 65 | this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) 66 | } 67 | isNode() { 68 | return "undefined" != typeof module && !!module.exports 69 | } 70 | isQuanX() { 71 | return "undefined" != typeof $task 72 | } 73 | isSurge() { 74 | return "undefined" != typeof $httpClient && "undefined" == typeof $loon 75 | } 76 | isLoon() { 77 | return "undefined" != typeof $loon 78 | } 79 | toObj(t, e = null) { 80 | try { 81 | return JSON.parse(t) 82 | } catch { 83 | return e 84 | } 85 | } 86 | toStr(t, e = null) { 87 | try { 88 | return JSON.stringify(t) 89 | } catch { 90 | return e 91 | } 92 | } 93 | getjson(t, e) { 94 | let s = e; 95 | const i = this.getdata(t); 96 | if (i) try { 97 | s = JSON.parse(this.getdata(t)) 98 | } catch {} 99 | return s 100 | } 101 | setjson(t, e) { 102 | try { 103 | return this.setdata(JSON.stringify(t), e) 104 | } catch { 105 | return !1 106 | } 107 | } 108 | getScript(t) { 109 | return new Promise(e => { 110 | this.get({ 111 | url: t 112 | }, (t, s, i) => e(i)) 113 | }) 114 | } 115 | runScript(t, e) { 116 | return new Promise(s => { 117 | let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); 118 | i = i ? i.replace(/\n/g, "").trim() : i; 119 | let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); 120 | r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; 121 | const [o, h] = i.split("@"), a = { 122 | url: `http://${h}/v1/scripting/evaluate`, 123 | body: { 124 | script_text: t, 125 | mock_type: "cron", 126 | timeout: r 127 | }, 128 | headers: { 129 | "X-Key": o, 130 | Accept: "*/*" 131 | } 132 | }; 133 | this.post(a, (t, e, i) => s(i)) 134 | }).catch(t => this.logErr(t)) 135 | } 136 | loaddata() { 137 | if (!this.isNode()) return {}; { 138 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 139 | const t = this.path.resolve(this.dataFile), 140 | e = this.path.resolve(process.cwd(), this.dataFile), 141 | s = this.fs.existsSync(t), 142 | i = !s && this.fs.existsSync(e); 143 | if (!s && !i) return {}; { 144 | const i = s ? t : e; 145 | try { 146 | return JSON.parse(this.fs.readFileSync(i)) 147 | } catch (t) { 148 | return {} 149 | } 150 | } 151 | } 152 | } 153 | writedata() { 154 | if (this.isNode()) { 155 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 156 | const t = this.path.resolve(this.dataFile), 157 | e = this.path.resolve(process.cwd(), this.dataFile), 158 | s = this.fs.existsSync(t), 159 | i = !s && this.fs.existsSync(e), 160 | r = JSON.stringify(this.data); 161 | s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) 162 | } 163 | } 164 | lodash_get(t, e, s) { 165 | const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); 166 | let r = t; 167 | for (const t of i) 168 | if (r = Object(r)[t], void 0 === r) return s; 169 | return r 170 | } 171 | lodash_set(t, e, s) { 172 | return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) 173 | } 174 | getdata(t) { 175 | let e = this.getval(t); 176 | if (/^@/.test(t)) { 177 | const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; 178 | if (r) try { 179 | const t = JSON.parse(r); 180 | e = t ? this.lodash_get(t, i, "") : e 181 | } catch (t) { 182 | e = "" 183 | } 184 | } 185 | return e 186 | } 187 | setdata(t, e) { 188 | let s = !1; 189 | if (/^@/.test(e)) { 190 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; 191 | try { 192 | const e = JSON.parse(h); 193 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) 194 | } catch (e) { 195 | const o = {}; 196 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) 197 | } 198 | } else s = this.setval(t, e); 199 | return s 200 | } 201 | getval(t) { 202 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null 203 | } 204 | setval(t, e) { 205 | return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null 206 | } 207 | initGotEnv(t) { 208 | this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) 209 | } 210 | get(t, e = (() => {})) { 211 | t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 212 | "X-Surge-Skip-Scripting": !1 213 | })), $httpClient.get(t, (t, s, i) => { 214 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 215 | })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 216 | hints: !1 217 | })), $task.fetch(t).then(t => { 218 | const { 219 | statusCode: s, 220 | statusCode: i, 221 | headers: r, 222 | body: o 223 | } = t; 224 | e(null, { 225 | status: s, 226 | statusCode: i, 227 | headers: r, 228 | body: o 229 | }, o) 230 | }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { 231 | try { 232 | if (t.headers["set-cookie"]) { 233 | const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); 234 | this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar 235 | } 236 | } catch (t) { 237 | this.logErr(t) 238 | } 239 | }).then(t => { 240 | const { 241 | statusCode: s, 242 | statusCode: i, 243 | headers: r, 244 | body: o 245 | } = t; 246 | e(null, { 247 | status: s, 248 | statusCode: i, 249 | headers: r, 250 | body: o 251 | }, o) 252 | }, t => { 253 | const { 254 | message: s, 255 | response: i 256 | } = t; 257 | e(s, i, i && i.body) 258 | })) 259 | } 260 | post(t, e = (() => {})) { 261 | if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 262 | "X-Surge-Skip-Scripting": !1 263 | })), $httpClient.post(t, (t, s, i) => { 264 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 265 | }); 266 | else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 267 | hints: !1 268 | })), $task.fetch(t).then(t => { 269 | const { 270 | statusCode: s, 271 | statusCode: i, 272 | headers: r, 273 | body: o 274 | } = t; 275 | e(null, { 276 | status: s, 277 | statusCode: i, 278 | headers: r, 279 | body: o 280 | }, o) 281 | }, t => e(t)); 282 | else if (this.isNode()) { 283 | this.initGotEnv(t); 284 | const { 285 | url: s, 286 | ...i 287 | } = t; 288 | this.got.post(s, i).then(t => { 289 | const { 290 | statusCode: s, 291 | statusCode: i, 292 | headers: r, 293 | body: o 294 | } = t; 295 | e(null, { 296 | status: s, 297 | statusCode: i, 298 | headers: r, 299 | body: o 300 | }, o) 301 | }, t => { 302 | const { 303 | message: s, 304 | response: i 305 | } = t; 306 | e(s, i, i && i.body) 307 | }) 308 | } 309 | } 310 | time(t) { 311 | let e = { 312 | "M+": (new Date).getMonth() + 1, 313 | "d+": (new Date).getDate(), 314 | "H+": (new Date).getHours(), 315 | "m+": (new Date).getMinutes(), 316 | "s+": (new Date).getSeconds(), 317 | "q+": Math.floor(((new Date).getMonth() + 3) / 3), 318 | S: (new Date).getMilliseconds() 319 | }; 320 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); 321 | for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); 322 | return t 323 | } 324 | msg(e = t, s = "", i = "", r) { 325 | const o = t => { 326 | if (!t) return t; 327 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { 328 | "open-url": t 329 | } : this.isSurge() ? { 330 | url: t 331 | } : void 0; 332 | if ("object" == typeof t) { 333 | if (this.isLoon()) { 334 | let e = t.openUrl || t.url || t["open-url"], 335 | s = t.mediaUrl || t["media-url"]; 336 | return { 337 | openUrl: e, 338 | mediaUrl: s 339 | } 340 | } 341 | if (this.isQuanX()) { 342 | let e = t["open-url"] || t.url || t.openUrl, 343 | s = t["media-url"] || t.mediaUrl; 344 | return { 345 | "open-url": e, 346 | "media-url": s 347 | } 348 | } 349 | if (this.isSurge()) { 350 | let e = t.url || t.openUrl || t["open-url"]; 351 | return { 352 | url: e 353 | } 354 | } 355 | } 356 | }; 357 | this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); 358 | let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; 359 | h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) 360 | } 361 | log(...t) { 362 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) 363 | } 364 | logErr(t, e) { 365 | const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); 366 | s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) 367 | } 368 | wait(t) { 369 | return new Promise(e => setTimeout(e, t)) 370 | } 371 | done(t = {}) { 372 | const e = (new Date).getTime(), 373 | s = (e - this.startTime) / 1e3; 374 | this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) 375 | } 376 | }(t, e) 377 | } -------------------------------------------------------------------------------- /axios.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";var r=n(3),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(10).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},function(e,t,n){"use strict";var r=n(2);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t { 28 | if (typeof $request !== "undefined") { 29 | await get_appdata() 30 | } 31 | 32 | if ($.isNode()) { 33 | //$.isNode()环境执行部分 34 | if(!process.env.soy_rlsp_data){ 35 | console.log(`\n【${$.name}】:未填写相应变量 soy_rlsp_data`); 36 | return; 37 | } 38 | 39 | if (process.env.soy_rlsp_data && process.env.soy_rlsp_data.indexOf('@') > -1) { 40 | app_soy_rlsp_data = process.env.soy_rlsp_data.split('@'); 41 | } else if (process.env.soy_rlsp_data && process.env.soy_rlsp_data.indexOf('\n') > -1) { 42 | app_soy_rlsp_data = process.env.env.soy_rlsp_data.split('\n'); 43 | } else if(process.env.soy_rlsp_data && process.env.soy_rlsp_data.indexOf('#') > -1){ 44 | app_soy_rlsp_data = process.env.soy_rlsp_data.split('#'); 45 | }else{ 46 | app_soy_rlsp_data = process.env.soy_rlsp_data.split(); 47 | }; 48 | 49 | 50 | 51 | }else{ 52 | //非$.isNode()环境执行部分 53 | if(!$.getdata('soy_rlsp_data')){ 54 | console.log(`\n【${$.name}】:未填写相应变量 soy_csjd_password`); 55 | return; 56 | } 57 | if ($.getdata('soy_rlsp_data') && $.getdata('soy_rlsp_data').indexOf('@') > -1) { 58 | app_soy_rlsp_data = $.getdata('soy_rlsp_data').split('@'); 59 | } else if ($.getdata('soy_rlsp_data') && $.getdata('soy_rlsp_data').indexOf('\n') > -1) { 60 | app_soy_rlsp_data = $.getdata('soy_rlsp_data').split('\n'); 61 | } else if($.getdata('soy_rlsp_data') && $.getdata('soy_rlsp_data').indexOf('#') > -1){ 62 | app_soy_rlsp_data = $.getdata('soy_rlsp_data').split('#'); 63 | }else{ 64 | app_soy_rlsp_data = $.getdata('soy_rlsp_data').split(); 65 | }; 66 | 67 | } 68 | 69 | console.log(`-------- 共 ${app_soy_rlsp_data.length} 个账号 --------`) 70 | 71 | console.log( 72 | `\n\n=== 脚本执行 - 北京时间(UTC+8):${new Date( 73 | new Date().getTime() + 74 | new Date().getTimezoneOffset() * 60 * 1000 + 75 | 8 * 60 * 60 * 1000 76 | ).toLocaleString()} ===\n`); 77 | 78 | for (i = 0; i < app_soy_rlsp_data.length; i++) { 79 | $.index = i + 1; 80 | console.log(`\n----- 开始【第 ${$.index} 个账号】-----`) 81 | //执行某个板块 82 | await get_taskCenter(1) 83 | await post_taskCenter(1) 84 | } 85 | 86 | })() 87 | .catch((e) => $.logErr(e)) 88 | .finally(() => $.done()) 89 | 90 | 91 | function rl_taskCenter(){ 92 | let Request_data=Get_request(`signIn/isSignIn?uid=${soy_mmyp_user_id}`) 93 | return new Promise((resolve, reject) => { 94 | $.get(Request_data, async(error, response, data) => { 95 | try { 96 | if(error){ 97 | //这里时访问失败,如访问网络出现404之类的 98 | console.log(`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败`) 99 | subTitle+=`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败` 100 | }else{ 101 | //这里时正常返回数据板块 102 | //console.log(data) 103 | //let result = JSON.parse(data) 104 | 105 | 106 | } 107 | }catch(e){ 108 | //$.logErr(e, response); 109 | console.log(e, response) 110 | } finally { 111 | resolve(); 112 | } 113 | }) 114 | }) 115 | } 116 | 117 | //get请求板块 118 | function get_taskCenter(){ 119 | let Request_data=Get_request(`signIn/isSignIn?uid=${soy_mmyp_user_id}`) 120 | return new Promise((resolve, reject) => { 121 | $.get(Request_data, async(error, response, data) => { 122 | try { 123 | if(error){ 124 | //这里时访问失败,如访问网络出现404之类的 125 | console.log(`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败`) 126 | subTitle+=`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败` 127 | }else{ 128 | //这里时正常返回数据板块 129 | //console.log(data) 130 | //let result = JSON.parse(data) 131 | 132 | 133 | } 134 | }catch(e){ 135 | //$.logErr(e, response); 136 | console.log(e, response) 137 | } finally { 138 | resolve(); 139 | } 140 | }) 141 | }) 142 | } 143 | 144 | //post请求板块 145 | function post_taskCenter(){ 146 | let Request_data=POST_request(`signIn/isSignIn?uid=${soy_mmyp_user_id}`) 147 | return new Promise((resolve, reject) => { 148 | $.get(Request_data, async(error, response, data) => { 149 | try { 150 | if(error){ 151 | //这里时访问失败,如访问网络出现404之类的 152 | console.log(`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败`) 153 | subTitle+=`\n【soy脚本提示---账号 ${$.index} 签到状态】: 网络请求失败` 154 | }else{ 155 | //这里时正常返回数据板块 156 | //console.log(data) 157 | //let result = JSON.parse(data) 158 | 159 | 160 | } 161 | }catch(e){ 162 | //$.logErr(e, response); 163 | console.log(e, response) 164 | } finally { 165 | resolve(); 166 | } 167 | }) 168 | }) 169 | } 170 | 171 | //网络post请求,请求头需要根据抓包内容继续修改 172 | function Post_request(url,body){ 173 | return { 174 | url:`${url}`, 175 | headers:{"Host": "ranlv.lvfacn.com","content-type": "application/x-www-form-urlencoded","accept-encoding": "gzip","user-agent": "okhttp/3.11.0","content-length": body.length}, 176 | body:body, 177 | }; 178 | }; 179 | 180 | //网络get请求,请求头需要根据抓包内容继续修改 181 | function Get_request(url){ 182 | return { 183 | url:`${url}`, 184 | headers:{"Host": "ranlv.lvfacn.com","content-type": "application/x-www-form-urlencoded","accept-encoding": "gzip","user-agent": "okhttp/3.11.0"}, 185 | }; 186 | }; 187 | 188 | //固定板块,无需动 189 | function Env(t,e){class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)} 190 | -------------------------------------------------------------------------------- /ds_variable_data.js: -------------------------------------------------------------------------------- 1 | module.exports = {"code":200,"ds_variable_data":{ 2 | "config":[{ 3 | "url":"https://gitee.com/soy-tool/app-script/raw/master/soy_ds.js", 4 | "update":false, 5 | "notice":true 6 | }], 7 | "user_data":[{ 8 | "user_ID":"用户ID(在我的界面看)", 9 | "token":"抓包 链接包含 https://gw.tokshine.com/app/ 的请求头上的 authorization 值" 10 | 11 | } 12 | ]}} -------------------------------------------------------------------------------- /dwsj_variable_data.js: -------------------------------------------------------------------------------- 1 | //别问我为什么抓包网络,那就是没有根证书(就是需要root移动证书到/etc/security/cacerts/目录下) 2 | //不要问我安卓11能不能抓包,安卓11需要手动安装证书 3 | //注意抓包有可能是 https://sdsj.shandw.com 链接 也有可能是 49.233.246.33:18081 ip带端口形式 4 | //这是3个账户的模板,没那么多的账号就删掉 5 | //单账号信息板块 {"user_ID":""*******"UA":""} 多账号用 逗号 连接 ,删板块也要删对应逗号,自己对比着修改 6 | 7 | module.exports = {"code":200,"dwsj_variable_data":{ 8 | "config":[{ 9 | "url":"https://gitee.com/soy-tool/app-script/raw/master/app_dwsj.js", 10 | "update":false,//true或false,true表示自动更新脚本,反之 11 | "notice":false,//true或false,rue表示发送通知,反之 12 | "TG_ID":"ls_soy",//把ls_soy(这个是我的)改成你TG频道的用户名,注不要带@符号,或者tg用户ID(@getmyid_bot 机器人获得) 13 | "kami":"",//用于激活账号的卡密 14 | "type":1,//支付方式,1为微信,2为支付宝 15 | }], 16 | "user_data":[{ 17 | "user_ID":"",//填用户ID或推荐码 18 | "build":,//true或false,true表示建造建筑,反之 19 | "UPbuild":,//true或false,true表示升级建筑,反之 20 | "signtime":,//签到时间段,填0到23任意一个 21 | "transfer":,//false或true,true表示转增给第一个账号,反之 22 | "Withdrawal":,//false或true,true表示提现,反之.注:只提现平台收益里面的金额,按最高金额开始提现 23 | "delayed":,//延时操作,单位秒,填数字不能为负数,如填1则是1秒到2秒之间延时,表示领完收益后延时几秒再丢骰子 24 | "continued":,//false或true,true表示持续丢骰子,反之 25 | "fire":,//false或true,true表示着火情况下进行灭火,反之 26 | "buy_fire":,//false或true,true表示购买消防车,反之 27 | "buy_dice":,//false或true,true表示购自定义骰子,反之 28 | "dice_six":,//false或true,true表示在着火情况下,身前6格不着火是否丢6电骰子,反之 29 | "Address":"",//转增地址(对方的) 30 | "gold_coins":"",//填5/10/20(对应转5m/10m/20m) 31 | "config":,//false或true,true表示在没有次数情况(如加速,膜拜)就不会去跑该任务,反之 32 | "reward_video":'',//观看视频的请求体,一般再链接为:https://api-access.pangolin-sdk-toutiao.com/api/ad/union/sdk/reward_video/reward/,找不到就留空 33 | "Authorization":"",//抓包找带有 https://sdsj.shandw.com 链接 或 49.233.246.33:18081 的请求头(headers)上的 Authorization 值 34 | "UA":""//抓包找带有 https://sdsj.shandw.com 链接 或 49.233.246.33:18081 的请求头(headers)上的 User-Agent(user-agent) 值 次变量为选填 35 | },{ 36 | "user_ID":"", 37 | "build":false, 38 | "UPbuild":false, 39 | "signtime":6, 40 | "transfer":false, 41 | "Withdrawal":false, 42 | "delayed":0, 43 | "continued":false, 44 | "fire":true, 45 | "buy_fire":true, 46 | "buy_dice":true, 47 | "dice_six":true, 48 | "Address":"123456", 49 | "gold_coins":"20", 50 | "config":true, 51 | "reward_video":'', 52 | "Authorization":"", 53 | "UA":"" 54 | },{ 55 | "user_ID":"", 56 | "build":false, 57 | "UPbuild":false, 58 | "signtime":6, 59 | "transfer":false, 60 | "Withdrawal":true, 61 | "delayed":1, 62 | "continued":false, 63 | "fire":true 64 | "buy_fire":false, 65 | "buy_dice":true, 66 | "Address":"123456", 67 | "config":true, 68 | "gold_coins":"20", 69 | "dice_six":true, 70 | "reward_video":'', 71 | "Authorization":"", 72 | "UA":"" 73 | } 74 | 75 | ]}} -------------------------------------------------------------------------------- /mac.js: -------------------------------------------------------------------------------- 1 | const $ = new Env('【mac】'); 2 | 3 | 4 | var _0xod2='jsjiami.com.v6',_0xod2_=['‮_0xod2'],_0x4d84=[_0xod2,'w5nmia7kuLfliKHkvJXotIkbwrDCr8O4w6HorrfohYToooXlrrrooJ4o','TnBGw7MNw5g=','w6ogwobDlQ==','w7Hmibvku4HlirLkv7HotIbDt8OANWZewpM/6KyL6ISO6KC75a2l6KCFw4Q=','UMOTw7Riw77Cvw==','N8OZPQnDqyduNMOm','w7rCjMKq','WlbCtmPDscK4w5LDu2vDgsOrfcOpeA==','wo8/w7jChQs9wonCjDHChFA=','wpLChMKAwq9hHMOhwqTCjDFEXcK9wrsK','wp9sT8O2WsKLKQ==','SgXDksOVMw==','JGHCgEPClw==','SsOnw55Uw64=','fcKnw7Q4','wonChXLCoy8=','OVzDk8O3Dg==','w6zCjcKgw7/Cm3E=','w6haJ8KvSQ==','wonCn27CoinDngPCs8KwKg==','wovCjMKiwovCmw==','wqh6JABE','HsKKwrHCj14=','dlpOCmFFQQ==','wpJXKSE=','FEHCq2LCu8Kow40=','wqw/wrJMwq4=','Qitcw4rCtUg=','wrrCkMOnSBPCgcKsw5rCsUs=','woN2w5EWw63DhmnCq23Dn0nDow==','w64uwqHDiVPCs8KAw5s=','w6Mfwqx1','wr7DsRE7aXXCm1IyPyUh','TcOSw5Ng','wp0vwpEy','w5jCmcKa','wq5xwqrCug==','w6ogwoDDjkQ=','TMOYLMO/wrgxwptmPcOdwrXDoMKRXigHJ8OqOcKvXsKdfcK0w64owqbCrMKySm3Clw==','wqTDthQISg==','wo4AEcKPYw==','wqTDoAQvXCbDmBgWMTxsKi5DZcO3bcO5wrxTLRzDssOqw7Vkw7USw4nCihwnwqs=','dXdfO2g=','bwHCg8OhwqE=','wpdGQz3Dgg==','w6IVwrPDtFc=','wqdIT1/DvQ==','Y8Knw44iDcONKiE=','wpjClW7CvA==','BsKUw73CoWskdDPCnA==','wpjDrsO5','L8K1Pz0=','wo3DocOow691','cMKTw7nCkT3Dk8Kx','w5sEOMOj','wpvCi8Kt','wqNxXg==','w6YAP8O1bg==','w7QEwrVwJDgtQsKXDg==','TcOPw6l5w6jCs8KtDg==','ZFppP3BDW1XCpsKJw5w=','wrHDscOB','QMKJw7zDmw==','w4l/GsKPZQ==','KFXDgg==','w7rClsKhw77ClnPDhA==','VMOPw55o','LcKhwqXCqHnClGFZbz4=','wo59HMK+wqJywojDgQ==','RTFrw4nCsV/CtMKdwrUdUQ==','worDssOzw6h1wpB1JwBVJj1D','GMKCfw==','wpnDoBZn','ZkZb','aXcVw5jCh8O+PA==','w7oCwqF9','wrt6Aw==','fHgS','w5svwo7CjcKu','w7bCl8Krw6Z4wrVpwrQ=','AUrCmmDCrsK+w4zDmXnDgsKh','H8KvOg==','wrISV2w=','wqTDvsOQwrA/','wrwfw4o=','w7IDwqZqODot','wqHDuxQ6','woliWQ==','wqd/aWXDujZVwrE=','eHYjw5rCjsOrOsOSOsKnIA==','JcKuw4phQA==','XkfDqcK6wow=','wpw0VcK0wrM=','woTDk8OTw65S','w68ZwrXDnGU=','McOFJw==','w6wdSGQ=','wokewqQ=','wr3Cp8KNwrDChMOnJA==','w5kDwrE=','w4/Ck8Khw7/DmA==','woQPQTx2SjN6w73Dhg==','wqIJVcKCwpXCu0gP','Y8Knw4gmD8OBNgXDnyrCqw==','wo7DhsK6','w4YKLsO1PA==','wo3DkSM=','UsOIwqnDvSJ6MA==','DcKKwpY=','TTfCtw==','Ni8JUEE=','FsKDBcKscMOccGbDsMOK','Eis/UwYadgV2RiY=','DcKzMHF/PsOmUcKpK8K6wqLDnQ==','ZW17LkQ=','YHYR','wpTDs8OUw7N0wrM=','IjUOqsnjniHXaImNiCH.coNm.Iv6R=='];if(function(_0xc8c58a,_0x34f5be,_0x3689f7){function _0xa41c04(_0x10137d,_0x483420,_0x5c386d,_0x921a00,_0x47c505,_0x4d51a4){_0x483420=_0x483420>>0x8,_0x47c505='po';var _0x1697b0='shift',_0x502656='push',_0x4d51a4='‮';if(_0x483420<_0x10137d){while(--_0x10137d){_0x921a00=_0xc8c58a[_0x1697b0]();if(_0x483420===_0x10137d&&_0x4d51a4==='‮'&&_0x4d51a4['length']===0x1){_0x483420=_0x921a00,_0x5c386d=_0xc8c58a[_0x47c505+'p']();}else if(_0x483420&&_0x5c386d['replace'](/[IUOqnnHXINCHNIR=]/g,'')===_0x483420){_0xc8c58a[_0x502656](_0x921a00);}}_0xc8c58a[_0x502656](_0xc8c58a[_0x1697b0]());}return 0xdfa8a;};return _0xa41c04(++_0x34f5be,_0x3689f7)>>_0x34f5be^_0x3689f7;}(_0x4d84,0xe9,0xe900),_0x4d84){_0xod2_=_0x4d84['length']^0xe9;};function _0x1f06(_0x468ec1,_0x3bc5bf){_0x468ec1=~~'0x'['concat'](_0x468ec1['slice'](0x1));var _0xc078cc=_0x4d84[_0x468ec1];if(_0x1f06['LcKNMm']===undefined){(function(){var _0x438b55=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x13cc86='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x438b55['atob']||(_0x438b55['atob']=function(_0x3fb6b1){var _0x591fd7=String(_0x3fb6b1)['replace'](/=+$/,'');for(var _0x333085=0x0,_0x1e5d01,_0x57794f,_0xf42f81=0x0,_0x2a283c='';_0x57794f=_0x591fd7['charAt'](_0xf42f81++);~_0x57794f&&(_0x1e5d01=_0x333085%0x4?_0x1e5d01*0x40+_0x57794f:_0x57794f,_0x333085++%0x4)?_0x2a283c+=String['fromCharCode'](0xff&_0x1e5d01>>(-0x2*_0x333085&0x6)):0x0){_0x57794f=_0x13cc86['indexOf'](_0x57794f);}return _0x2a283c;});}());function _0xf417c1(_0x136424,_0x3bc5bf){var _0x4d54f7=[],_0x15e7e4=0x0,_0x33832b,_0x1d2395='',_0x13adf3='';_0x136424=atob(_0x136424);for(var _0x3035d9=0x0,_0x1226fa=_0x136424['length'];_0x3035d9<_0x1226fa;_0x3035d9++){_0x13adf3+='%'+('00'+_0x136424['charCodeAt'](_0x3035d9)['toString'](0x10))['slice'](-0x2);}_0x136424=decodeURIComponent(_0x13adf3);for(var _0x4587cd=0x0;_0x4587cd<0x100;_0x4587cd++){_0x4d54f7[_0x4587cd]=_0x4587cd;}for(_0x4587cd=0x0;_0x4587cd<0x100;_0x4587cd++){_0x15e7e4=(_0x15e7e4+_0x4d54f7[_0x4587cd]+_0x3bc5bf['charCodeAt'](_0x4587cd%_0x3bc5bf['length']))%0x100;_0x33832b=_0x4d54f7[_0x4587cd];_0x4d54f7[_0x4587cd]=_0x4d54f7[_0x15e7e4];_0x4d54f7[_0x15e7e4]=_0x33832b;}_0x4587cd=0x0;_0x15e7e4=0x0;for(var _0x554091=0x0;_0x554091<_0x136424['length'];_0x554091++){_0x4587cd=(_0x4587cd+0x1)%0x100;_0x15e7e4=(_0x15e7e4+_0x4d54f7[_0x4587cd])%0x100;_0x33832b=_0x4d54f7[_0x4587cd];_0x4d54f7[_0x4587cd]=_0x4d54f7[_0x15e7e4];_0x4d54f7[_0x15e7e4]=_0x33832b;_0x1d2395+=String['fromCharCode'](_0x136424['charCodeAt'](_0x554091)^_0x4d54f7[(_0x4d54f7[_0x4587cd]+_0x4d54f7[_0x15e7e4])%0x100]);}return _0x1d2395;}_0x1f06['uZeTKM']=_0xf417c1;_0x1f06['MitqCs']={};_0x1f06['LcKNMm']=!![];}var _0x41fb55=_0x1f06['MitqCs'][_0x468ec1];if(_0x41fb55===undefined){if(_0x1f06['mAxdOQ']===undefined){_0x1f06['mAxdOQ']=!![];}_0xc078cc=_0x1f06['uZeTKM'](_0xc078cc,_0x3bc5bf);_0x1f06['MitqCs'][_0x468ec1]=_0xc078cc;}else{_0xc078cc=_0x41fb55;}return _0xc078cc;};try{fs=$[_0x1f06('‮0','*woS')]()?require('fs'):'';}catch(_0x1602b5){throw new Error(_0x1f06('‮1','56Vi'));}try{path=$[_0x1f06('‫2','PUMy')]()?require(_0x1f06('‮3','TsMq')):'';}catch(_0x28acc4){throw new Error(_0x1f06('‮4','9^A5'));}try{CryptoJs=$[_0x1f06('‮5','[e)Y')]()?require(_0x1f06('‫6','heqr')):'';}catch(_0x4cf031){throw new Error('\x0a找不到依赖\x20crypto-js\x20,请自行安装\x0a');}function getMACAddresses(){var _0x2e230a={'tsIkQ':function(_0x2140d5,_0x56e49a){return _0x2140d5==_0x56e49a;},'QDOSI':_0x1f06('‮7','o1LL'),'sGdYt':'/sys/class/net/','eburr':_0x1f06('‫8','6QoP'),'PLBfi':'address','SELIf':function(_0x1bb8a0,_0x5e345d){return _0x1bb8a0!==_0x5e345d;},'PBdOB':'xBWbz'};var _0x3d92d4='';var _0x33fdc9=fs[_0x1f06('‫9','Dbk!')](_0x1f06('‮a','Fewn'));_0x33fdc9[_0x1f06('‮b','#2]1')](function(_0x26c29e){var _0x1cbfc0={'ddEFs':function(_0x1288ba,_0x32eff8){return _0x2e230a[_0x1f06('‮c','X8Md')](_0x1288ba,_0x32eff8);},'iOYvU':_0x2e230a[_0x1f06('‮d','6QoP')],'hndIh':_0x2e230a[_0x1f06('‫e','[e)Y')]};var _0xb0ad88=path[_0x1f06('‫f','SPou')](_0x2e230a[_0x1f06('‮10','NvGj')],_0x26c29e,_0x2e230a[_0x1f06('‫11','J3@q')]);if(_0x26c29e[_0x1f06('‫12','o1LL')](0x0,0x3)==_0x2e230a[_0x1f06('‮13','MM(u')]&&fs[_0x1f06('‫14','NvGj')](_0xb0ad88)){if(_0x2e230a[_0x1f06('‫15','Nn)g')](_0x2e230a[_0x1f06('‫16','ZxQX')],_0x2e230a[_0x1f06('‮17','r[]F')])){var _0x5516f8='';var _0x1cb4f2=fs['readdirSync'](_0x1cbfc0['hndIh']);_0x1cb4f2[_0x1f06('‫18','Mr*r')](function(_0x2436e7){var _0x4bf87f=path[_0x1f06('‫19','ZxQX')]('/sys/class/net',_0x2436e7,_0x1f06('‫1a','6QoP'));if(_0x1cbfc0[_0x1f06('‫1b','@0c2')](_0x2436e7[_0x1f06('‫1c','l0xK')](0x0,0x3),_0x1cbfc0['iOYvU'])&&fs[_0x1f06('‮1d','v[6E')](_0x4bf87f)){_0x5516f8=fs[_0x1f06('‫1e','30@F')](_0x4bf87f)[_0x1f06('‫1f','TsMq')]()[_0x1f06('‫20','V*OQ')]();};});return _0x5516f8;}else{_0x3d92d4=fs[_0x1f06('‮21','ii]^')](_0xb0ad88)['toString']()[_0x1f06('‫22','[e)Y')]();}};});return _0x3d92d4;};mac=getMACAddresses();mac_e=CryptoJs['enc'][_0x1f06('‮23','@0c2')]['parse']('aa5c5c913815e376');mac_i=CryptoJs[_0x1f06('‫24','Fewn')][_0x1f06('‮25','9^A5')][_0x1f06('‮26','TsMq')](_0x1f06('‮27','5v*o'));function yyz_getip(){var _0x329810={'eBcth':function(_0x5261dd){return _0x5261dd();},'RWPOH':function(_0x2be57b,_0x2913c4){return _0x2be57b===_0x2913c4;},'ktbbj':_0x1f06('‫28','ii]^'),'xTAIv':function(_0x298516,_0xea90ab){return _0x298516===_0xea90ab;},'ZLJfh':_0x1f06('‫29','s841')};let _0x4d5b3c={'url':_0x1f06('‫2a','ii]^')};return new Promise((_0x57be23,_0x4ce5cf)=>{var _0xf523a0={'ySIrB':function(_0x488e48){return _0x329810[_0x1f06('‮2b','Mr*r')](_0x488e48);},'eYHbN':function(_0x287a14,_0x15dd71){return _0x329810[_0x1f06('‮2c','7C3#')](_0x287a14,_0x15dd71);},'tXuNu':_0x329810['ktbbj'],'uXGaD':_0x1f06('‫2d','D1u6'),'MKotM':function(_0xf9442,_0x5cf75f){return _0x329810[_0x1f06('‫2e','TsMq')](_0xf9442,_0x5cf75f);},'SwgDq':'JFUDT','JRSBT':_0x329810['ZLJfh']};$['get'](_0x4d5b3c,async(_0x2f8486,_0x5c9874,_0x549ac3)=>{try{if(_0xf523a0['eYHbN']('zffks',_0xf523a0[_0x1f06('‮2f','56Vi')])){macs=fs['readFileSync'](fn)[_0x1f06('‮30','SPou')]()[_0x1f06('‫31','NvGj')]();}else{if(_0x2f8486){IP_address=_0x1f06('‫32','z(j0');let _0x2d1ad0=CryptoJs[_0x1f06('‫33','*woS')][_0x1f06('‮34','qrIa')][_0x1f06('‫35','*woS')](IP_address);let _0x52a487=CryptoJs['AES'][_0x1f06('‫36','5Gyc')](_0x2d1ad0,mac_e,{'iv':mac_i,'mode':CryptoJs[_0x1f06('‮37','P@bs')][_0x1f06('‮38','Nn)g')],'padding':CryptoJs[_0x1f06('‮39','56Vi')][_0x1f06('‫3a','P@bs')]});let _0x48d2bc=_0x52a487[_0x1f06('‫3b','V*OQ')][_0x1f06('‫3c','[e)Y')]()[_0x1f06('‮3d','Mr*r')]();_0x2d1ad0=CryptoJs[_0x1f06('‮3e','xE7&')][_0x1f06('‫3f','5Gyc')][_0x1f06('‫40','MM(u')](mac);let _0x56b6f5=CryptoJs[_0x1f06('‮41','J3@q')][_0x1f06('‮42','o1LL')](_0x2d1ad0,mac_e,{'iv':mac_i,'mode':CryptoJs[_0x1f06('‫43','[e)Y')]['CBC'],'padding':CryptoJs['pad']['Pkcs7']});let _0x3371d5=_0x56b6f5[_0x1f06('‫44','r[]F')][_0x1f06('‫45','*WFw')]()[_0x1f06('‮46','l0xK')]();try{fs[_0x1f06('‮47','*woS')](_0xf523a0['uXGaD'],_0x48d2bc+'&'+_0x3371d5);}catch(_0x2d99eb){}}else{IP_address=_0x549ac3;let _0xb24e05=CryptoJs[_0x1f06('‫48','5v*o')][_0x1f06('‫49','ii]^')]['parse'](IP_address);let _0x52a487=CryptoJs[_0x1f06('‫4a','PUMy')][_0x1f06('‮4b','k[ij')](_0xb24e05,mac_e,{'iv':mac_i,'mode':CryptoJs[_0x1f06('‮4c','V*OQ')][_0x1f06('‮4d','ZxQX')],'padding':CryptoJs[_0x1f06('‫4e','k[ij')][_0x1f06('‫4f','irJj')]});let _0x48d2bc=_0x52a487[_0x1f06('‫44','r[]F')][_0x1f06('‫50',']T6X')]()[_0x1f06('‫51','6QoP')]();_0xb24e05=CryptoJs[_0x1f06('‮52','qrIa')][_0x1f06('‫53','a1tu')][_0x1f06('‮54','xE7&')](mac);let _0x56b6f5=CryptoJs[_0x1f06('‫55','Dbk!')][_0x1f06('‫56','V*OQ')](_0xb24e05,mac_e,{'iv':mac_i,'mode':CryptoJs[_0x1f06('‫57','ii]^')]['CBC'],'padding':CryptoJs[_0x1f06('‫58','#2]1')]['Pkcs7']});let _0x3371d5=_0x56b6f5['ciphertext'][_0x1f06('‮59','56Vi')]()[_0x1f06('‫5a','k[ij')]();try{if(_0xf523a0[_0x1f06('‫5b','Toy(')](_0xf523a0[_0x1f06('‮5c','mfFR')],_0xf523a0[_0x1f06('‫5d','GrB1')])){_0xf523a0[_0x1f06('‮5e','*woS')](_0x57be23);}else{fs['writeFileSync'](_0xf523a0[_0x1f06('‫5f','TsMq')],_0x48d2bc+'&'+_0x3371d5);}}catch(_0x2dee92){}}}}catch(_0x1a1e54){IP_address='127.0.0.1';let _0x4aadb0=CryptoJs[_0x1f06('‫60','heqr')][_0x1f06('‫61','D1u6')]['parse'](IP_address);let _0x52a487=CryptoJs[_0x1f06('‮62','@0c2')][_0x1f06('‫63','Nn)g')](_0x4aadb0,mac_e,{'iv':mac_i,'mode':CryptoJs['mode'][_0x1f06('‫64','TsMq')],'padding':CryptoJs['pad'][_0x1f06('‮65','o1LL')]});let _0x48d2bc=_0x52a487[_0x1f06('‮66','a1tu')][_0x1f06('‫67','GrB1')]()[_0x1f06('‫68','SPou')]();_0x4aadb0=CryptoJs[_0x1f06('‫69','vah1')]['Utf8'][_0x1f06('‫6a','P@bs')](mac);let _0x56b6f5=CryptoJs[_0x1f06('‫6b','ii]^')][_0x1f06('‫6c','z(j0')](_0x4aadb0,mac_e,{'iv':mac_i,'mode':CryptoJs['mode'][_0x1f06('‫6d','r[]F')],'padding':CryptoJs[_0x1f06('‮6e','7C3#')][_0x1f06('‫6f','H4TT')]});let _0x3371d5=_0x56b6f5[_0x1f06('‫70','1pCJ')]['toString']()[_0x1f06('‮71','H4TT')]();try{fs[_0x1f06('‮72','qrIa')](_0xf523a0[_0x1f06('‫73','Mr*r')],_0x48d2bc+'&'+_0x3371d5);}catch(_0x12fc29){}console[_0x1f06('‫74','k[ij')](_0x1a1e54,_0x5c9874);}finally{_0x57be23();}});});}yyz_getip();;_0xod2='jsjiami.com.v6'; 5 | 6 | 7 | 8 | function Env(t, e) { 9 | class s { 10 | constructor(t) { 11 | this.env = t 12 | } 13 | send(t, e = "GET") { 14 | t = "string" == typeof t ? { 15 | url: t 16 | } : t; 17 | let s = this.get; 18 | return "POST" === e && (s = this.post), new Promise((e, i) => { 19 | s.call(this, t, (t, s, r) => { 20 | t ? i(t) : e(s) 21 | }) 22 | }) 23 | } 24 | get(t) { 25 | return this.send.call(this.env, t) 26 | } 27 | post(t) { 28 | return this.send.call(this.env, t, "POST") 29 | } 30 | } 31 | return new class { 32 | constructor(t, e) { 33 | this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) 34 | } 35 | isNode() { 36 | return "undefined" != typeof module && !!module.exports 37 | } 38 | isQuanX() { 39 | return "undefined" != typeof $task 40 | } 41 | isSurge() { 42 | return "undefined" != typeof $httpClient && "undefined" == typeof $loon 43 | } 44 | isLoon() { 45 | return "undefined" != typeof $loon 46 | } 47 | toObj(t, e = null) { 48 | try { 49 | return JSON.parse(t) 50 | } catch { 51 | return e 52 | } 53 | } 54 | toStr(t, e = null) { 55 | try { 56 | return JSON.stringify(t) 57 | } catch { 58 | return e 59 | } 60 | } 61 | getjson(t, e) { 62 | let s = e; 63 | const i = this.getdata(t); 64 | if (i) try { 65 | s = JSON.parse(this.getdata(t)) 66 | } catch {} 67 | return s 68 | } 69 | setjson(t, e) { 70 | try { 71 | return this.setdata(JSON.stringify(t), e) 72 | } catch { 73 | return !1 74 | } 75 | } 76 | getScript(t) { 77 | return new Promise(e => { 78 | this.get({ 79 | url: t 80 | }, (t, s, i) => e(i)) 81 | }) 82 | } 83 | runScript(t, e) { 84 | return new Promise(s => { 85 | let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); 86 | i = i ? i.replace(/\n/g, "").trim() : i; 87 | let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); 88 | r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; 89 | const [o, h] = i.split("@"), a = { 90 | url: `http://${h}/v1/scripting/evaluate`, 91 | body: { 92 | script_text: t, 93 | mock_type: "cron", 94 | timeout: r 95 | }, 96 | headers: { 97 | "X-Key": o, 98 | Accept: "*/*" 99 | } 100 | }; 101 | this.post(a, (t, e, i) => s(i)) 102 | }).catch(t => this.logErr(t)) 103 | } 104 | loaddata() { 105 | if (!this.isNode()) return {}; { 106 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 107 | const t = this.path.resolve(this.dataFile), 108 | e = this.path.resolve(process.cwd(), this.dataFile), 109 | s = this.fs.existsSync(t), 110 | i = !s && this.fs.existsSync(e); 111 | if (!s && !i) return {}; { 112 | const i = s ? t : e; 113 | try { 114 | return JSON.parse(this.fs.readFileSync(i)) 115 | } catch (t) { 116 | return {} 117 | } 118 | } 119 | } 120 | } 121 | writedata() { 122 | if (this.isNode()) { 123 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 124 | const t = this.path.resolve(this.dataFile), 125 | e = this.path.resolve(process.cwd(), this.dataFile), 126 | s = this.fs.existsSync(t), 127 | i = !s && this.fs.existsSync(e), 128 | r = JSON.stringify(this.data); 129 | s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) 130 | } 131 | } 132 | lodash_get(t, e, s) { 133 | const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); 134 | let r = t; 135 | for (const t of i) 136 | if (r = Object(r)[t], void 0 === r) return s; 137 | return r 138 | } 139 | lodash_set(t, e, s) { 140 | return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) 141 | } 142 | getdata(t) { 143 | let e = this.getval(t); 144 | if (/^@/.test(t)) { 145 | const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; 146 | if (r) try { 147 | const t = JSON.parse(r); 148 | e = t ? this.lodash_get(t, i, "") : e 149 | } catch (t) { 150 | e = "" 151 | } 152 | } 153 | return e 154 | } 155 | setdata(t, e) { 156 | let s = !1; 157 | if (/^@/.test(e)) { 158 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; 159 | try { 160 | const e = JSON.parse(h); 161 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) 162 | } catch (e) { 163 | const o = {}; 164 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) 165 | } 166 | } else s = this.setval(t, e); 167 | return s 168 | } 169 | getval(t) { 170 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null 171 | } 172 | setval(t, e) { 173 | return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null 174 | } 175 | initGotEnv(t) { 176 | this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) 177 | } 178 | get(t, e = (() => {})) { 179 | t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 180 | "X-Surge-Skip-Scripting": !1 181 | })), $httpClient.get(t, (t, s, i) => { 182 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 183 | })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 184 | hints: !1 185 | })), $task.fetch(t).then(t => { 186 | const { 187 | statusCode: s, 188 | statusCode: i, 189 | headers: r, 190 | body: o 191 | } = t; 192 | e(null, { 193 | status: s, 194 | statusCode: i, 195 | headers: r, 196 | body: o 197 | }, o) 198 | }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { 199 | try { 200 | if (t.headers["set-cookie"]) { 201 | const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); 202 | this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar 203 | } 204 | } catch (t) { 205 | this.logErr(t) 206 | } 207 | }).then(t => { 208 | const { 209 | statusCode: s, 210 | statusCode: i, 211 | headers: r, 212 | body: o 213 | } = t; 214 | e(null, { 215 | status: s, 216 | statusCode: i, 217 | headers: r, 218 | body: o 219 | }, o) 220 | }, t => { 221 | const { 222 | message: s, 223 | response: i 224 | } = t; 225 | e(s, i, i && i.body) 226 | })) 227 | } 228 | post(t, e = (() => {})) { 229 | if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 230 | "X-Surge-Skip-Scripting": !1 231 | })), $httpClient.post(t, (t, s, i) => { 232 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 233 | }); 234 | else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 235 | hints: !1 236 | })), $task.fetch(t).then(t => { 237 | const { 238 | statusCode: s, 239 | statusCode: i, 240 | headers: r, 241 | body: o 242 | } = t; 243 | e(null, { 244 | status: s, 245 | statusCode: i, 246 | headers: r, 247 | body: o 248 | }, o) 249 | }, t => e(t)); 250 | else if (this.isNode()) { 251 | this.initGotEnv(t); 252 | const { 253 | url: s, 254 | ...i 255 | } = t; 256 | this.got.post(s, i).then(t => { 257 | const { 258 | statusCode: s, 259 | statusCode: i, 260 | headers: r, 261 | body: o 262 | } = t; 263 | e(null, { 264 | status: s, 265 | statusCode: i, 266 | headers: r, 267 | body: o 268 | }, o) 269 | }, t => { 270 | const { 271 | message: s, 272 | response: i 273 | } = t; 274 | e(s, i, i && i.body) 275 | }) 276 | } 277 | } 278 | time(t) { 279 | let e = { 280 | "M+": (new Date).getMonth() + 1, 281 | "d+": (new Date).getDate(), 282 | "H+": (new Date).getHours(), 283 | "m+": (new Date).getMinutes(), 284 | "s+": (new Date).getSeconds(), 285 | "q+": Math.floor(((new Date).getMonth() + 3) / 3), 286 | S: (new Date).getMilliseconds() 287 | }; 288 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); 289 | for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); 290 | return t 291 | } 292 | msg(e = t, s = "", i = "", r) { 293 | const o = t => { 294 | if (!t) return t; 295 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { 296 | "open-url": t 297 | } : this.isSurge() ? { 298 | url: t 299 | } : void 0; 300 | if ("object" == typeof t) { 301 | if (this.isLoon()) { 302 | let e = t.openUrl || t.url || t["open-url"], 303 | s = t.mediaUrl || t["media-url"]; 304 | return { 305 | openUrl: e, 306 | mediaUrl: s 307 | } 308 | } 309 | if (this.isQuanX()) { 310 | let e = t["open-url"] || t.url || t.openUrl, 311 | s = t["media-url"] || t.mediaUrl; 312 | return { 313 | "open-url": e, 314 | "media-url": s 315 | } 316 | } 317 | if (this.isSurge()) { 318 | let e = t.url || t.openUrl || t["open-url"]; 319 | return { 320 | url: e 321 | } 322 | } 323 | } 324 | }; 325 | this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); 326 | let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; 327 | h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) 328 | } 329 | log(...t) { 330 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) 331 | } 332 | logErr(t, e) { 333 | const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); 334 | s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) 335 | } 336 | wait(t) { 337 | return new Promise(e => setTimeout(e, t)) 338 | } 339 | done(t = {}) { 340 | const e = (new Date).getTime(), 341 | s = (e - this.startTime) / 1e3; 342 | this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) 343 | } 344 | }(t, e) 345 | } -------------------------------------------------------------------------------- /md5.js: -------------------------------------------------------------------------------- 1 | !function(n){"use strict";function t(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function r(n,t){return n<>>32-t}function e(n,e,o,u,c,f){return t(r(t(t(e,n),t(u,f)),c),o)}function o(n,t,r,o,u,c,f){return e(t&r|~t&o,n,t,u,c,f)}function u(n,t,r,o,u,c,f){return e(t&o|r&~o,n,t,u,c,f)}function c(n,t,r,o,u,c,f){return e(t^r^o,n,t,u,c,f)}function f(n,t,r,o,u,c,f){return e(r^(t|~o),n,t,u,c,f)}function i(n,r){n[r>>5]|=128<>>9<<4)]=r;var e,i,a,d,h,l=1732584193,g=-271733879,v=-1732584194,m=271733878;for(e=0;e>5]>>>t%32&255);return r}function d(n){var t,r=[];for(r[(n.length>>2)-1]=void 0,t=0;t>5]|=(255&n.charCodeAt(t/8))<16&&(o=i(o,8*n.length)),r=0;r<16;r+=1)u[r]=909522486^o[r],c[r]=1549556828^o[r];return e=i(u.concat(d(t)),512+8*t.length),a(i(c.concat(e),640))}function g(n){var t,r,e="";for(r=0;r>>4&15)+"0123456789abcdef".charAt(15&t);return e}function v(n){return unescape(encodeURIComponent(n))}function m(n){return h(v(n))}function p(n){return g(m(n))}function s(n,t){return l(v(n),v(t))}function C(n,t){return g(s(n,t))}function A(n,t,r){return t?r?s(t,n):C(t,n):r?m(n):p(n)}"function"==typeof define&&define.amd?define(function(){return A}):"object"==typeof module&&module.exports?module.exports=A:n.md5=A}(this); 2 | //# sourceMappingURL=md5.min.js.map -------------------------------------------------------------------------------- /picture/ddz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/ddz.jpg -------------------------------------------------------------------------------- /picture/gk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/gk.png -------------------------------------------------------------------------------- /picture/kzk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/kzk.jpg -------------------------------------------------------------------------------- /picture/lmyx.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/lmyx.jpg -------------------------------------------------------------------------------- /picture/mkjl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/mkjl.png -------------------------------------------------------------------------------- /picture/nw.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/nw.jpg -------------------------------------------------------------------------------- /picture/qmrd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/qmrd.png -------------------------------------------------------------------------------- /picture/qysc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/qysc.jpg -------------------------------------------------------------------------------- /picture/sqq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/sqq.png -------------------------------------------------------------------------------- /picture/wx_fqkk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/wx_fqkk.png -------------------------------------------------------------------------------- /picture/wx_jysz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/wx_jysz.png -------------------------------------------------------------------------------- /picture/wx_yyd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/wx_yyd.jpg -------------------------------------------------------------------------------- /picture/wxsg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/wxsg.png -------------------------------------------------------------------------------- /picture/wytk.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/wytk.jpg -------------------------------------------------------------------------------- /picture/yf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/yf.jpg -------------------------------------------------------------------------------- /picture/ygy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/ygy.jpg -------------------------------------------------------------------------------- /picture/yqyf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/yqyf.jpg -------------------------------------------------------------------------------- /picture/zmyd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soytool/script/7374c839f7058def9b5b3cc37e358faf40df9dbe/picture/zmyd.jpg -------------------------------------------------------------------------------- /soy_jqsj_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//发生推送信息,true为发生,false反之//暂时无效 4 | }], 5 | "user_data":[ 6 | 7 | {//第一个账号配置 8 | "DEVICEID":"",//抓包带有 https://android-api.lucklyworld.com 链接的请求头找,找不到随便输入32位数字和小写字母组合 9 | "ANDROIDID":"",//同上,找不到随便输入16位 10 | "oaid":"",//同上,找不到随便输入16位数字和小写字母组合 11 | "uid":"",//同上,找不到就在链接找或者游戏中我的界面自己的ID 12 | "token":"",//同上,注意极速版token不通用 13 | "User-Agent":"com.caike.ticket/2.7.0 (Linux; U; Android 10; zh-cn) (yyb; 20700)",//勿动 14 | // 15 | },/*{//第二个账号配置,如此类推,需要把/星 星/删除 16 | "DEVICEID":"",//抓包带有 https://android-api.lucklyworld.com 链接的请求头找 17 | "ANDROIDID":"",//同上 18 | "oaid":"",//同上 19 | "uid":"",//同上 20 | "token":"",//同上 21 | "User-Agent":"com.caike.ticket/2.7.0 (Linux; U; Android 10; zh-cn) (yyb; 20700)", 22 | },{ 23 | "DEVICEID":"",//抓包带有 https://android-api.lucklyworld.com 链接的请求头找 24 | "ANDROIDID":"",//同上 25 | "oaid":"",//同上 26 | "uid":"",//同上 27 | "token":"",//同上 28 | "User-Agent":"com.caike.ticket/2.7.0 (Linux; U; Android 10; zh-cn) (yyb; 20700)", 29 | }*/ 30 | 31 | ]} -------------------------------------------------------------------------------- /soy_ks_zl.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//发生推送信息,true为发生,false反之 4 | }], 5 | "user_data":[ 6 | {//第一个账号配置 7 | "cookie":"",//抓包进周周赚金币带有 https://nebula.kuaishou.com/ 或者在其他界面抓理论都可以,在请求头的全部cookie,kpn=开头的 8 | "User-Agent":"",//同上,请求头上的User-Agent 9 | }, 10 | ]} 11 | 12 | -------------------------------------------------------------------------------- /soy_yqyf_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//推送信息,true为发生,false反之,只有jwt过期才发送通知 4 | }], 5 | "user_data":[ 6 | {//第一个号,默认只开第一个号,多号自己把 (/星 星/) 删除,更多号自己模仿复制粘贴 7 | "jwt":"xxxxxxxxxxx",//抓带有 https://api.aiqingyinghang.com 的链接,链接上 jwt 值 8 | "ID":123456,//用户id,在我的界面,ID 9 | "rouletted":false,//true为转转盘,false为不转 10 | "withdraw":true,//true为提现,false为不提现,有次数情况0.3开始(群红包的) 11 | "money":20,//提现金额(20元/50元/100元/200元/500元填对应数字)(这个只针对钱包的,会检测withdraw变量) 12 | "profit":false,//true为领取下级收益,false为不领取 13 | "page":1,//红包页数,默认是第一页,如果没有红包或一直抢红包失败可尝试改 14 | "UA":""//抓包的请求头user-agent值 15 | },/*{//第二个号 16 | "jwt":"xxxxxxxxxxx",//抓带有 https://api.aiqingyinghang.com 的链接,链接上 jwt 值 17 | "ID":123456,//用户id,在我的界面,ID 18 | "rouletted":false,//true为转转盘,false为不转 19 | "withdraw":true,//true为提现,false为不提现,有次数情况0.3开始(群红包的) 20 | "money":20,//提现金额(20元/50元/100元/200元/500元填对应数字)(这个只针对钱包的,会检测withdraw变量) 21 | "profit":false,//true为领取下级收益,false为不领取 22 | "page":1,//红包页数,默认是第一页,如果没有红包或一直抢红包失败可尝试改 23 | "UA":""//抓包的请求头user-agent值 24 | },{//第三个号 25 | "jwt":"xxxxxxxxxxx",//抓带有 https://api.aiqingyinghang.com 的链接,链接上 jwt 值 26 | "ID":123456,//用户id,在我的界面,ID 27 | "rouletted":false,//true为转转盘,false为不转 28 | "withdraw":true,//true为提现,false为不提现,有次数情况0.3开始(群红包的) 29 | "money":20,//提现金额(20元/50元/100元/200元/500元填对应数字)(这个只针对钱包的,会检测withdraw变量) 30 | "profit":false,//true为领取下级收益,false为不领取 31 | "page":1,//红包页数,默认是第一页,如果没有红包或一直抢红包失败可尝试改 32 | "UA":""//抓包的请求头user-agent值 33 | },*/ 34 | 35 | 36 | ]} -------------------------------------------------------------------------------- /variable/soy_jbxq_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//推送信息,true为发生,false反之 4 | }], 5 | "user_data":[ 6 | { 7 | "phone":"",//手机号 8 | "password":"",//密码 9 | "token":"",//不需要填写 10 | "userid":"",//不需要填写 11 | },/*{ 12 | "phone":"",//手机号 13 | "password":"",//密码 14 | "token":"",//不需要填写 15 | "userid":"",//不需要填写 16 | },*/ 17 | 18 | ]} 19 | -------------------------------------------------------------------------------- /variable/soy_jhh_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//推送信息,true为发生,false反之 4 | }], 5 | "user_data":[ 6 | { 7 | "phone":"",//手机号 8 | "password":"",//密码 9 | "sessionid":"",//不需要填写 10 | "userid":"",//不需要填写 11 | },/*{ 12 | "phone":"",//手机号 13 | "password":"",//密码 14 | "sessionid":"",//不需要填写 15 | "userid":"",//不需要填写 16 | },*/ 17 | 18 | ]} 19 | -------------------------------------------------------------------------------- /variable/soy_kdjl_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//发生推送信息,true为发生,false反之 4 | }], 5 | "user_data":[ 6 | {//第一个账号配置 7 | "token":"",//抓包自己找,链接,带有 https://most.igmdns.com/http/ 8 | "uid":"",//同上,可空 9 | "UA":"",//同上,请求头User-Agent 10 | },/*{//第二个账号配置 11 | "token":"",//抓包自己找,链接,带有 https://most.igmdns.com/http/ 12 | "uid":"",//同上,可空 13 | "UA":"",//同上,请求头User-Agent 14 | },*/ 15 | 16 | ]} 17 | -------------------------------------------------------------------------------- /variable/soy_sjzy_data.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "config":[{ 3 | "notice":false//推送信息,true为发生,false反之 4 | }], 5 | "user_data":[ 6 | { 7 | "phone":"",//手机号 8 | "password":"",//密码 9 | "userId":"",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 10 | "token":"",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 11 | "VIP":0,//vip用户填1,非vip填0,非vip也可以填1,广告间隔也是10秒,可能封号极高 12 | "DEVICEID":"5acfc0ac057c4172",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 13 | "UA":"Mozilla/5.0 (Linux; Android 10; SKW-A0 Build/SKYW2103030CN00MQ5; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/27.272728)"//不填或抓包的请求头user-agent值 14 | },/*{ 15 | "phone":"",//手机号 16 | "password":"",//密码 17 | "userId":"",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 18 | "token":"",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 19 | "VIP":0,//vip用户填1,非vip填0,非vip也可以填1,广告间隔也是10秒,可能封号极高 20 | "DEVICEID":"5acfc0ac057c4172",//不填或抓包https://tcb-api.tencentcloudapi.com在请求体找 21 | "UA":"Mozilla/5.0 (Linux; Android 10; SKW-A0 Build/SKYW2103030CN00MQ5; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/27.272728)"//不填或抓包的请求头user-agent值 22 | },*/ 23 | ]} 24 | -------------------------------------------------------------------------------- /wx_ymf.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | function Env(t, e) { 8 | class s { 9 | constructor(t) { 10 | this.env = t 11 | } 12 | send(t, e = "GET") { 13 | t = "string" == typeof t ? { 14 | url: t 15 | } : t; 16 | let s = this.get; 17 | return "POST" === e && (s = this.post), new Promise((e, i) => { 18 | s.call(this, t, (t, s, r) => { 19 | t ? i(t) : e(s) 20 | }) 21 | }) 22 | } 23 | get(t) { 24 | return this.send.call(this.env, t) 25 | } 26 | post(t) { 27 | return this.send.call(this.env, t, "POST") 28 | } 29 | } 30 | return new class { 31 | constructor(t, e) { 32 | this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) 33 | } 34 | isNode() { 35 | return "undefined" != typeof module && !!module.exports 36 | } 37 | isQuanX() { 38 | return "undefined" != typeof $task 39 | } 40 | isSurge() { 41 | return "undefined" != typeof $httpClient && "undefined" == typeof $loon 42 | } 43 | isLoon() { 44 | return "undefined" != typeof $loon 45 | } 46 | toObj(t, e = null) { 47 | try { 48 | return JSON.parse(t) 49 | } catch { 50 | return e 51 | } 52 | } 53 | toStr(t, e = null) { 54 | try { 55 | return JSON.stringify(t) 56 | } catch { 57 | return e 58 | } 59 | } 60 | getjson(t, e) { 61 | let s = e; 62 | const i = this.getdata(t); 63 | if (i) try { 64 | s = JSON.parse(this.getdata(t)) 65 | } catch {} 66 | return s 67 | } 68 | setjson(t, e) { 69 | try { 70 | return this.setdata(JSON.stringify(t), e) 71 | } catch { 72 | return !1 73 | } 74 | } 75 | getScript(t) { 76 | return new Promise(e => { 77 | this.get({ 78 | url: t 79 | }, (t, s, i) => e(i)) 80 | }) 81 | } 82 | runScript(t, e) { 83 | return new Promise(s => { 84 | let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); 85 | i = i ? i.replace(/\n/g, "").trim() : i; 86 | let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); 87 | r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; 88 | const [o, h] = i.split("@"), a = { 89 | url: `http://${h}/v1/scripting/evaluate`, 90 | body: { 91 | script_text: t, 92 | mock_type: "cron", 93 | timeout: r 94 | }, 95 | headers: { 96 | "X-Key": o, 97 | Accept: "*/*" 98 | } 99 | }; 100 | this.post(a, (t, e, i) => s(i)) 101 | }).catch(t => this.logErr(t)) 102 | } 103 | loaddata() { 104 | if (!this.isNode()) return {}; { 105 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 106 | const t = this.path.resolve(this.dataFile), 107 | e = this.path.resolve(process.cwd(), this.dataFile), 108 | s = this.fs.existsSync(t), 109 | i = !s && this.fs.existsSync(e); 110 | if (!s && !i) return {}; { 111 | const i = s ? t : e; 112 | try { 113 | return JSON.parse(this.fs.readFileSync(i)) 114 | } catch (t) { 115 | return {} 116 | } 117 | } 118 | } 119 | } 120 | writedata() { 121 | if (this.isNode()) { 122 | this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); 123 | const t = this.path.resolve(this.dataFile), 124 | e = this.path.resolve(process.cwd(), this.dataFile), 125 | s = this.fs.existsSync(t), 126 | i = !s && this.fs.existsSync(e), 127 | r = JSON.stringify(this.data); 128 | s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) 129 | } 130 | } 131 | lodash_get(t, e, s) { 132 | const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); 133 | let r = t; 134 | for (const t of i) 135 | if (r = Object(r)[t], void 0 === r) return s; 136 | return r 137 | } 138 | lodash_set(t, e, s) { 139 | return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) 140 | } 141 | getdata(t) { 142 | let e = this.getval(t); 143 | if (/^@/.test(t)) { 144 | const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; 145 | if (r) try { 146 | const t = JSON.parse(r); 147 | e = t ? this.lodash_get(t, i, "") : e 148 | } catch (t) { 149 | e = "" 150 | } 151 | } 152 | return e 153 | } 154 | setdata(t, e) { 155 | let s = !1; 156 | if (/^@/.test(e)) { 157 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; 158 | try { 159 | const e = JSON.parse(h); 160 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) 161 | } catch (e) { 162 | const o = {}; 163 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) 164 | } 165 | } else s = this.setval(t, e); 166 | return s 167 | } 168 | getval(t) { 169 | return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null 170 | } 171 | setval(t, e) { 172 | return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null 173 | } 174 | initGotEnv(t) { 175 | this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) 176 | } 177 | get(t, e = (() => {})) { 178 | t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 179 | "X-Surge-Skip-Scripting": !1 180 | })), $httpClient.get(t, (t, s, i) => { 181 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 182 | })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 183 | hints: !1 184 | })), $task.fetch(t).then(t => { 185 | const { 186 | statusCode: s, 187 | statusCode: i, 188 | headers: r, 189 | body: o 190 | } = t; 191 | e(null, { 192 | status: s, 193 | statusCode: i, 194 | headers: r, 195 | body: o 196 | }, o) 197 | }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { 198 | try { 199 | if (t.headers["set-cookie"]) { 200 | const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); 201 | this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar 202 | } 203 | } catch (t) { 204 | this.logErr(t) 205 | } 206 | }).then(t => { 207 | const { 208 | statusCode: s, 209 | statusCode: i, 210 | headers: r, 211 | body: o 212 | } = t; 213 | e(null, { 214 | status: s, 215 | statusCode: i, 216 | headers: r, 217 | body: o 218 | }, o) 219 | }, t => { 220 | const { 221 | message: s, 222 | response: i 223 | } = t; 224 | e(s, i, i && i.body) 225 | })) 226 | } 227 | post(t, e = (() => {})) { 228 | if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { 229 | "X-Surge-Skip-Scripting": !1 230 | })), $httpClient.post(t, (t, s, i) => { 231 | !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) 232 | }); 233 | else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { 234 | hints: !1 235 | })), $task.fetch(t).then(t => { 236 | const { 237 | statusCode: s, 238 | statusCode: i, 239 | headers: r, 240 | body: o 241 | } = t; 242 | e(null, { 243 | status: s, 244 | statusCode: i, 245 | headers: r, 246 | body: o 247 | }, o) 248 | }, t => e(t)); 249 | else if (this.isNode()) { 250 | this.initGotEnv(t); 251 | const { 252 | url: s, 253 | ...i 254 | } = t; 255 | this.got.post(s, i).then(t => { 256 | const { 257 | statusCode: s, 258 | statusCode: i, 259 | headers: r, 260 | body: o 261 | } = t; 262 | e(null, { 263 | status: s, 264 | statusCode: i, 265 | headers: r, 266 | body: o 267 | }, o) 268 | }, t => { 269 | const { 270 | message: s, 271 | response: i 272 | } = t; 273 | e(s, i, i && i.body) 274 | }) 275 | } 276 | } 277 | time(t) { 278 | let e = { 279 | "M+": (new Date).getMonth() + 1, 280 | "d+": (new Date).getDate(), 281 | "H+": (new Date).getHours(), 282 | "m+": (new Date).getMinutes(), 283 | "s+": (new Date).getSeconds(), 284 | "q+": Math.floor(((new Date).getMonth() + 3) / 3), 285 | S: (new Date).getMilliseconds() 286 | }; 287 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); 288 | for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); 289 | return t 290 | } 291 | msg(e = t, s = "", i = "", r) { 292 | const o = t => { 293 | if (!t) return t; 294 | if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { 295 | "open-url": t 296 | } : this.isSurge() ? { 297 | url: t 298 | } : void 0; 299 | if ("object" == typeof t) { 300 | if (this.isLoon()) { 301 | let e = t.openUrl || t.url || t["open-url"], 302 | s = t.mediaUrl || t["media-url"]; 303 | return { 304 | openUrl: e, 305 | mediaUrl: s 306 | } 307 | } 308 | if (this.isQuanX()) { 309 | let e = t["open-url"] || t.url || t.openUrl, 310 | s = t["media-url"] || t.mediaUrl; 311 | return { 312 | "open-url": e, 313 | "media-url": s 314 | } 315 | } 316 | if (this.isSurge()) { 317 | let e = t.url || t.openUrl || t["open-url"]; 318 | return { 319 | url: e 320 | } 321 | } 322 | } 323 | }; 324 | this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); 325 | let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; 326 | h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) 327 | } 328 | log(...t) { 329 | t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) 330 | } 331 | logErr(t, e) { 332 | const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); 333 | s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) 334 | } 335 | wait(t) { 336 | return new Promise(e => setTimeout(e, t)) 337 | } 338 | done(t = {}) { 339 | const e = (new Date).getTime(), 340 | s = (e - this.startTime) / 1e3; 341 | this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) 342 | } 343 | }(t, e) 344 | } --------------------------------------------------------------------------------