Ugly code to set the cookies when got them from a 302 redirect too

This commit is contained in:
Bernardo Damele
2010-12-03 17:41:10 +00:00
parent 9d55c4da87
commit 5d37df6104
4 changed files with 13 additions and 0 deletions

View File

@@ -187,6 +187,9 @@ class Connect:
if not kb.proxyAuthHeader and req.has_header("Proxy-authorization"):
kb.proxyAuthHeader = req.get_header("Proxy-authorization")
if hasattr(conn, "setcookie"):
kb.redirectSetCookie = conn.setcookie
if hasattr(conn, "redurl") and hasattr(conn, "redcode") and not conf.redirectHandled:
msg = "sqlmap got a %d redirect to " % conn.redcode
msg += "%s - What target address do you " % conn.redurl