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