31 lines
713 B
YAML
31 lines
713 B
YAML
id: screenshot
|
|
|
|
info:
|
|
name: Headless Http Screenshot
|
|
author: V0idC0de,righettod,tarunKoyalwar
|
|
severity: info
|
|
description: Takes a screenshot of the specified URLS.
|
|
tags: headless,screenshot
|
|
variables:
|
|
filename: '{{replace(BaseURL,"/","_")}}'
|
|
dir: "screenshots"
|
|
headless:
|
|
- steps:
|
|
- action: setheader
|
|
args:
|
|
part: request
|
|
key: "User-Agent"
|
|
value: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:111.0) Gecko/20100101 Firefox/111.0"
|
|
|
|
- action: navigate
|
|
args:
|
|
url: "{{BaseURL}}"
|
|
|
|
- action: waitload
|
|
|
|
- action: screenshot
|
|
args:
|
|
fullpage: "true"
|
|
mkdir: "true"
|
|
to: "{{dir}}/{{filename}}"
|