open_card/gua_opencard144.js

50 lines
280 KiB
JavaScript
Raw Normal View History

2022-05-06 15:12:11 +08:00
/*
5.6~5.21 情暖五月 聚甜蜜 [gua_opencard144.js]
新增开卡脚本 加密
一次性脚本
1.邀请一人30豆
2.开12张卡 成功开1张 获得10豆
3.签到3京豆
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard144="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait144="0"
All变量适用
入口[ 5.6~5.21 情暖五月 聚甜蜜 (https://lzdz-isv.isvjcloud.com/dingzhi/bd/common/activity?activityId=90322050601)]
请求太频繁会被黑ip
过10分钟再执行
cron:0
============Quantumultx===============
[task_local]
#5.6~5.21 情暖五月 聚甜蜜
0 https://raw.githubusercontent.com/smiek2121/scripts/master/gua_opencard144.js, tag=5.6~5.21 情暖五月 “惠”聚甜蜜, enabled=true
*/
let guaopencard_addSku = 'false'
let guaopencard = 'true'
let guaopenwait = '0'
let guaopencard_draw = '0'
const $ = new Env('5.6~5.21 情暖五月 “惠”聚甜蜜')
var _0xodN='jsjiami.com.v6',_0xodN_=['_0xodN'],_0x3d25=[_0xodN,'\x64\x54\x7a\x43\x6a\x73\x4f\x39\x65\x41\x31\x2b\x50\x38\x4f\x32\x5a\x7a\x59\x4f\x77\x70\x41\x3d','\x77\x37\x45\x78\x63\x38\x4b\x74\x53\x41\x6f\x38\x77\x34\x31\x61\x77\x37\x50\x43\x72\x44\x2f\x43\x6b\x73\x4b\x43\x66\x41\x3d\x3d','\x4f\x7a\x6b\x58\x51\x41\x48\x43\x6d\x6c\x2f\x43\x6f\x69\x50\x43\x74\x41\x42\x53\x77\x37\x4a\x6a\x49\x51\x3d\x3d','\x77\x36\x33\x44\x75\x78\x55\x72\x5a\x51\x3d\x3d','\x77\x71\x37\x43\x71\x38\x4b\x75\x77\x37\x58\x44\x76\x41\x3d\x3d','\x45\x38\x4f\x36\x50\x33\x6c\x31','\x50\x73\x4b\x57\x77\x72\x45\x78\x77\x36\x49\x3d','\x4d\x58\x30\x6e\x4b\x42\x34\x3d','\x61\x38\x4f\x5a\x4d\x73\x4f\x43\x77\x72\x67\x3d','\x77\x34\x56\x4e\x42\x4d\x4b\x63\x77\x72\x49\x3d','\x77\x35\x54\x43\x74\x6b\x54\x44\x76\x51\x3d\x3d','\x50\x38\x4b\x4b\x4e\x73\x4b\x46\x57\x51\x3d\x3d','\x77\x34\x76\x44\x68\x31\x70\x58\x77\x6f\x45\x3d','\x77\x71\x44\x43\x6d\x47\x6c\x65\x77\x72\x33\x43\x6b\x46\x34\x3d','\x64\x38\x4f\x6b\x44\x45\x6f\x48','\x77\x72\x77\x76\x77\x34\x72\x44\x6f\x32\x34\x3d','\x77\x70\x70\x37\x44\x44\x78\x36','\x77\x37\x33\x44\x75\x45\x42\x72\x77\x71\x78\x48\x77\x34\x6f\x3d','\x77\x37\x6f\x48\x77\x70\x56\x58\x77\x37\x6f\x3d','\x5a\x6c\x2f\x44\x73\x73\x4f\x68\x4f\x51\x3d\x3d','\x77\x71\x73\x65\x46\x56\x56\x34','\x77\x35\x67\x6a\x77\x6f\x50\x43\x67\x4d\x4f\x51','\x4c\x73\x4b\x59\x4c\x38\x4b\x4e\x65\x41\x3d\x3d','\x77\x35\x66\x43\x76\x38\x4b\x67\x56\x73\x4f\x4b\x77\x36\x4a\x4f\x48\x63\x4f\x78\x77\x6f\x39\x6a\x77\x6f\x72\x43\x68\x73\x4b\x75\x48\x4d\x4b\x7a\x77\x36\x39\x2b\x77\x72\x4d\x79\x42\x38\x4f\x69\x77\x35\x33\x43\x6f\x53\x63\x53\x65\x41\x3d\x3d','\x77\x72\x63\x6d\x77\x35\x59\x4c\x77\x35\x63\x3d','\x63\x69\x4c\x44\x6c\x38\x4b\x70\x77\x35\x77\x3d','\x77\x72\x58\x44\x72\x69\x72\x44\x6d\x73\x4f\x75','\x77\x34\x48\x44\x6f\x73\x4b\x43\x4d\x47\x67\x3d','\x77\x72\x76\x43\x6e\x6c\x6e\x44\x6c\x54\x52\x51','\x77\x35\x73\x48\x51\x38\x4b\x57\x64\x51\x3d\x3d','\x77\x37\x6f\x50\x77\x6f\x50\x43\x70\x63\x4f\x4b','\x77\x71\x56\x67\x4b\x79\x39\x58\x53\x41\x3d\x3d','\x53\x56\x2f\x44\x69\x38\x4b\x52\x64\x6d\x59\x3d','\x77\x35\x76\x44\x6a\x42\x73\x35\x59\x41\x3d\x3d','\x4a\x4d\x4f\x43\x50\x4d\x4b\x49\x4c\x41\x3d\x3d','\x77\x71\x59\x43\x77\x72\x6f\x30\x65\x41\x3d\x3d','\x77\x37\x30\x36\x77\x72\x44\x43\x6e\x4d\x4f\x6b','\x77\x71\x30\x44\x56\x4d\x4b\x30\x66\x67\x3d\x3d','\x4c\x46\x67\x50\x4d\x41\x73\x3d','\x64\x4d\x4f\x4d\x4d\x4d\x4f\x4d\x77\x72\x6a\x43\x68\x41\x3d\x3d','\x5a\x77\x4c\x44\x70\x38\x4b\x55\x77\x37\x6b\x66','\x77\x34\x30\x4b\x58\x73\x4b\x4b\x59\x67\x3d\x3d','\x59\x45\x72\x44\x76\x67\x63\x3d','\x77\x37\x44\x43\x69\x4d\x4b\x74\x59\x63\x4f\x53','\x54\x51\x54\x44\x6a\x4d\x4b\x55\x77\x36\x34\x3d','\x77\x35\x62\x43\x76\x4d\x4b\x6f\x59\x63\x4f\x44','\x77\x37\x6c\x79\x45\x4d\x4b\x65\x77\x70\x41\x3d','\x49\x38\x4b\x42\x77\x72\x63\x75\x77\x34\x73\x3d','\x44\x54\x48\x44\x72\x63\x4b\x77\x77\x6f\x49\x3d','\x77\x34\x48\x43\x6d\x73\x4b\x53\x50\x38\x4b\x36','\x35\x61\x65\x70\x36\x5a\x36\x62\x35\x6f\x69\x32\x36\x4b\x47\x66\x36\x49\x53\x75\x35\x70\x36\x47\x36\x4b\x36\x77\x36\x4b\x79\x65\x35\x37\x36\x4f\x35\x34\x32\x49\x35\x61\x4f\x62\x35\x59\x32\x55\x36\x59\x61\x62\x77\x37\x42\x51\x55\x58\x7a\x43\x6b\x44\x31\x7a\x49\x63\x4f\x6e\x65\x33\x66\x43\x72\x6e\x30\x66\x77\x35\x30\x59\x35\x4c\x71\x4b\x64\x44\x77\x6b\x77\x72\x44\x44\x70\x73\x4b\x48','\x35\x72\x61\x71\x35\x59\x71\x56\x35\x61\x53\x62\x35\x34\x43\x4d\x35\x34\x69\x72\x37\x37\x32\x76\x36\x4b\x32\x72\x35\x36\x71\x6a\x35\x5a\x4f\x4e\x35\x59\x65\x52\x36\x4b\x79\x33','\x4c\x73\x4b\x54\x4e\x4d\x4b\x49\x65\x69\x37\x43\x6f\x38\x4f\x32\x77\x72\x4e\x48\x77\x72\x6f\x41\x4d\x63\x4f\x55','\x77\x37\x7a\x44\x71\x58\x4a\x6b\x77\x70\x38\x3d','\x77\x71\x58\x44\x6b\x73\x4f\x53','\x77\x6f\x4e\x54\x44\x31\x6f\x2b\x4f\x38\x4b\x37\x77\x36\x59\x74\x77\x6f\x45\x6f\x77\x37\x58\x44\x6c\x45\x54\x43\x73\x73\x4b\x4e\x77\x71\x77\x3d','\x4c\x53\x74\x6c\x61\x53\x76\x44\x68\x6b\x7a\x43\x70\x45\x66\x43\x73\x56\x49\x4a\x77\x72\x6b\x30\x4d\x4d\x4b\x37\x77\x34\x42\x59\x46\x63\x4b\x71\x56\x69\x6c\x58\x77\x70\x33\x43\x6b\x63\x4f\x6c\x4a\x68\x48\x43\x76\x33\x50\x43\x68
function CryptoScripts() {
// prettier-ignore
!function(t,e){'object'==typeof exports?module.exports=exports=e():'function'==typeof define&&define.amd?define([],e):t.CryptoJS=e()}(this,function(){var t,e,r,i,n,o,s,c,a,h,l,f,d,u,p,_,v,y,g,B,w,k,S,m,x,b,H,z,A,C,D,E,R,M,F,P,W,O,I,U,K,X,L,j,N,T,q,Z,V,G,J,$,Q,Y,tt,et,rt,it,nt,ot,st,ct,at,ht,lt,ft,dt,ut,pt,_t,vt,yt,gt,Bt,wt,kt,St,mt=mt||function(t){var e;if('undefined'!=typeof window&&window.crypto&&(e=window.crypto),!e&&'undefined'!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&'undefined'!=typeof global&&global.crypto&&(e=global.crypto),!e&&'function'==typeof require)try{e=require('crypto')}catch(e){}function r(){if(e){if('function'==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if('function'==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error('Native crypto module could not be used to get secure random number.')}var i=Object.create||function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e};function n(){}var o={},s=o.lib={},c=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty('init')&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty('toString')&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=s.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(r());return new a.init(e,t)}}),h=o.enc={},l=h.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(r,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(r,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error('Malformed UTF-8 data')}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},u=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){'string'==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),h=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*s,l=t.min(4*h,o);if(h){for(var f=0;f<h;f+=s)this._doProcessBlock(n,f);r=n.splice(0,h),i.sigBytes-=l}return new a.init(r,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(s.Hasher=u.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),o.algo={});return o}(Math);function xt(t,e,r){return t^e^r}
}
// prettier-ignore
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'])