mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
refactoring, code clearing and removal of obsolete switch --longest-common
This commit is contained in:
@@ -1045,7 +1045,7 @@ def __cleanupOptions():
|
||||
if conf.optimize:
|
||||
#conf.predictOutput = True
|
||||
conf.keepAlive = True
|
||||
conf.nullConnection = not (conf.textOnly or conf.longestCommon)
|
||||
conf.nullConnection = not conf.textOnly
|
||||
conf.threads = 4 if conf.threads < 2 else conf.threads
|
||||
|
||||
if conf.realTest:
|
||||
@@ -1320,10 +1320,6 @@ def __basicOptionValidation():
|
||||
errMsg = "switch --text-only is incompatible with switch --null-connection"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
if conf.longestCommon and conf.nullConnection:
|
||||
errMsg = "switch --longest-common is incompatible with switch --null-connection"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
if conf.data and conf.nullConnection:
|
||||
errMsg = "switch --data is incompatible with switch --null-connection"
|
||||
raise sqlmapSyntaxException, errMsg
|
||||
|
||||
Reference in New Issue
Block a user