Skip to content

Commit

Permalink
新增高清mp4每日登陆 pdg2pdf签到 [待测试]
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenmoux committed Feb 15, 2024
1 parent 0afd802 commit f2f3d99
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 61 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
- [x] [共创世界](https://www.ccw.site/)每日签到
- [x] [月影别墅]()每日任务
- [x] [科研通](https://www.ablesci.com)每日签到
- [x] [pdg2pdf](https://www.pdg2pdf.com/)每日签到
- [x] [高清mp4](https://mp4fan.org/)每日登录

</details>


Expand Down Expand Up @@ -137,6 +140,9 @@ ql repo https://github.com/Wenmoux/checkbox.git "checkbox|install" "old" "module
<details>
<summary>更新日志</summary>

- 2024-02-15
- 新增[pdg2pdf](https://www.pdg2pdf.com/)每日签到
- 新增[高清mp4](https://mp4fan.org/)每日登录
- 2024-02-09 新增月影别墅签到
- 2024-1-19 更新修复魅族社区每日任务
- 2024-01-01
Expand Down
8 changes: 4 additions & 4 deletions Template.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ function sign(op, header, rules,formhash) {
res2data = require("iconv-lite").decode(res2, op.charset);
} else {
res2data = res2
}
res2data = "" + res2data
}
if (res2data.match(/id=\"messagetext\".*?<p>(.+?)<\/p>/s)) { //dz论坛大多都是
msg = res2data.match(/id=\"messagetext\".*?<p>(.+?)</s)[1];
} else if ((!(rules.url.match(/togamemod|sayhuahuo|99fuman/) )) && res2data.match(/<root><!\[CDATA\[/)) {
} else if ((!(rules.url.match(/togamemod|sayhuahuo|99fuman|mp4fan/) )) && res2data.match(/<root><!\[CDATA\[/)) {
msg = res2data.match(/<!\[CDATA\[(.+?)>/)[1].replace(/]/g, "").replace(/<script.+/, "")
if (rules.name == "【Hires后花园】: " && res2.data.match(/签到成功/)) msg = res2data.match(/签到成功~随机奖励新币\d+/)[0]
} else if (op.reg2 && res2data.match(op.reg2)) {
Expand Down Expand Up @@ -80,7 +79,6 @@ function get(url, header, method = "get", data = null) {
});
}


async function Template(rules) {
const header = {
headers: {
Expand All @@ -99,11 +97,13 @@ async function Template(rules) {
formhash = formhash ? formhash[1] : ""
for (i = 0; i < rules.op.length &&canDo; i++) {
msg = await sign(rules.op[i], header, rules,formhash)

message += " " + rules.op[i].name + ":" + msg + "\n"
console.log(msg)
}
if(rules.credit && canDo) message+= " 资产:"+await getcredit(rules)
} else {
// console.log(checkres)
ckstatus = 0
message = " cookie失效";
}
Expand Down
8 changes: 7 additions & 1 deletion config.yml.temple
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,10 @@ ablesci:
cookie:

simba:
refreshtoken:
refreshtoken:

pdg2pdf:
cookie:

mp4fan:
cookie:
52 changes: 0 additions & 52 deletions scripts/aoqi.js.bak

This file was deleted.

19 changes: 19 additions & 0 deletions scripts/mp4fan.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const rules = {
name: "【高清mp4】: ",
url: "https://mp4fan.org/", //用于获取formhash的链接
cookie: config.mp4fan.cookie,
formhash: 'formhash=(.+)"', //formhash正则
verify: "登录", //验证cookie状态
op: [{
name: "登录",
method: "get",
url: "https://mp4fan.org/",
reg2: "退出"
}]
};

async function jlpzj() {
const template = require("../Template");
return rules.name + await template(rules)
}
module.exports = jlpzj
23 changes: 23 additions & 0 deletions scripts/pdg2pdf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const axios = require('axios');

async function dailyCheckin() {
try {
const headers = {
cookie: config.pdg2pdf.cookie
}
const response = await axios.post('https://pdg2pdf.com/api/user/daily_checkin', "",{headers});
if (response.data.check_count) {
msg = '签到成功!✅'
} else {
msg = '签到失败!❌'+response.data.error
}
console.log(msg)
return "【PDG2PDF】:"+msg
} catch (error) {
msg = `签到失败!❌ 错误信息:${error.response.data.error}`
console.log(msg)
return "【PDG2PDF】:"+msg
}
}

module.exports = dailyCheckin;
23 changes: 20 additions & 3 deletions scripts/shanyi.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ let sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
const axios = require("axios")
token = config.shanyi.token
u = config.shanyi.u
urlpara = "&v=1.0.0&app_version=2.4.5&client=" + config.shanyi.client
datapara = "&u=" + jm(u)+ "&token=" + jm(token)
urlpara = "&v=1.0.0&app_version=2.4.9&client=" + config.shanyi.client
datapara = `&app_name=cogtp4oTssfpdYweEMohGA%3D%3D&channel_id=5nXP9qADvw3bmKOnRJA5Xw%3D%3D&device_name=uURHx5OPWK2lV1ifRonAMQ%3D%3D&device_system_version=TPldVC12AsDuAix9Y89Jyg%3D%3D&is_rand=5nXP9qADvw3bmKOnRJA5Xw%3D%3D&token=${token}&u=${u}`
function post(options) {
//let params = Object.assign({}, para, options.para);
return new Promise((resolve, reject) => {
axios.post(mixin.baseUrl + options.url + urlpara, options.data + datapara, {
headers: {
Expand Down Expand Up @@ -54,6 +53,24 @@ function jm(data) {
return encodeURIComponent(str.toString())
}

function decryptJm(data) {
let algorithm = 'aes-128-cbc'
let passwd = 'WDF#$H*#SJN*&G$&'
let iv = 'JH&$GF$DR%*K@SC%'
let cryptojs = require('crypto-js');
let encrypted = decodeURIComponent(data);
let cipherText = cryptojs.enc.Base64.parse(encrypted);
let key = cryptojs.enc.Utf8.parse(passwd);
let ivHex = cryptojs.enc.Utf8.parse(iv);
let decrypted = cryptojs.AES.decrypt(
{ ciphertext: cipherText },
key,
{ iv: ivHex, mode: cryptojs.mode.CBC, padding: cryptojs.pad.ZeroPadding }
);
a= decrypted.toString(cryptojs.enc.Utf8);
return a
}

function ling(name, type, taskid) {
task(name + " 奖励领取:", "/?m=user&op=daily_task&ac=receive_task_limit_bonus", `task_id=${taskid}&type=${type}`)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/ssly.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ uid = config.ssly.uid; //抓包看,比如签到的post包里就有u_id,如120487
function ssly() {
return new Promise(async (resolve) => {
try {
let url = `https://sslyapp.top/mz_pbl/app_con/add_sign.php`;
let url = `https://sslyapp.site/mz_pbl/app_con/add_sign.php`;
let timestamp = Math.floor((new Date()).getTime()/1000)+"";
timestamp = timestamp.replace(/^\s+|\s+$/g,"");
let mac = CryptoJS.MD5(CryptoJS.SHA1(CryptoJS.MD5(timestamp).toString()).toString()).toString();
Expand Down

0 comments on commit f2f3d99

Please sign in to comment.