mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Ugly code to set the cookies when got them from a 302 redirect too
This commit is contained in:
@@ -26,6 +26,9 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||
elif "uri" in headers:
|
||||
result.redurl = headers.getheaders("uri")[0].split("?")[0]
|
||||
|
||||
if "set-cookie" in headers:
|
||||
result.setcookie = headers["set-cookie"].split("; path")[0]
|
||||
|
||||
result.redcode = code
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user