mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
fix mandatorily depend of websocket #1198
This commit is contained in:
@@ -78,6 +78,17 @@ def checkDependencies():
|
||||
logger.warn(warnMsg)
|
||||
missing_libraries.add('python-ntlm')
|
||||
|
||||
try:
|
||||
from websocket import ABNF
|
||||
debugMsg = "'python websocket-client' library is found"
|
||||
logger.debug(debugMsg)
|
||||
except ImportError:
|
||||
warnMsg = "sqlmap requires 'python websocket-client' third-party library for "
|
||||
warnMsg += "if you plan to attack a web application behind websocket. "
|
||||
warnMsg += "Download from https://pypi.python.org/pypi/websocket-client/"
|
||||
logger.warn(warnMsg)
|
||||
missing_libraries.add('websocket-client')
|
||||
|
||||
if IS_WIN:
|
||||
try:
|
||||
import pyreadline
|
||||
|
||||
Reference in New Issue
Block a user