2022-06-21 16:26:25 +00:00
|
|
|
id: screenshot
|
|
|
|
|
|
|
|
info:
|
2023-03-22 18:47:37 +00:00
|
|
|
name: Headless Http Screenshot
|
|
|
|
author: V0idC0de,righettod,tarunKoyalwar
|
2022-06-21 16:26:25 +00:00
|
|
|
severity: info
|
|
|
|
description: Takes a screenshot of the specified URLS.
|
|
|
|
tags: headless,screenshot
|
|
|
|
variables:
|
2023-03-22 19:04:20 +00:00
|
|
|
filename: '{{replace(BaseURL,"/","_")}}'
|
2023-03-22 18:47:37 +00:00
|
|
|
dir: "screenshots"
|
2022-06-21 16:26:25 +00:00
|
|
|
headless:
|
|
|
|
- steps:
|
|
|
|
- action: setheader
|
|
|
|
args:
|
|
|
|
part: request
|
|
|
|
key: "User-Agent"
|
2023-03-22 18:47:37 +00:00
|
|
|
value: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:111.0) Gecko/20100101 Firefox/111.0"
|
2022-06-21 16:26:25 +00:00
|
|
|
|
|
|
|
- action: navigate
|
|
|
|
args:
|
|
|
|
url: "{{BaseURL}}"
|
|
|
|
|
|
|
|
- action: waitload
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-06-21 16:26:25 +00:00
|
|
|
- action: screenshot
|
|
|
|
args:
|
2023-03-22 18:47:37 +00:00
|
|
|
fullpage: "true"
|
|
|
|
mkdir: "true"
|
2023-10-14 11:27:55 +00:00
|
|
|
to: "{{dir}}/{{filename}}"
|