Headless Browser: Headless Commands

OtherExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Example of headless browsers commands:

  • Google Chrome

    ps1
    google-chrome --headless[=(new|old)] --print-to-pdf https://www.google.com
  • Mozilla Firefox

    ps1
    firefox --screenshot https://www.google.com
  • Microsoft Edge

    ps1
    "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --headless --disable-gpu --window-size=1280,720 --screenshot="C:\tmp\screen.png" "https://google.com"

Comments

No comments yet.