mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor patches related to the #1206
This commit is contained in:
@@ -2181,13 +2181,15 @@ def _setTorSocksProxySettings():
|
||||
socks.wrapmodule(urllib2)
|
||||
|
||||
def _checkWebSocket():
|
||||
infoMsg = "checking URL is WebSocket or not"
|
||||
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
|
||||
except ImportError:
|
||||
errMsg = "it seems that python 'websocket-client' third-party library not be installed. "
|
||||
errMsg = "sqlmap requires third-party module 'websocket-client' "
|
||||
errMsg += "in order to use WebSocket funcionality"
|
||||
raise SqlmapMissingDependence(errMsg)
|
||||
|
||||
def _checkTor():
|
||||
|
||||
Reference in New Issue
Block a user