-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: a76yyyy <a76yyyy@users.noreply.github.com>
- Loading branch information
1 parent
207687e
commit 779bf08
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"url": "https://www.iopq.net/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "username={{username}}&password={{password}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "欢迎", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "uid", | ||
"re": "'uid':'(\\d+)'", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "https://www.iopq.net/home.php?mod=space&uid={{uid|urlencode}}", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "jf", | ||
"re": "积分</em>(.+?)<", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "jb", | ||
"re": "金币</em>(.+?)<", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "yhz", | ||
"re": "用户组:( .+?)<", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "yhm", | ||
"re": "访问我的空间\">(.+?)<", | ||
"from": "content" | ||
}, | ||
{ | ||
"name": "zxsj", | ||
"re": "在线时间</em>(.+?)<", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "Unicode转换", | ||
"request": { | ||
"method": "POST", | ||
"url": "api://util/unicode", | ||
"headers": [], | ||
"cookies": [], | ||
"data": "html_unescape=false&content=用户名:{{yhm}} 用户组:{{yhz}} 积分:{{jf}} 金币:{{jb}} 在线时间:{{zxsj}}" | ||
}, | ||
"rule": { | ||
"success_asserts": [ | ||
{ | ||
"re": "200", | ||
"from": "status" | ||
}, | ||
{ | ||
"re": "\"状态\": \"200\"", | ||
"from": "content" | ||
} | ||
], | ||
"failed_asserts": [], | ||
"extract_variables": [ | ||
{ | ||
"name": "__log__", | ||
"re": "\"转换后\": \"(.*)\"", | ||
"from": "content" | ||
} | ||
] | ||
} | ||
} | ||
] |