32 lines
208 KiB
JavaScript
32 lines
208 KiB
JavaScript
|
/*
|
|||
|
腾讯自选股V2 兑换京东e卡,搬运修改,jd开头是方便拉取
|
|||
|
|
|||
|
更新了一下脚本,精简了需要的CK,多账户用换行(\n)或者@或者#隔开,尽量用换行隔开因为我没测试其他
|
|||
|
一天跑两次就够了,10点到13点之间运行一次猜涨跌做任务,16点半之后运行一次领猜涨跌奖励
|
|||
|
提现设置:默认提现5元,需要改的话自己设置TxStockCash变量,0代表不提现,1代表提现1元,5代表提现5元
|
|||
|
新手任务设置:默认不做新手任务,需要做的话设置TxStockNewbie为1
|
|||
|
分享任务设置:默认会做互助任务,需要多账号,黑号也能完成分享任务。不想做的话设置TxStockHelp为0
|
|||
|
可以设置某些号只助力别的号不做任务(没资格的小号可以助力大号),在对应的ck后面加&task=0
|
|||
|
没有捉到微信CK的也可以跑脚本,删掉wzq_qlskey和wzq_qluin就行,会尝试用APP的CK去完成微信任务,出现做任务失败是正常现象
|
|||
|
|
|||
|
青龙捉包,需要捉APP和公众号里面的小程序
|
|||
|
1. 打开APP,捉wzq.tenpay.com包,把url里的openid和fskey用&连起来填到TxStockCookie
|
|||
|
2. 公众号 腾讯自选股微信版->右下角好福利->福利中心,捉wzq.tenpay.com包,把Cookie里的wzq_qlskey和wzq_qluin用&连起来填到TxStockCookie
|
|||
|
格式如下:
|
|||
|
export TxStockCookie='openid=xx&fskey=yy&wzq_qlskey=zz&wzq_qluin=aa'
|
|||
|
|
|||
|
V2P,圈X重写:
|
|||
|
打开APP和小程序自动获取
|
|||
|
小程序入口:公众号 腾讯自选股微信版->右下角好福利->福利中心
|
|||
|
[task_local]
|
|||
|
#腾讯自选股
|
|||
|
35 11,16 * * * https://raw.githubusercontent.com/leafxcy/JavaScript/main/txstockV2.js, tag=腾讯自选股, enabled=true
|
|||
|
[rewrite_local]
|
|||
|
https://wzq.tenpay.com/cgi-bin/.*user.*.fcgi url script-request-header https://raw.githubusercontent.com/leafxcy/JavaScript/main/txstockV2.js
|
|||
|
[MITM]
|
|||
|
hostname = wzq.tenpay.com
|
|||
|
10 10 * * * jd_txstockex.js
|
|||
|
*/
|
|||
|
var _0xodA='jsjiami.com.v6',_0xodA_=['_0xodA'],_0x3fda=[_0xodA,'ZmhEUUU=','Z2FBTFI=','eUdpaXY=','YUtKTVU=','QmdoUVA=','Y2F0Y2g=','bG9nRXJy','ZmluYWxseQ==','MXwyfDB8NHwz','b3BlbmlkPWFub255bW91cw==','ZnNrZXk9','TEtncmw=','emZaZmo=','ZWZnVEQ=','QlhIT2Y=','d3pxX3FsdWluPQ==','ekhaZVU=','RURYVmM=','dXJs','Y2dpLWJpbi91c2VyaW5mby5mY2dp','Q29va2ll','bWF0Y2g=','T2pWZkQ=','QVRuV3I=','cUphU3M=','SWVuSEM=','b3JHa2s=','bXlZbVk=','bUF2S0M=','ZVFJRlo=','TXZCUWk=','bm10QW0=','RXhWcFI=','VFJpWFo=','Y01RSUg=','IOabtOaWsOesrA==','bUFoSE0=','U2ZhSk4=','IOiOt+WPluesrDHkuKpja+aIkOWKnzog','ZmZmcXE=','Y2dpLWJpbi9hY3Rpdml0eV91c2VyY2VudGVyLmZjZ2k=','V0dCSEQ=','YUxWc0Y=','ck1HQlI=','R3RXakY=','R2tNZG4=','cFFMVEk=','SmdFTFE=','eEVvS2c=','WE9GRG0=','T1ZBZ0U=','ak5oYlQ=','SGloSlY=','bUJ1d2c=','Z2V0TW9udGg=','Z2V0RnVsbFllYXI=','Ynh1cFA=','Z2V0RGF0ZQ==','YmZwcU8=','enRYb1k=','5YWx5om+5Yiw','5Liq5pyJ5pWI6LSm5Y+3','6L+Q6KGM6YCa55+lCgo=','UGdNYm0=','eVlxZWQ=','Li9zZW5kTm90aWZ5','Sk1oSXA=','Zmd5a0o=','SnFGR3I=','T1RFR04=','eXFpZWc=','WHRUc2s=','S1ZlTFA=','VWNUVko=','cXVqcXk=','Znh4WlE=','T3lLaGE=','VW1uYk0=','dUxndFE=','c2VuZE5vdGlmeQ==','ZnR4YW8=','VnlhYVQ=','UkxJSkU=','aGpBcFE=','cnBoSXQ=','WFhoeFY=','c0xjdUs=','SmJKaUY=','NHwyfDN8MXww','WEx5Rlg=','eWxyZkI=','ZlNEWFY=','Cj09PT09PT09PT09PT0gUHVzaERlYXIg6YCa55+lID09PT09PT09PT09PT0K','c3RkU3A=','aHR0cHM6Ly9hcGkyLnB1c2hkZWVyLmNvbS9tZXNzYWdlL3B1c2g/cHVzaGtleT0=','JnRleHQ9','VkpJSVM=','cnpwSXE=','d1VWbkI=','dkxyV1M=','Y29udGVudA==','cmVzdWx0','Cj09PT09PT09PT0gUHVzaERlYXIg6YCa55+l5Y+R6YCB','ID09PT09PT09PT0K','RktrQ1A=','WmlxbmY=','dEZiQ3E=','QkRBdXU=','aUp0Q0w=','TGVwYU8=','eFhEVWw=','Y0FuV2U=','UlNFdWs=','aVBkUlg=','b09udGI=','T1BXWGQ=','WEFWalE=','bmN5aEI=','TU9UQ0E=','anBJaGo=','c1FpVGs=','TFBua0U=','S1dJUFY=','TEVZUGk=','SmRNbGY=','bEp3Y24=','Ym5pVHY=','ZWdlSG4=','TEZJeXE=','dUVkYXk=','Wll2RHg=','TlJCV2Q=','em9yTXo=','SFZGR3Q=','S3JYekM=','Y0pPU1I=','bkFUU3M=','RnN5SVo=','T0FFaUg=','UUhHR2M=','U2ptd0Q=','VnpJSlo=','QVpDS0k=','b0ZSblg=','TmRxTEw=','QWFqRmg=','Q0lWaVU=','Tlp1VEQ=','cnlIREs=','UVhoQlY=','SU1ScHQ=','cE1TRnA=','V250Z3E=','QkJRSmo=','TFhVcWE=','eE9NbFg=','6K+35rGC5aSx6LSl','c3RyaW5naWZ5','UmlmR0g=','YkdkUE4=','UFNrYlE=','Z0ZkWWM=','SldjRVE=','dFdTU2s=','WlZzalM=','VVhCTWU=','R1NpYVA=','bGNsS2I=','WUdZUG0=','S1ZCcWE=','V0RTY1E=','dXR4cVA=','S1RESkQ=','cWh2UnE=','U0tBaXQ=','aW9JTE8=','Z2Vrc0M=','Uk54Tm8=','akRrYnY=','dVBIY1I=','ZWVwWUQ=','WENlakw=','eXVQUXU=','Y3ppSXQ=','bkxjWlk=','b2JqZWN0','bXJNWVA=','ZlVVTWo=','QlFodUE=','Tk96UE8=','QU5oQ3Q=','VVhhUnY=','V3VPa0Y=','VmhKZVg=','dUhZb3c=','TUNrTVQ=','b1lEVXA=','SW9mRkw=','TGZqREU=','THFzaFk=','a05NdUU=','b0hhQ0I=','a21rWVQ=','dXlZUW4=','ck5Mdmw=','dHVsVno=','SmVoVXQ=','YWJjZGVmMDEyMzQ1Njc4OQ==','V0plTXY=','bG1ZTHQ=','RUlEYU4=','elFzdGI=','eEhsWlo=','WWtiQkE=','YXZWRks=','V3JGZFQ=','cmFuZG9t','QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLz0=','NHwzfDB8NXwxfDI=','bHNJclg=','bml6blE=','ZmZDQXI=','R21henE=','SWpDblI=','am1NeGU=','dVpVYW0=','UGpRWlg=','S0h3c1g=','ZkZ1Zkw=','bmFnZEo=','eFV1VmI=','SFpwY3I=','UU52Sng=','TUhKc0g=','U01YTXg=','WWNscm4=','eW13Zk0=','TkRpZWM=','cVN5cnc=','dkdJTHE=','Y1Nxc0U=','akdZaHM=','MnwwfDN8MXw0fDd8Nnw1','dnhEU0w=','ZnhpR3c=','TXJJb1o=','QnF3cWg=','YU5BZXk=','Q05LbkQ=','Q3FZWWI=','ckVscmY=','WXdKcm0=','cERDQlA=','Q2dwYlk=','aXhVelU=','cFhQQng=','eFNOZWI=','TlFxRlA=','aUZJSFI=','b3l3eHo=','eU5xa1U=','UldwUkk=','akJPb2k=','R3lFZHI=','SHdNclU=','ZkF4S1o=','RkxJRFM=','RkNwTHc=','SEJNcHg=','UnlmTFM=','dW5pWWI=','Y2hheHQ=','RkRRbW0=','SGhwUXc=','SXJBSWg=','V3ZUS0M=','SGd6Y28=','Y2FMZEc=','cm10U0U=','TmNtRnQ=','WGVPd2Y=','ZEljYU8=','ek5tSkY=','U0t5Zkk=','TXl0dFM=','UWpNekU=','MXw0fDN8Mnww','cWZwYlg=','Q2hncU0=','QnNkY1A=','WmJscXE=','ZWN2TWc=','Q1hXWHE=','SFdKdkw=','aG51SFE=','SEV5YlM=','c0ZhTk4=','TXBZREI=','bHV0clI=','enFDaGw=','aVVtTWY=','cFFKZ0Q=','cldkR2U=','S3JaU3A=','SkZOSWE=','RkZ0aUY=','Z3hBb24=','Y0xEbkQ=','UmlXTVQ=','SWFaREo=','dVhVVVY=','aVhGUFQ=','amVTZ0U=','UVRXTFA=','ZGpnakE=','aVRnQ2Y=','WWpFZ2I=','S3dpZHA=','YUJQcE0=','UUNVY3Q=','QlJvTHc=','VmlOZEU=','cXJEbnI=','S2F6RGg
|
|||
|
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),"PUT"===e&&(s=this.put),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")}put(t){return this.send.call(this.env,t,"PUT")}}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=(()=>
|