diff --git a/lib/core/option.py b/lib/core/option.py index 423871938..10e48022d 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2254,9 +2254,6 @@ def _setTorSocksProxySettings(): socks.wrapmodule(urllib2) def _checkWebSocket(): - infoMsg = "checking for WebSocket" - logger.debug(infoMsg) - if conf.url and (conf.url.startswith("ws:/") or conf.url.startswith("wss:/")): try: from websocket import ABNF diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 04ce9cca5..cb7fb7f02 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -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) result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True)) - if result and testChar in result: + if (result or "").startswith(testChar): if result == testChar * current: kb.errorChunkLength = current break