Update wordpress-plugins-detect.yaml to extract plugin name and version (#4290)

* update wordpress-plugins-detect template to extract plugin name and version

* fix yamllint errors

* version extractor update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
patch-1
Klaxon 2022-05-05 22:23:16 +10:00 committed by GitHub
parent fbc2ba38ee
commit 7f995056e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -12,10 +12,10 @@ requests:
GET /wp-content/plugins/{{pluginSlug}}/readme.txt HTTP/1.1
Host: {{Hostname}}
threads: 50
payloads:
pluginSlug: helpers/wordlists/wordpress-plugins.txt
threads: 50
matchers-condition: and
matchers:
- type: status
@ -25,3 +25,11 @@ requests:
- type: word
words:
- "== Description =="
extractors:
- type: regex
part: body
group: 1
regex:
- "===\\s(.*)\\s===" # extract the plugin name
- "(?m)Stable tag: ([0-9.]+)" # extract the plugin version