-
Notifications
You must be signed in to change notification settings - Fork 87
/
海角社区.har
1 lines (1 loc) · 4.32 KB
/
海角社区.har
1
[{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content={{username}}{{password}}{{ua}}"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"signStr","re":"\"转换后\": \"(.*)\"","from":"content"}]}},{"comment":"登录","request":{"method":"POST","url":"{{domain}}api/login/signin","headers":[{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br"},{"name":"accept-language","value":"zh-CN,zh;q=0.9"},{"name":"cache-control","value":"no-cache"},{"name":"content-type","value":"application/json"},{"name":"dnt","value":"1"},{"name":"origin","value":"{{domain}}"},{"name":"pcver","value":"2"},{"name":"pragma","value":"no-cache"},{"name":"referer","value":"{{domain}}"},{"name":"user-agent","value":"{{ua}}"}],"cookies":[],"data":"{\"Username\":\"{{username}}\",\"Password\":\"{{password}}\",\"CaptchaCode\":\"\",\"CaptchaId\":\"\",\"Ref\":\"\",\"Sign\":\"{{md5(signStr)}}\"}","mimeType":"application/json"},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"\"success\":false","from":"content"}],"extract_variables":[{"name":"loginData","re":"\"data\":\"(.+?)\"","from":"content"}]}},{"comment":"字符串替换","request":{"method":"POST","url":"api://util/string/replace","headers":[],"cookies":[],"data":"r=text&p=&s={{b64decode(b64decode(b64decode(loginData)))}}&t="},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"uid","re":"\"id\":(\\d+)","from":"content"},{"name":"nickName","re":"\"nickname\":\"(.+?)\"","from":"content"},{"name":"token","re":"\"token\":\"(.+?)\"","from":"content"},{"name":"userData","re":".+","from":"content"}]}},{"comment":"签到","request":{"method":"POST","url":"{{domain}}api/user/user_sign_in","headers":[{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br"},{"name":"accept-language","value":"zh-CN,zh;q=0.9"},{"name":"cache-control","value":"no-cache"},{"name":"cookie","value":"token={{token}}; uid={{uid}}; user={{userData|urlencode}}"},{"name":"dnt","value":"1"},{"name":"origin","value":"{{domain}}"},{"name":"pcver","value":"2"},{"name":"pragma","value":"no-cache"},{"name":"referer","value":"https://hjg91.com/task/index"},{"name":"user-agent","value":"{{ua}}"},{"name":"x-user-id","value":"{{uid}}"},{"name":"x-user-token","value":"{{token}}"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"msg","re":"\"message\":\"(.+?)\"","from":"content"}]}},{"comment":"获取用户数据","request":{"method":"GET","url":"{{domain}}api/user/current?date={{timestamp('int')}}{{random(100,999,0)}}","headers":[{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br"},{"name":"accept-language","value":"zh-CN,zh;q=0.9"},{"name":"cache-control","value":"no-cache"},{"name":"dnt","value":"1"},{"name":"origin","value":"{{domain}}"},{"name":"pcver","value":"2"},{"name":"pragma","value":"no-cache"},{"name":"referer","value":"https://hjg91.com/task/index"},{"name":"user-agent","value":"{{ua}}"},{"name":"x-user-id","value":"{{uid}}"},{"name":"x-user-token","value":"{{token}}"}],"cookies":[]},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[{"re":"\"success\":false","from":"content"}],"extract_variables":[{"name":"newUserData","re":"\"data\":\"(.+?)\"","from":"content"}]}},{"comment":"字符串替换","request":{"method":"POST","url":"api://util/string/replace","headers":[],"cookies":[],"data":"r=text&p=&s={{b64decode(b64decode(b64decode(newUserData)))}}&t="},"rule":{"success_asserts":[{"re":"200","from":"status"}],"failed_asserts":[],"extract_variables":[{"name":"gold","re":"\"gold\":(\\d+)","from":"content"}]}},{"comment":"Unicode转换","request":{"method":"POST","url":"api://util/unicode","headers":[],"cookies":[],"data":"content=用户:【{{nickName}}】\\r\\n签到结果:【{{msg}}】\\r\\n金币:【{{gold}}】"},"rule":{"success_asserts":[{"re":"200","from":"status"},{"re":"\"状态\": \"200\"","from":"content"}],"failed_asserts":[],"extract_variables":[{"name":"__log__","re":"\"转换后\": \"(.*)\"","from":"content"}]}}]