EyeWitness icon indicating copy to clipboard operation
EyeWitness copied to clipboard

log redirects (http, html or js redirects)

Open githule opened this issue 1 year ago • 4 comments

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 avatar Feb 13 '24 15:02 githule

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

githule avatar Feb 13 '24 17:02 githule

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.

Relkci avatar Jun 04 '24 18:06 Relkci

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 avatar Jun 04 '24 19:06 githule

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

githule avatar Oct 09 '24 20:10 githule