mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-20 22:49:01 +00:00
Update for an Issue #278
This commit is contained in:
@@ -21,7 +21,7 @@ _defaults = {
|
||||
"level": 1,
|
||||
"risk": 1,
|
||||
"dumpFormat": "CSV",
|
||||
"tech": "BEUST",
|
||||
"tech": "BEUSTQ",
|
||||
"torType": "HTTP"
|
||||
}
|
||||
|
||||
|
||||
@@ -177,7 +177,8 @@ class PAYLOAD:
|
||||
2: "error-based",
|
||||
3: "UNION query",
|
||||
4: "stacked queries",
|
||||
5: "AND/OR time-based blind"
|
||||
5: "AND/OR time-based blind",
|
||||
6: "inline query"
|
||||
}
|
||||
|
||||
PARAMETER = {
|
||||
@@ -219,6 +220,7 @@ class PAYLOAD:
|
||||
UNION = 3
|
||||
STACKED = 4
|
||||
TIME = 5
|
||||
QUERY = 6
|
||||
|
||||
class WHERE:
|
||||
ORIGINAL = 1
|
||||
|
||||
@@ -105,7 +105,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
|
||||
kb.threadContinue = True
|
||||
kb.threadException = False
|
||||
|
||||
if threadChoice and numThreads == 1 and any(map(lambda x: x in kb.injection.data, [PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.ERROR, PAYLOAD.TECHNIQUE.UNION])):
|
||||
if threadChoice and numThreads == 1 and any(map(lambda _: _ in kb.injection.data, (PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.ERROR, PAYLOAD.TECHNIQUE.QUERY, PAYLOAD.TECHNIQUE.UNION))):
|
||||
while True:
|
||||
message = "please enter number of threads? [Enter for %d (current)] " % numThreads
|
||||
choice = readInput(message, default=str(numThreads))
|
||||
|
||||
Reference in New Issue
Block a user