mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
one more update related to the redirection mechanism
This commit is contained in:
parent
7d313ac911
commit
adb5fff6b2
|
@ -1469,6 +1469,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.pageTemplates = dict()
|
||||
kb.previousMethod = None
|
||||
kb.orderByColumns = None
|
||||
kb.originalCode = None
|
||||
kb.originalPage = None
|
||||
kb.originalTimeDelay = None
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@ class Connect:
|
|||
else kb.originalPage if kb.redirectChoice == REDIRECTION.ORIGINAL\
|
||||
else conn.read()
|
||||
skipLogTraffic = kb.redirectChoice != REDIRECTION.FOLLOW
|
||||
code = conn.redcode
|
||||
code = conn.redcode if kb.redirectChoice != REDIRECTION.ORIGINAL else kb.originalCode
|
||||
else:
|
||||
page = conn.read()
|
||||
|
||||
|
@ -517,6 +517,7 @@ class Connect:
|
|||
page = None
|
||||
pageLength = None
|
||||
uri = None
|
||||
code = None
|
||||
|
||||
if not place:
|
||||
place = kb.injection.place or PLACE.GET
|
||||
|
@ -700,6 +701,8 @@ class Connect:
|
|||
|
||||
threadData.lastQueryDuration = calculateDeltaSeconds(start)
|
||||
|
||||
kb.originalCode = kb.originalCode or code
|
||||
|
||||
if kb.testMode:
|
||||
kb.testQueryCount += 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user