mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
Add extract-urls (an headless)
This commit is contained in:
24
headless/extract-urls.yaml
Normal file
24
headless/extract-urls.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
id: extract-urls
|
||||
|
||||
info:
|
||||
name: Extract URLs from HTML attributes
|
||||
author: dwisiswant0
|
||||
severity: info
|
||||
tags: headless,extractor
|
||||
|
||||
headless:
|
||||
- steps:
|
||||
- args:
|
||||
url: "{{BaseURL}}"
|
||||
action: navigate
|
||||
- action: waitload
|
||||
- action: script
|
||||
name: extract
|
||||
args:
|
||||
code: |
|
||||
'\n' + [...new Set(Array.from(document.querySelectorAll('[src], [href], [url], [action]')).map(i => i.src || i.href || i.url || i.action))].join('\r\n') + '\n'
|
||||
extractors:
|
||||
- type: kval
|
||||
part: extract
|
||||
kval:
|
||||
- extract
|
||||
Reference in New Issue
Block a user