29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
// # Source: https://github.com/Wenmoux/checkbox/blob/master/scripts/ugsnx.js
|
||
// # Raw: https://raw.githubusercontent.com/Wenmoux/checkbox/master/scripts/ugsnx.js
|
||
// # Repo: Wenmoux/checkbox
|
||
// # Path: scripts/ugsnx.js
|
||
// # UploadedAt: 2021-09-25T00:15:59Z
|
||
// # SHA256: 62534dd85b6f24116fc614bca2846afa150ea0a8351dabb0de54e53be897dbef
|
||
// # Category: web版/抓包
|
||
// # Evidence: web/H5关键词 + cookie/token/header
|
||
//
|
||
|
||
const rules = {
|
||
name: "【ug爱好者】: ",
|
||
url: "http://www.ugsnx.com/forum.php?mod=guide&view=newthread&mobile=2", //用于获取formhash的链接
|
||
cookie: config.ugsnx.cookie,
|
||
formhash: 'formhash=(.+?)"', //formhash正则
|
||
verify: "有你更精彩!",
|
||
op: [{
|
||
name: "签到",
|
||
charset: "gb2312",
|
||
method: "get", //签到请求方式 get/post
|
||
url: "http://www.ugsnx.com/plugin.php?id=dsu_amupper&ppersubmit=true&nogoto=1&formhash=@formhash&mobile=2&inajax=1"
|
||
}]
|
||
};
|
||
|
||
async function ugsnx() {
|
||
const template = require("../Template");
|
||
return rules.name + await template(rules)
|
||
}
|
||
module.exports = ugsnx |