mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
modifying redirection code for only two choices
This commit is contained in:
parent
c03d0e24fb
commit
0fc4288a7c
5 changed files with 14 additions and 18 deletions
|
|
@ -305,11 +305,10 @@ class Connect:
|
|||
|
||||
# Get HTTP response
|
||||
if hasattr(conn, 'redurl'):
|
||||
page = threadData.lastRedirectMsg[1] if kb.redirectChoice == REDIRECTION.IGNORE\
|
||||
else kb.pageTemplate if kb.redirectChoice == REDIRECTION.ORIGINAL\
|
||||
page = threadData.lastRedirectMsg[1] if kb.redirectChoice == REDIRECTION.NO\
|
||||
else conn.read()
|
||||
skipLogTraffic = kb.redirectChoice != REDIRECTION.FOLLOW
|
||||
code = conn.redcode if kb.redirectChoice != REDIRECTION.ORIGINAL else kb.originalCode
|
||||
skipLogTraffic = kb.redirectChoice == REDIRECTION.NO
|
||||
code = conn.redcode
|
||||
else:
|
||||
page = conn.read()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue