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
|
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
|
Loading…
Reference in New Issue