mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Minor patch
This commit is contained in:
parent
e519ed2e18
commit
e53e4dddf1
|
@ -2254,9 +2254,6 @@ def _setTorSocksProxySettings():
|
||||||
socks.wrapmodule(urllib2)
|
socks.wrapmodule(urllib2)
|
||||||
|
|
||||||
def _checkWebSocket():
|
def _checkWebSocket():
|
||||||
infoMsg = "checking for WebSocket"
|
|
||||||
logger.debug(infoMsg)
|
|
||||||
|
|
||||||
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):
|
if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")):
|
||||||
try:
|
try:
|
||||||
from websocket import ABNF
|
from websocket import ABNF
|
||||||
|
|
|
@ -75,7 +75,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
|
||||||
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
|
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
|
||||||
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
|
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
|
||||||
|
|
||||||
if result and testChar in result:
|
if (result or "").startswith(testChar):
|
||||||
if result == testChar * current:
|
if result == testChar * current:
|
||||||
kb.errorChunkLength = current
|
kb.errorChunkLength = current
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue
Block a user