diff --git a/tpls_history.json b/tpls_history.json index e54e74a2a5..50b02f2208 100644 --- a/tpls_history.json +++ b/tpls_history.json @@ -3732,6 +3732,18 @@ "date": "2024-11-08 09:12:54", "version": "20241108", "commenturl": "https://github.com/qd-today/templates/issues/788" + }, + "享乐音乐网": { + "name": "享乐音乐网", + "author": "", + "url": "https://raw.githubusercontent.com/qd-today/templates/master/xlebbs.com.har", + "update": false, + "comments": "选填", + "filename": "xlebbs.com.har", + "content": "W3sicmVxdWVzdCI6IHsibWV0aG9kIjogIlBPU1QiLCAidXJsIjogImh0dHBzOi8vd3d3LnhsZWJicy5jb20vbWVtYmVyLnBocD9tb2Q9bG9nZ2luZyZhY3Rpb249bG9naW4mbG9naW5zdWJtaXQ9eWVzJmluYWpheD0xIiwgImhlYWRlcnMiOiBbXSwgImNvb2tpZXMiOiBbXSwgImRhdGEiOiAidXNlcm5hbWU9e3t1c2VybmFtZX19JnBhc3N3b3JkPXt7cGFzc3dvcmR9fSJ9LCAicnVsZSI6IHsic3VjY2Vzc19hc3NlcnRzIjogW3sicmUiOiAiMjAwIiwgImZyb20iOiAic3RhdHVzIn1dLCAiZmFpbGVkX2Fzc2VydHMiOiBbXSwgImV4dHJhY3RfdmFyaWFibGVzIjogW3sibmFtZSI6ICJhdXRoIiwgInJlIjogImF1dGg9KC4rKSciLCAiZnJvbSI6ICJjb250ZW50In0sIHsibmFtZSI6ICJzIiwgInJlIjogIiIsICJmcm9tIjogImNvbnRlbnQifV19fSwgeyJjb21tZW50IjogIldoaWxlIOW+queOr+W8gOWniyIsICJyZXF1ZXN0IjogeyJtZXRob2QiOiAiR0VUIiwgInVybCI6ICJ7JSB3aGlsZSBpbnQobG9vcF9pbmRleDApIDwgMjMgYW5kIHMgIT0gJ3N1Y2NlZWQnICV9IiwgImhlYWRlcnMiOiBbXSwgImNvb2tpZXMiOiBbXSwgImRhdGEiOiAiIn0sICJydWxlIjogeyJzdWNjZXNzX2Fzc2VydHMiOiBbXSwgImZhaWxlZF9h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wgImZyb20iOiAiY29udGVudCJ9XSwgImZhaWxlZF9hc3NlcnRzIjogW10sICJleHRyYWN0X3ZhcmlhYmxlcyI6IFt7Im5hbWUiOiAiX19sb2dfXyIsICJyZSI6ICJcIui9rOaNouWQjlwiOiBcIiguKilcIiIsICJmcm9tIjogImNvbnRlbnQifV19fV0=", + "date": "2024-11-09 20:22:46", + "version": "20241109", + "commenturl": "https://github.com/qd-today/templates/issues/794" } } } \ No newline at end of file diff --git a/xlebbs.com.har b/xlebbs.com.har new file mode 100644 index 0000000000..2c5dcafec2 --- /dev/null +++ b/xlebbs.com.har @@ -0,0 +1,233 @@ +[ + { + "request": { + "method": "POST", + "url": "https://www.xlebbs.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1", + "headers": [], + "cookies": [], + "data": "username={{username}}&password={{password}}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "auth", + "re": "auth=(.+)'", + "from": "content" + }, + { + "name": "s", + "re": "", + "from": "content" + } + ] + } + }, + { + "comment": "While 循环开始", + "request": { + "method": "GET", + "url": "{% while int(loop_index0) < 23 and s != 'succeed' %}", + "headers": [], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [], + "failed_asserts": [], + "extract_variables": [] + } + }, + { + "request": { + "method": "GET", + "url": "https://www.xlebbs.com/misc.php?mod=seccode", + "headers": [ + { + "name": "Referer", + "value": "https://www.xlebbs.com" + } + ], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "s", + "re": ".+", + "from": "content" + } + ] + } + }, + { + "comment": "OCR识别", + "request": { + "method": "POST", + "url": "api://util/dddd/ocr", + "headers": [ + { + "name": "Content-Type", + "value": "application/json" + } + ], + "cookies": [], + "data": "{\"img\":\"{{s}}\",\"imgurl\":\"\",\"old\":\"False\",\"extra_onnx_name\":\"\"}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + }, + { + "re": "\"状态\": \"OK\"", + "from": "content" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "", + "re": "\"Result\": \"(.*)\"", + "from": "content" + } + ] + } + }, + { + "request": { + "method": "POST", + "url": "https://www.xlebbs.com/member.php?mod=logging&action=login&loginsubmit=yes&inajax=1", + "headers": [], + "cookies": [], + "data": "auth={{auth}}&seccodeverify={{s}}" + }, + "rule": { + "success_asserts": [ + { + "re": "欢迎您回来", + "from": "content" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "s", + "re": "succeed", + "from": "content" + } + ] + } + }, + { + "comment": "While 循环结束", + "request": { + "method": "GET", + "url": "{% endwhile %}", + "headers": [], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [] + } + }, + { + "request": { + "method": "GET", + "url": "https://www.xlebbs.com/dsu_paulsign-sign.html", + "headers": [], + "cookies": [], + "data": "" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "formhash", + "re": "formhash=(\\w+)", + "from": "content" + }, + { + "name": "q", + "re": "(您今天已经[\\s\\S]+)签到排行榜", + "from": "content" + } + ] + } + }, + { + "request": { + "method": "POST", + "url": "https://www.xlebbs.com/plugin.php?id=dsu_paulsign%3Asign&operation=qiandao&infloat=1&sign_as=1&inajax=1", + "headers": [], + "cookies": [], + "data": "formhash={{formhash}}&qdxq=kx&qdmode=3&todaysay=&fastreply=0" + }, + "rule": { + "success_asserts": [ + { + "re": "已经签到", + "from": "content" + }, + { + "re": "签到成功", + "from": "content" + } + ], + "failed_asserts": [], + "extract_variables": [] + } + }, + { + "comment": "Unicode转换", + "request": { + "method": "POST", + "url": "api://util/unicode", + "headers": [], + "cookies": [], + "data": "html_unescape=false&content={{q | striptags}}" + }, + "rule": { + "success_asserts": [ + { + "re": "200", + "from": "status" + }, + { + "re": "\"状态\": \"200\"", + "from": "content" + } + ], + "failed_asserts": [], + "extract_variables": [ + { + "name": "__log__", + "re": "\"转换后\": \"(.*)\"", + "from": "content" + } + ] + } + } +] \ No newline at end of file