mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Just in case update
This commit is contained in:
parent
7e78554e97
commit
a0b67418c7
|
@ -1028,7 +1028,7 @@ def _setSocketPreConnect():
|
||||||
return
|
return
|
||||||
|
|
||||||
def _():
|
def _():
|
||||||
while kb.threadContinue:
|
while kb.threadContinue and not conf.disablePrecon:
|
||||||
try:
|
try:
|
||||||
for key in socket._ready:
|
for key in socket._ready:
|
||||||
if len(socket._ready[key]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
if len(socket._ready[key]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
||||||
|
@ -1046,6 +1046,7 @@ def _setSocketPreConnect():
|
||||||
|
|
||||||
def connect(self, address):
|
def connect(self, address):
|
||||||
found = False
|
found = False
|
||||||
|
|
||||||
key = (self.family, self.type, self.proto, address)
|
key = (self.family, self.type, self.proto, address)
|
||||||
with kb.locks.socket:
|
with kb.locks.socket:
|
||||||
if key not in socket._ready:
|
if key not in socket._ready:
|
||||||
|
@ -1053,6 +1054,7 @@ def _setSocketPreConnect():
|
||||||
if len(socket._ready[key]) > 0:
|
if len(socket._ready[key]) > 0:
|
||||||
self._sock = socket._ready[key].pop(0)
|
self._sock = socket._ready[key].pop(0)
|
||||||
found = True
|
found = True
|
||||||
|
|
||||||
if not found:
|
if not found:
|
||||||
self._connect(address)
|
self._connect(address)
|
||||||
|
|
||||||
|
|
|
@ -614,6 +614,9 @@ class Connect(object):
|
||||||
elif "forcibly closed" in tbMsg or "Connection is already closed" in tbMsg:
|
elif "forcibly closed" in tbMsg or "Connection is already closed" in tbMsg:
|
||||||
warnMsg = "connection was forcibly closed by the target URL"
|
warnMsg = "connection was forcibly closed by the target URL"
|
||||||
elif "timed out" in tbMsg:
|
elif "timed out" in tbMsg:
|
||||||
|
singleTimeWarnMessage("turning off pre-connect mechanism because of connection time out(s)")
|
||||||
|
conf.disablePrecon = True
|
||||||
|
|
||||||
if kb.testMode and kb.testType not in (None, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED):
|
if kb.testMode and kb.testType not in (None, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED):
|
||||||
singleTimeWarnMessage("there is a possibility that the target (or WAF) is dropping 'suspicious' requests")
|
singleTimeWarnMessage("there is a possibility that the target (or WAF) is dropping 'suspicious' requests")
|
||||||
warnMsg = "connection timed out to the target URL"
|
warnMsg = "connection timed out to the target URL"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user