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
parent
fbc2ba38ee
commit
7f995056e3
|
@ -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
|
Loading…
Reference in New Issue