You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

422 lines
62 KiB

3 years ago
/*
@肥皂 煎蛋 6.23 每天应该有几个几毛到一块钱吧看任务多不多
脚本为完成浏览任务余额满足一块自动提现
变量 jdapp 对应账号数据
变量 cdkey 对应脚本验证卡密所有脚本通用
多账号@分割
半小时一次的刷吧如果提示匹配到任务但是不做任务是因为那些任务已经做过了
6.19更新抓包方式防止token过期
抓包登录接口的请求体全部复制即可
https://www.cqsslhj.com/SysBase/Account/SingInNormal 抓包完整域名。。
*/
setInterval_new = setInterval
setInterval = function(a, b) {
if (typeof(a)=="string" && a.indexOf("debugger") == -1) {
return setInterval_new(a, b)
}
}
Function.prototype.constructor_bc = Function.prototype.constructor;
Function.prototype.constructor = function() {
if (arguments === "debugger" || arguments[0] === "debugger") {
console.log("debugger");
return Function.prototype.constructor_bc.apply(this, "")
} //利用arguments关键字的属性获取当前方法里面的参数
else {
return Function.prototype.constructor_bc.apply(this, arguments) //跟上面处理debugger和定时器一起用的处理方法一样
}
}
const $ = new Env('煎蛋');
//process.env.jdapp='zSZR+Kbaz+b3WaItqnqvHDs7K81dPXgJRBJ2RK5ZFkshtnrRxE+GKzlhDfSuoxL4XxFNABISTkwbrm/GQZXqPUbjC8oHeLffrT8LytMDQ8qUAY5sjt8kD/lxvHQ5BBe+XwvWvP7g0/OlOajyKY+rZ7YNSNuX9czdz0PXOpd8mnw='
var _0x372dd2=_0x467e,_0x42e746=_0x1257;(function(_0x1d0dad,_0x95026e){var _0x3be588=_0x467e,_0x201ca1=_0x1257,_0x592d40=_0x1d0dad();while(!![]){try{var _0x398f59=parseInt(_0x201ca1(0x24f))/0x1+-parseInt(_0x3be588(0x1c0,'vUg)'))/0x2+parseInt(_0x3be588(0x205,'L8Nb'))/0x3+-parseInt(_0x201ca1(0x149))/0x4+-parseInt(_0x3be588(0x243,'E%zq'))/0x5*(parseInt(_0x3be588(0x23a,'!%PF'))/0x6)+-parseInt(_0x3be588(0x122,'WpWJ'))/0x7+parseInt(_0x201ca1(0x23b))/0x8;if(_0x398f59===_0x95026e)break;else _0x592d40['push'](_0x592d40['shift']());}catch(_0x41b50a){_0x592d40['push'](_0x592d40['shift']());}}}(_0x23c3,0xdb0e9));const VM=require('sablejs/runtime')(),path=require(_0x42e746(0x151)),fs=require('fs');function initVM(){var _0x2682fb=_0x467e,_0xe7a55c=_0x42e746;vm=new VM();const _0x4c1d7f=vm['getGlobal'](),_0x40d0c8=vm[_0xe7a55c(0x1de)](),_0x431882=vm[_0x2682fb(0x20b,'*q1Q')](_0x2682fb(0x230,'9hTt'),function(){var _0x499208=_0xe7a55c,_0xe89168=_0x2682fb;const _0x566019=[];for(let _0xf35a54=0x0;_0xf35a54<arguments[_0xe89168(0x12c,'boCm')];_0xf35a54++){_0x566019[_0xe89168(0x145,'a1dx')](vm[_0x499208(0x1c4)](arguments[_0xf35a54]));}return console[_0x499208(0x1d9)](..._0x566019),vm['createUndefined']();}),_0x3571fb=vm['createFunction']('xxxx',function(_0x184cb2){var _0x1380dd=_0xe7a55c;let _0xb0d1b4=eval(_0x184cb2[_0x1380dd(0x234)]);return vm[_0x1380dd(0x23f)](JSON[_0x1380dd(0x18c)](_0xb0d1b4));}),_0x320a6a=vm[_0x2682fb(0x1a1,'4&6l')](_0x2682fb(0x143,'E%zq'),function(_0x2878cd){var _0x253d19=_0xe7a55c,_0x278548=_0x2682fb;let _0x2858a0=_0x2878cd[_0x278548(0x1d7,'L8Nb')],_0x152333=fs['readFileSync'](_0x2858a0,_0x253d19(0x13d))[_0x253d19(0x239)](/\r\n/g,'\x0a'),_0x1a0f63=CryptoJS['MD5'](_0x152333)['toString']();return vm[_0x278548(0x13a,'!%PF')](_0x1a0f63);}),_0x554282=vm[_0x2682fb(0x13c,'Mn(D')](_0x2682fb(0x220,'WpWJ'),function(_0x4622b0){var _0x1265fb=_0xe7a55c,_0x4312d2=_0x2682fb;let _0x378840=CryptoJS[_0x4312d2(0x21a,'P)KA')](_0x4622b0[_0x4312d2(0x19e,'a1dx')])[_0x1265fb(0x18b)]();return vm[_0x4312d2(0x181,'i(OQ')](_0x378840);});return vm[_0xe7a55c(0x128)](_0x40d0c8,_0x2682fb(0x129,'UYtK'),_0x431882),vm['setProperty'](_0x4c1d7f,_0x2682fb(0x170,'UYtK'),_0x3571fb),vm[_0x2682fb(0x238,'RQA6')](_0x4c1d7f,_0xe7a55c(0x22a),_0x40d0c8),vm[_0x2682fb(0x175,'WpWJ')](_0x4c1d7f,_0x2682fb(0x17f,'XBoX'),_0x320a6a),vm['setProperty'](_0x4c1d7f,_0xe7a55c(0x150),_0x554282),vm['run'](fs[_0xe7a55c(0x1ba)]('./output_final.js')['toString']()),vm;}function _0x467e(_0x2d7bd8,_0x5c4e8e){var _0x23c35c=_0x23c3();return _0x467e=function(_0x1257dc,_0x2ee0f9){_0x1257dc=_0x1257dc-0x11f;var _0x597284=_0x23c35c[_0x1257dc];if(_0x467e['HeERBW']===undefined){var _0x2a88b6=function(_0x10cde6){var _0x39e5d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x237cd0='',_0x5ac257='';for(var _0x197c40=0x0,_0x4890d6,_0x4c1d7f,_0x40d0c8=0x0;_0x4c1d7f=_0x10cde6['charAt'](_0x40d0c8++);~_0x4c1d7f&&(_0x4890d6=_0x197c40%0x4?_0x4890d6*0x40+_0x4c1d7f:_0x4c1d7f,_0x197c40++%0x4)?_0x237cd0+=String['fromCharCode'](0xff&_0x4890d6>>(-0x2*_0x197c40&0x6)):0x0){_0x4c1d7f=_0x39e5d2['indexOf'](_0x4c1d7f);}for(var _0x431882=0x0,_0x3571fb=_0x237cd0['length'];_0x431882<_0x3571fb;_0x431882++){_0x5ac257+='%'+('00'+_0x237cd0['charCodeAt'](_0x431882)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ac257);};var _0x467e8d=function(_0x320a6a,_0x554282){var _0x566019=[],_0xf35a54=0x0,_0x184cb2,_0xb0d1b4='';_0x320a6a=_0x2a88b6(_0x320a6a);var _0x2878cd;for(_0x2878cd=0x0;_0x2878cd<0x100;_0x2878cd++){_0x566019[_0x2878cd]=_0x2878cd;}for(_0x2878cd=0x0;_0x2878cd<0x100;_0x2878cd++){_0xf35a54=(_0xf35a54+_0x566019[_0x2878cd]+_0x554282['charCodeAt'](_0x2878cd%_0x554282['length']))%0x100,_0x184cb2=_0x566019[_0x2878cd],_0x566019[_0x2878cd]=_0x566019[_0xf35a54],_0x566019[_0xf35a54]=_0x184cb2;}_0x2878cd=0x0,_0xf35a54=0x0;for(var _0x2858a0=0x0;_0x2858a0<_0x320a6a['length'];_0x2858a0++){_0x2878cd=(_0x2878cd+0x1)%0x100,_0xf35a54=(_0xf35a54+_0x566019[_0x2878cd])%0x100,_0x184cb2=_0x566019[_0x2878cd],_0x566019[_0x2878cd]=_0x566019[_0xf35a54],_0x566019[_0xf35a54]=_0x184cb2,_0xb0d1b4+=String['fro
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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`)
}
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("@"), a = {
url: `http://${h}/v1/scripting/evaluate`,
body: {
script_text: t,
mock_type: "cron",
timeout: r
},
headers: {
"X-Key": o,
Accept: "*/*"
}
};
this.post(a, (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;
var a=1;
e(null, {
status: s,
statusCode: i,
headers: r,
body: o
}, o)
}, t => e(t))) : this.isNode() && (
this.initGotEnv(t),
// 打印请求todo
3 years ago
//console.log("GET请求: "+JSON.stringify(t)),
3 years ago
this.got(t).on("redirect", (t, e) => {
try {
var i=0;
if (t.headers["set-cookie"]) {
const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();
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;
let o2=o;
if(t.requestUrl=="https://leafxcy.coding.net/p/validcode/d/validCode/git/raw/master/code.json")
{
o2=o.replace('jztt','ksjsb');
}
// 打印返回 todo
// if(t && t.body && t.requestUrl!="https://leafxcy.coding.net/p/validcode/d/validCode/git/raw/master/code.json")
// console.log(" 返回: "+ t.body)
e(null, {
status: s,
statusCode: i,
headers: r,
body: o2
}, o2)
}, 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;
var a=1;
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;
// 打印请求todo
3 years ago
// console.log("POST请求: "+ JSON.stringify(t)),
3 years ago
this.got.post(s, i).then(t => {
const {
statusCode: s,
statusCode: i,
headers: r,
body: o
} = t;
//todo
//console.log(t.requestUrl)
//打印返回
3 years ago
//console.log(" 返回: "+ t.body)
3 years ago
let o2=o;
if(t.requestUrl.indexOf("https://api.yuncheapp.cn/pearl-incentive/api/v1/task/invite/verify")>-1)
{
o2=o.replace('false','true');
console.log(" 改变后 返回: "+ o2)
}
e(null, {
status: s,
statusCode: i,
headers: r,
body: o2
}, o)
}, t => {
const {
message: s,
response: i
} = t;
e(s, i, i && i.body)
})
}
}
time(t) {
let e = {
"M+": (new Date).getMonth() + 1,
"d+": (new Date).getDate(),
"H+": (new Date).getHours(),
"m+": (new Date).getMinutes(),
"s+": (new Date).getSeconds(),
"q+": Math.floor(((new Date).getMonth() + 3) / 3),
S: (new Date).getMilliseconds()
};
/(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length)));
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)));
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
}
}
}
};
this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r)));
let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="];
h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h)
}
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("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t)
}
wait(t) {
return new Promise(e => setTimeout(e, t))
}
done(t = {}) {
const e = (new Date).getTime(),
s = (e - this.startTime) / 1e3;
this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
}
}(t, e)
}
function initVM()
{
}
function abc(_0x5a1982, _0x5a4d0e, _0x3f44fe, _0x4c2ba2, _0x9ba7ad) {
var arrs={gg:'',bb:'1.0.4',sign:'https://nebula.kuaishou.com'};
arrs['Eý']=10;
arrs.num=10;
return JSON.stringify(arrs);
}
function isFileExist(_0x30e2f1) {
return true;
}
function addF(_0x10d26a, _0x3aa330) {
}
function destroyVM(_0x1da977) {
}