mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-04 17:24:20 +03:00
suppress session in case of brute methods
This commit is contained in:
parent
b313a20a3f
commit
c17714c423
|
@ -430,7 +430,7 @@ def dataToStdout(data, forceOutput=False):
|
|||
print data.encode(conf.dataEncoding)
|
||||
|
||||
def dataToSessionFile(data):
|
||||
if not conf.sessionFile:
|
||||
if not conf.sessionFile or kb.suppressSession:
|
||||
return
|
||||
|
||||
conf.sessionFP.write(data)
|
||||
|
|
|
@ -1192,6 +1192,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.resumedQueries = {}
|
||||
kb.retriesCount = 0
|
||||
kb.skipTests = None
|
||||
kb.suppressSession = False
|
||||
kb.technique = None
|
||||
kb.testMode = False
|
||||
kb.testQueryCount = 0
|
||||
|
|
|
@ -55,6 +55,7 @@ def tableExists(tableFile, regex=None):
|
|||
iolock = threading.Lock()
|
||||
kb.locks.seqLock = threading.Lock()
|
||||
kb.threadContinue = True
|
||||
kb.suppressSession = True
|
||||
|
||||
def tableExistsThread():
|
||||
while count[0] < length and kb.threadContinue:
|
||||
|
@ -131,6 +132,7 @@ def tableExists(tableFile, regex=None):
|
|||
kb.locks.seqLock = None
|
||||
kb.threadContinue = True
|
||||
kb.threadException = False
|
||||
kb.suppressSession = False
|
||||
|
||||
clearConsoleLine(True)
|
||||
|
||||
|
@ -170,6 +172,7 @@ def columnExists(columnFile, regex=None):
|
|||
iolock = threading.Lock()
|
||||
kb.locks.seqLock = threading.Lock()
|
||||
kb.threadContinue = True
|
||||
kb.suppressSession = True
|
||||
|
||||
def columnExistsThread():
|
||||
while count[0] < length and kb.threadContinue:
|
||||
|
@ -237,6 +240,7 @@ def columnExists(columnFile, regex=None):
|
|||
kb.locks.seqLock = None
|
||||
kb.threadContinue = True
|
||||
kb.threadException = False
|
||||
kb.suppressSession = False
|
||||
|
||||
clearConsoleLine(True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user