Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4be55c8

Browse files
committed
minor update
1 parent 831f083 commit 4be55c8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/session.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ def resumeConfKb(expression, url, value):
253253
infoMsg += "files directory '%s' from session file" % conf.tmpPath
254254
logger.info(infoMsg)
255255

256+
elif conf.freshQueries:
257+
pass
258+
256259
elif expression == "TABLE_EXISTS" and url == conf.url:
257260
table = unSafeFormatString(value[:-1])
258261
split = '..' if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) else '.'

lib/core/threads.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from lib.core.data import kb
1515
from lib.core.data import logger
1616
from lib.core.datatype import advancedDict
17+
from lib.core.enums import PAYLOAD
1718
from lib.core.exception import sqlmapThreadException
1819
from lib.core.settings import MAX_NUMBER_OF_THREADS
1920
from lib.core.settings import PYVERSION
@@ -74,7 +75,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
7475
kb.threadContinue = True
7576
kb.threadException = False
7677

77-
if threadChoice and numThreads == 1:
78+
if threadChoice and numThreads == 1 and any(map(lambda x: x in kb.injection.data, [PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.ERROR, PAYLOAD.TECHNIQUE.UNION])):
7879
while True:
7980
message = "please enter number of threads? [Enter for %d (current)] " % numThreads
8081
choice = readInput(message, default=str(numThreads))

0 commit comments

Comments
 (0)