TA的每日心情 | 开心 7 小时前 |
---|
签到天数: 41 天 [LV.5]常住居民I
初级工程师
- 积分
- 56
|
发表于
2024-2-2 10:01:53
|
显示全部楼层
可以了 之前漏了个分隔符
本帖最后由 krystal 于 2024-2-2 10:32 编辑
李恒道 发表于 2024-2-1 16:35
标准ob,先用babel走ast解掉混淆,剩下直接覆盖本地文件无脑调就行了
也不建议用这个
直接用ob官方库比这个 ... - import axios from "axios";
- import qs from "qs";
- import querystring from "querystring";
- import { JSEncrypt } from "./lib/JSEncrypt";
- var encrypt = new JSEncrypt();
- encrypt.setPublicKey(
- "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCM2eQ5SNpL7Lbv9Uh6UPY/kk5Hpm1fwjPriMd2n3aACGQKus3L3xYnsd67BThXFh7+khiTZ0Ixm9HX03EbS8N6oggeoordvWN6oIS75RRhJFqHZhCdf18W27FmOoBp5tlQXPt0z7tdi3KG4D+4464tsbyybvESDCG3yWVeK0HB9wIDAQAB-----END PUBLIC KEY-----"
- );
- let urlParam = (Math.random() * 100).toString(32);
- let source = 'console.log("Hello")'.replace(/(^\s*)|(\s*$)/g, "");
- let result = "js|" + urlParam + "|" + source.length;
- var sojsondata = encrypt.encrypt(result);
- let sojsonhost = encrypt.encrypt("www.jsjiami.com" + "|" + +Date.now());
- function request(urlParam, source, sojsondata, sojsonhost) {
- var data = querystring.stringify({
- source,
- rotateStringArrayEnabled: "true",
- compact: "true",
- controlFlowFlattening: "true",
- deadCodeInjection: "true",
- imark: "true",
- basic: "true",
- controlFlowFlatteningThreshold: "0.7",
- deadCodeInjectionThreshold: "0.5",
- stringArrayEncoding: "rc4",
- stringArrayThreshold: "0.7",
- allRename: "false",
- selfDefending: "false",
- platform: "0",
- stringArrayShuffle: "true",
- splitStrings: "true",
- stringArrayStorageItemNum: "3",
- stringArrayStorageItemNum: "3",
- simplify: "true",
- numbersToExpressions: "true",
- best: "true",
- niub: "false",
- autojs: "false",
- encodeVersion: "jsjiami.com.v7",
- basicName: "1",
- selenium: "0",
- unicodeEscapeSequence: "false",
- debugProtection: "false",
- disableConsoleOutput: "false",
- domains: "",
- reservedStrings: "",
- reservedNames: "",
- });
- let url =
- "https://www.jsjiami.com/auth_v_1_0/v7/js/js_obfuscator.json?v=" + urlParam;
- var config = {
- method: "POST",
- headers: {
- authority: "www.jsjiami.com",
- method: "POST",
- scheme: "https",
- Accept: "application/json, text/javascript, */*; q=0.01",
- path: "/auth_v_1_0/v7/js/js_obfuscator.json?v=" + urlParam,
- "accept-language": "zh-CN,zh;q=0.9",
- "cache-control": "max-age=0",
- origin: "https://www.jsjiami.com",
- pragma: "no-cache",
- referer: "https://www.jsjiami.com/",
- "sec-ch-ua":
- '"Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"',
- "sec-ch-ua-mobile": "?0",
- "sec-ch-ua-platform": '"Windows"',
- "sec-fetch-dest": "empty",
- "sec-fetch-mode": "cors",
- "sec-fetch-site": "same-origin",
- Cookie:
- "Hm_lvt_75b5ae4b288fcf7d181cec6859c9754f=1706764075,1706770756,1706779344,1706838286; Hm_lpvt_75b5ae4b288fcf7d181cec6859c9754f=1706838286",
- sojsondata,
- sojsonhost,
- "user-agent":
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
- "x-requested-with": "XMLHttpRequest",
- "content-type": "application/x-www-form-urlencoded",
- },
- data,
- url,
- };
- axios(config)
- .then(function (response) {
- console.log(response.data);
- })
- .catch(function (error) {
- console.log(error);
- });
- }
- request(urlParam, source, sojsondata, sojsonhost);
复制代码
|
|