id: screenshot

info:
  name: Headless Http Screenshot
  author: V0idC0de,righettod,tarunKoyalwar
  severity: info
  description: Takes a screenshot of the specified URLS.
  tags: headless,screenshot,discovery

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}}"
# digest: 4b0a00483046022100c4bcf934666a7bbd25a7b18cc338fe04d57c97488a39e5a18d1f802cf3efc9bf022100d3bd8dcaad1eecc32980fb9298ccec2da4a347cd530a819a758625b7bde3aaf6:922c64590222798bb761d5b6d8e72950