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.98k stars 846 forks source link

log redirects (http, html or js redirects) #643

Open githule opened 9 months ago

githule commented 9 months ago

OS Used - ALL Information (architecture, linux flavor, etc.)

Docker over debian image amd64

Pastebin link to error you are encountering

Expected behavior (vs. what you encountered)

Not an error, just an improvement

Any additional information

Hello,

It would be great to add information in the log or report of redirects followed during the web session. As far as I know I cant access this information. I can help in testing if needed.

Thank you,

githule commented 9 months ago

Just found a way to do this, I may give you a PR in next week if sucessful

Relkci commented 5 months ago

Following up, what about comparing the input URL to the final browser URL?

This wouldn't define what the redirect method was, but will indicate a redirect occurred.

githule commented 5 months ago

Firefox has some command line args / settings that enable logging urls. Not an easy solution but I did it that way. I have no access to my code currently. I didnt worked on report integration of theses but I will give you the command line / regex I used as soon as I can.

githule commented 1 month ago

Hello, For information I finally used following debug feature to generate a log file and just grepped through it. firefox -MOZ_LOG=nsHttp:5 -MOZ_LOG_FILE=nsHttp.log firefox -MOZ_LOG=all:1 -MOZ_LOG_FILE=all.log

The way I run it on my side is a little far from your original code and tied to my implementation so I wont propose a PR but can share some code parts/run some tests however.

Debug feature is documented here if you need. https://firefox-source-docs.mozilla.org/networking/http/logging.html