├── cx └── README.md ├── README.md ├── coolbuy ├── README.md └── coolbuy.js └── 10sread └── jrkuaixun.js /cx/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 人间荒唐市侩,不如山中作怪。 2 | 3 | 4 | 5 | ### [TG:car](https://t.me/xiubuye) 6 | -------------------------------------------------------------------------------- /coolbuy/README.md: -------------------------------------------------------------------------------- 1 | # 没啥用 签到一个月要么抽奖换6.66微信红包,要么兑换100-50券或者一个手机壳 2 | 3 | 只能node跑 4 | 5 | 小程序:玩物志好物商店 6 | 网页:https://coolbuy.com 7 | 8 | 需要的参数 9 | 10 | 11 | ``` 12 | { 13 | "type": "wx或者web 小程序就是wx", 14 | "authorization": "只有小程序才需要这个", 15 | "cookie": "这里面是你的cookie" 16 | } 17 | ``` 18 | 19 | 填完之后去这里压缩并转义 https://m.sojson.com/yasuoyihang.html 20 | 结果如下 21 | 22 | {\"type\":\"wx或者web 小程序就是wx\",\"authorization\":\"只有小程序才需要这个\",\"cookie\":\"这里面是你的cookie\"} 23 | 24 | ## export coolBuyStr={\"type\":\"wx或者web 小程序就是wx\",\"authorization\":\"只有小程序才需要这个\",\"cookie\":\"这里面是你的cookie\"} 25 | -------------------------------------------------------------------------------- /coolbuy/coolbuy.js: -------------------------------------------------------------------------------- 1 | let cbuys = process.env.coolBuyStr 2 | // console.log(cbuys) 3 | let result = "" 4 | let lotterycs = 0 5 | const axios = require("axios") 6 | if (cbuys) { 7 | cbuy = JSON.parse(cbuys) 8 | headers = { 9 | "content-type": "application/json;charset=UTF-8", 10 | "origion": "https://coolbuy.com", 11 | "host": "coolbuy.com", 12 | "user-agent": "Mozilla/5.0 (Linux; Android 10; Redmi K30) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36", 13 | "referer": "https://coolbuy.com/article/994/?tabbar=hidden&task_finished_modal_show", 14 | "cookie": cbuy.cookie 15 | } 16 | if (cbuy.type == "wx") { 17 | headers["x-csrftoken"] = null 18 | headers["x-pepe-merchant-id"] = 1 19 | headers["x-requested-with"] = "com.tencent.mm" 20 | headers["authorization"] =cbuy.authorization.replace("Bearer","Bearer ") 21 | } else { 22 | headers["x-csrftoken"] = cbuy.cookie.match(/csrftoken=(.+?);/)[1] 23 | headers["sec-ch-ua-mobile"] = "?1" 24 | } 25 | coolbuy() 26 | } else { 27 | console.log("你啥都没填,跑个鬼") 28 | } 29 | 30 | 31 | function interact(id) { 32 | return new Promise(async (resolve) => { 33 | try { 34 | let url = "https://coolbuy.com/api/v1.4/page/point/" 35 | let data = { 36 | "page_id": id 37 | } 38 | let res = await axios.post(url, data, { 39 | headers 40 | }) 41 | console.log(res.data) 42 | if (res.data.status == "valid") { 43 | console.log("阅读奖励领取成功") 44 | } else { 45 | console.log(res.data) 46 | } 47 | 48 | } catch (err) { 49 | console.log(err.response.data); 50 | 51 | } 52 | resolve(); 53 | }); 54 | } 55 | 56 | function sign() { 57 | return new Promise(async (resolve) => { 58 | try { 59 | let url = "https://coolbuy.com/api/v1.4/member/checkin/" 60 | let res = await axios.post(url, {}, { 61 | headers 62 | }) 63 | if (res.data.checked_in_today) { 64 | console.log("签到成功") 65 | } 66 | } catch (err) { 67 | console.log(err.response.statusText); 68 | 69 | } 70 | resolve(); 71 | }); 72 | } 73 | 74 | function lottery() { 75 | return new Promise(async (resolve) => { 76 | try { 77 | let url = "https://coolbuy.com/api/v1.4/member-lottery/" 78 | 79 | let data = { 80 | "lottery_id": 3 81 | } 82 | // await axios.get(`https://coolbuy.com/api/v1.4/page/${id}`,{headers}) 83 | let res = await axios.post(url, data, { 84 | headers 85 | }) 86 | if (res.data.name) { 87 | console.log("抽奖结果:" + res.data.name) 88 | } else { 89 | console.log(res.data) 90 | } 91 | } catch (err) { 92 | console.log(err.response.statusText); 93 | 94 | } 95 | resolve(); 96 | }); 97 | } 98 | 99 | function getinfo() { 100 | return new Promise(async (resolve) => { 101 | try { 102 | let url = "https://coolbuy.com/api/v1.4/member/" 103 | let res = await axios.get(url, { 104 | headers 105 | }) 106 | info = `${res.data.nickname} || 可用玩币:${res.data.available_point} || ${res.data.checked_in_today==1?"今日已签":"今日未签"} || 连签${res.data.continuous_check_in_days}天` 107 | lotterycs = res.data.lottery_ticket_count 108 | console.log(info) 109 | result = "【玩物志好物商店】:" + info 110 | } catch (err) { 111 | console.log(err) 112 | console.log(err.response.statusText); 113 | result = "【玩物志好物商店】:" + err.response.statusText 114 | } 115 | resolve(); 116 | }); 117 | } 118 | async function coolbuy() { 119 | await getinfo() 120 | ids = [1060, 1063, 1061, 1062, 1048, 1049, 1047, 1056, 1054, 1064] 121 | for (id of ids) { 122 | await interact(id) 123 | } 124 | await sign() 125 | for (i = 0; i < lotterycs - 5; i++) { 126 | await lottery() 127 | } 128 | await getinfo() 129 | // return result 130 | } -------------------------------------------------------------------------------- /10sread/jrkuaixun.js: -------------------------------------------------------------------------------- 1 | /* 2 | 10s阅读 3 | 微信打开立即参与 -> http://h5.vergina.online/j/r2?upuid=136513&ch=xmy 4 | 备用链接 -> http://h5.vergina.online/j/r2?upuid=136513&ch=xmy 5 | 6 | 每小时有0.3 一天5轮 一天1.5 7 | 进不去关注10秒读书极速版公众号用官方链接 8 | 使用方法:点击开始阅读 成功阅读一次即可抓到包 9 | 脚本没写过盾的 10 | 每次运行都要手动验证一次(也就是一天5次) 11 | 点立即阅读,等文章出来后关闭页面(注意 千万不要返回) 12 | 拉一人头提现0.3奖励0.5 0.8再奖励0.5 13 | https://t.me/wenmou_car 14 | 15 | [task_local] 16 | #10s阅读 17 | 0 8-14/1 * * * https://raw.githubusercontent.com/Wenmoux/scripts/wen/other/jrkuaixun.js, tag=10s阅读, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true 18 | [rewrite_local] 19 | #10s阅读 20 | .*read_channel\/do_read&pageshow.* url script-request-header https://raw.githubusercontent.com/Wenmoux/scripts/wen/other/jrkuaixun.js 21 | 22 | #loon 23 | http-request .*read_channel\/do_read&pageshow.* script-path=https://raw.githubusercontent.com/Wenmoux/scripts/wen/other/jrkuaixun.js, requires-body=true, timeout=10, tag=10s阅读 24 | 25 | #surge 26 | 27 | 10s阅读 = type=http-request,pattern=.*read_channel\/do_read&pageshow.*,requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/Wenmoux/scripts/wen/other/jrkuaixun.js,script-update-interval=0 28 | 29 | [MITM] 30 | hostname = m.lainiwl.top 31 | 32 | */ 33 | const $ = new Env('10s阅读'); 34 | const notify = $.isNode() ? require('./sendNotify') : ''; 35 | const jrpush = $.isNode() ? (process.env.jrpush ? process.env.jrpush : false) :false; 36 | const UA = $.isNode() ? (process.env.Read10UA ? process.env.Read10UA : "Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045617 Mobile Safari/537.36 MMWEBID/5077 MicroMessenger/8.0.6.1900(0x2800063D) Process/tools WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64") : ($.getdata('Read10UA') ? JSON.parse($.getdata('Read10UA')) : "Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045617 Mobile Safari/537.36 MMWEBID/5077 MicroMessenger/8.0.6.1900(0x2800063D) Process/tools WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64") 37 | let host = $.getdata('read10surl')?$.getdata('read10surl'):`http://m.renrenshua.shop`; 38 | let cookiesArr = [$.getdata('read10sck')] 39 | if ($.isNode()) { 40 | cookiesArr = process.env.Readck ? process.env.Readck.split("@") : [] 41 | host = process.env.readapi ? process.env.readapi : host 42 | } 43 | message = "" 44 | !(async () => { 45 | if (typeof $request !== "undefined") { 46 | await read10sck() 47 | } 48 | if (!cookiesArr[0]) { 49 | $.msg($.name, '【提示】请先获取cookie', '微信打开 http://h5.vergina.online/j/r2?upuid=136513&ch=xmy', { 50 | "open-url": "http://h5.vergina.online/j/r2?upuid=136513&ch=xmy" 51 | }); 52 | return; 53 | } 54 | console.log(`共${cookiesArr.length}个账号`) 55 | for (let k = 0; k < cookiesArr.length; k++) { 56 | $.canRead = true 57 | $.message = "" 58 | cookie = cookiesArr[k]; 59 | for (let i = 0; i < 33 && $.canRead; i++) { 60 | console.log(`账号【${k+1}】第${i+1}次阅读中`) 61 | // console.log(i) 62 | let url = await read() 63 | if (url) { 64 | if (url == "/read_channel/finish") { 65 | console.log("已达到阅读上限,下个小时再来吧") 66 | i = 9999 67 | } else { 68 | await read(url) 69 | await $.wait(1000); 70 | } 71 | } 72 | if ($.message.length != 0) { 73 | message += `账号【${k+1}】:${$.message} \n\n ` 74 | } 75 | } 76 | } 77 | if (message.length != 0) { 78 | $.msg($.name, "", '10s阅读' + message) 79 | } 80 | if ($.isNode() && jrpush) { 81 | if (message.length != 0) { 82 | await notify.sendNotify("10s阅读", `${message}\n\n吹水群:https://t.me/wenmou_car`); 83 | } 84 | } else { 85 | $.msg($.name, "", '10s阅读' + message) 86 | } 87 | 88 | })() 89 | .catch((e) => $.logErr(e)) 90 | .finally(() => $.done()) 91 | //获取活动信息 92 | 93 | 94 | function read10sck() { 95 | if ($request.url.indexOf("do_read") > -1) { 96 | const read10surls = $request.url 97 | let read10surl = read10surls.match(/(.+?)\/read_channel/) 98 | $.setdata(JSON.stringify($request.headers),"read10surl") 99 | // $.msg($.name, "", '10s阅读 获取数据获取成功!'+read10surl) 100 | if(read10surl) $.setdata(read10surl[1],"read10surl") 101 | if ($request.headers.Cookie) $.setdata($request.headers.Cookie, `read10sck`) 102 | $.log(read10sck) 103 | $.msg($.name, "", '10s阅读 获取数据获取成功!') 104 | } 105 | } 106 | 107 | function read(url1) { 108 | return new Promise(async (resolve) => { 109 | if (!url1) { 110 | url = `${host}/read_channel/do_read&pageshow&r=` 111 | } else { 112 | url = url1 113 | } 114 | let headers = { 115 | cookie, 116 | referer:url, 117 | "X-Requested-With": "XMLHttpRequest", 118 | "User-Agent": UA 119 | } 120 | let options = { 121 | headers, 122 | url 123 | } 124 | // console.log(options) 125 | $.get(options, async (err, resp, data) => { 126 | try { 127 | if (err) { 128 | // console.log(`${JSON.stringify(err)}`); 129 | // console.log(`${$.name} API请求失败,请检查网路重试`); 130 | console.log(err) 131 | } else { 132 | console.log(url) 133 | if (!url1) { 134 | // console.log(data) 135 | data = JSON.parse(data); 136 | if (data.url) { 137 | resolve(data.url) 138 | /* else{ 139 | $.message = "该账号需要验证请手动阅读一次并关掉页面(不要点返回)" 140 | $.canRead = false 141 | } 142 | */ 143 | } else { 144 | // console.log(data.click_check) 145 | if (data.click_check ) { 146 | $.message = "该账号需要验证请手动阅读一次并关掉页面(不要点返回)" 147 | console.log($.message) 148 | } else { 149 | console.log(data) 150 | } 151 | $.canRead = false 152 | } 153 | } 154 | } 155 | } catch (e) { 156 | $.logErr(e, resp); 157 | } finally { 158 | resolve(); 159 | } 160 | }); 161 | }); 162 | } 163 | 164 | 165 | function jsonParse(str) { 166 | if (typeof str == "string") { 167 | try { 168 | return JSON.parse(str); 169 | } catch (e) { 170 | console.log(e); 171 | $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie') 172 | return []; 173 | } 174 | } 175 | } 176 | 177 | // prettier-ignore 178 | 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)} 179 | 180 | --------------------------------------------------------------------------------