Added headless screenshotter (#4495)

patch-1
Sandeep Singh 2022-06-21 21:56:25 +05:30 committed by GitHub
parent 04d2483031
commit b8d0d57d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
headless/screenshot.yaml Normal file
View File

@ -0,0 +1,29 @@
id: screenshot
info:
name: Headless Screenshotter
author: V0idC0de,righettod
severity: info
description: Takes a screenshot of the specified URLS.
tags: headless,screenshot
variables:
file: "{{Hostname}}"
headless:
- steps:
- action: setheader
args:
part: request
key: "User-Agent"
value: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0"
- action: navigate
args:
url: "{{BaseURL}}"
- action: waitload
- action: screenshot
args:
fullpage: true
to: "{{file}}"