mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +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.pageTemplates = dict()
|
||||||
kb.previousMethod = None
|
kb.previousMethod = None
|
||||||
kb.orderByColumns = None
|
kb.orderByColumns = None
|
||||||
|
kb.originalCode = None
|
||||||
kb.originalPage = None
|
kb.originalPage = None
|
||||||
kb.originalTimeDelay = None
|
kb.originalTimeDelay = None
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@ class Connect:
|
||||||
else kb.originalPage if kb.redirectChoice == REDIRECTION.ORIGINAL\
|
else kb.originalPage if kb.redirectChoice == REDIRECTION.ORIGINAL\
|
||||||
else conn.read()
|
else conn.read()
|
||||||
skipLogTraffic = kb.redirectChoice != REDIRECTION.FOLLOW
|
skipLogTraffic = kb.redirectChoice != REDIRECTION.FOLLOW
|
||||||
code = conn.redcode
|
code = conn.redcode if kb.redirectChoice != REDIRECTION.ORIGINAL else kb.originalCode
|
||||||
else:
|
else:
|
||||||
page = conn.read()
|
page = conn.read()
|
||||||
|
|
||||||
|
@ -517,6 +517,7 @@ class Connect:
|
||||||
page = None
|
page = None
|
||||||
pageLength = None
|
pageLength = None
|
||||||
uri = None
|
uri = None
|
||||||
|
code = None
|
||||||
|
|
||||||
if not place:
|
if not place:
|
||||||
place = kb.injection.place or PLACE.GET
|
place = kb.injection.place or PLACE.GET
|
||||||
|
@ -700,6 +701,8 @@ class Connect:
|
||||||
|
|
||||||
threadData.lastQueryDuration = calculateDeltaSeconds(start)
|
threadData.lastQueryDuration = calculateDeltaSeconds(start)
|
||||||
|
|
||||||
|
kb.originalCode = kb.originalCode or code
|
||||||
|
|
||||||
if kb.testMode:
|
if kb.testMode:
|
||||||
kb.testQueryCount += 1
|
kb.testQueryCount += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user