mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
refactoring, code clearing and removal of obsolete switch --longest-common
This commit is contained in:
parent
534f51f9fc
commit
fb9d7cdfaa
11 changed files with 31 additions and 131 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue