Update wordpress-debug-log.yaml

1-. Added another path
2. Added redirects and max size (sometimes it tries to download the entire file, but this flag it will only download the first 5,000 bytes).
3. Added extractor to show the size of the log.
patch-1
Philippe Delteil 2023-11-26 18:37:07 -05:00 committed by GitHub
parent e9355f43ef
commit 0e33bd58ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,7 @@ id: wp-debug-log
info:
name: WordPress debug log
author: geraldino2,dwisiswant0
author: geraldino2,dwisiswant0,philippedelteil
severity: low
metadata:
max-request: 1
@ -12,7 +12,12 @@ http:
- method: GET
path:
- "{{BaseURL}}/wp-content/debug.log"
- "{{BaseURL}}/wordpress/wp-content/debug.log"
stop-at-first-match: true
host-redirects: true
max-redirects: 3
max-size: 5000
matchers-condition: and
matchers:
- type: word
@ -30,5 +35,11 @@ http:
- type: status
status:
- 200
extractors:
- type: dsl
dsl:
- to_string(content_length)+ " bytes"
# digest: 4b0a0048304602210088508540400171b7789ff615fc799433d70f773a308c8d2e42b180fe62ed400f022100b2b045d2694a75337ccdc3cd7259ecb012a37786663dbeba923b350c1d9ba968:922c64590222798bb761d5b6d8e72950