RedSiege / EyeWitness

EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible.
https://www.christophertruncer.com/eyewitness-usage-guide/
GNU General Public License v3.0
4.93k stars 843 forks source link

Specify window (image/screenshot) size #655

Closed Relkci closed 4 months ago

Relkci commented 4 months ago

Allows the specification of window width and height. sets default 1366x768. The width and height are restricted with logic to prevent unreasonable report generations.

The report output (HTML generation) has been modified slightly with CSS to prevent an image size shorter than 400 px from improperly scaling the image width beyond reason. Any image with height less than 400 will retain its original height and scale the width accordingly. The logic should prevent specifying an image height of less than 400, but since the argument specifies the window size, not image size, a 400 specification will produce an actual image less than 400 tall.

Apologies on the silly commit message, I squashed and didn't realize it retained the last message

closes #584

Example:

Default specification (1366,768)

image

width = 600 height = 1000 (odd size)

image

width = 1920 height = 1080 (typical desktop)

image

width = 1920 height = 4096 (a "long" screenshot)

image