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