mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Adding hidden switch for disabling socket preconnect (debugging purposes)
This commit is contained in:
parent
a219ff9a92
commit
80d3ff6706
|
@ -1024,6 +1024,9 @@ def _setSocketPreConnect():
|
||||||
Makes a pre-connect version of socket.connect
|
Makes a pre-connect version of socket.connect
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if conf.disablePrecon:
|
||||||
|
return
|
||||||
|
|
||||||
def _():
|
def _():
|
||||||
while kb.threadContinue:
|
while kb.threadContinue:
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -754,6 +754,9 @@ def cmdLineParser(argv=None):
|
||||||
parser.add_option("--pickled-options", dest="pickledOptions",
|
parser.add_option("--pickled-options", dest="pickledOptions",
|
||||||
help=SUPPRESS_HELP)
|
help=SUPPRESS_HELP)
|
||||||
|
|
||||||
|
parser.add_option("--disable-precon", dest="disablePrecon", action="store_true",
|
||||||
|
help=SUPPRESS_HELP)
|
||||||
|
|
||||||
parser.add_option("--profile", dest="profile", action="store_true",
|
parser.add_option("--profile", dest="profile", action="store_true",
|
||||||
help=SUPPRESS_HELP)
|
help=SUPPRESS_HELP)
|
||||||
|
|
||||||
|
@ -780,9 +783,6 @@ def cmdLineParser(argv=None):
|
||||||
|
|
||||||
parser.add_option("--run-case", dest="runCase", help=SUPPRESS_HELP)
|
parser.add_option("--run-case", dest="runCase", help=SUPPRESS_HELP)
|
||||||
|
|
||||||
parser.add_option("--nnc5ed", dest="nnc5ed", action="store_true",
|
|
||||||
help=SUPPRESS_HELP) # temporary hidden switch :)
|
|
||||||
|
|
||||||
parser.add_option_group(target)
|
parser.add_option_group(target)
|
||||||
parser.add_option_group(request)
|
parser.add_option_group(request)
|
||||||
parser.add_option_group(optimization)
|
parser.add_option_group(optimization)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user