urbanadventurer / WhatWeb

Next generation web scanner
https://www.morningstarsecurity.com/research/whatweb
GNU General Public License v2.0
5.47k stars 902 forks source link

Support update cookies according to the responses #281

Open gsfish opened 5 years ago

gsfish commented 5 years ago

This is for accepting cookies from the website during redirections. The --update-cookies option is added to determine whether whatweb shoud use dynamic cookies.

I have recently encountered a case that a website uses SSO and there are serval redirections before getting to the final target. Which means that, in addition to specify the basic cookie using --cookie and --follow-redirect, the client need accept and update cookies from response, and follow serval redirection to complete the authorization.

urbanadventurer commented 4 years ago

Thanks for submitting this PR @gsfish. WhatWeb's cookie handling is currently under review for an update.