mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Minor patches related to the #1206
This commit is contained in:
parent
91bc02e3ba
commit
e8f87bfa41
3 changed files with 8 additions and 6 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue