File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2181,13 +2181,15 @@ def _setTorSocksProxySettings():
21812181 socks .wrapmodule (urllib2 )
21822182
21832183def _checkWebSocket ():
2184- infoMsg = "checking URL is WebSocket or not "
2184+ infoMsg = "checking for WebSocket"
21852185 logger .debug (infoMsg )
2186+
21862187 if conf .url and (conf .url .startswith ("ws:/" ) or conf .url .startswith ("wss:/" )):
21872188 try :
21882189 from websocket import ABNF
21892190 except ImportError :
2190- errMsg = "it seems that python 'websocket-client' third-party library not be installed. "
2191+ errMsg = "sqlmap requires third-party module 'websocket-client' "
2192+ errMsg += "in order to use WebSocket funcionality"
21912193 raise SqlmapMissingDependence (errMsg )
21922194
21932195def _checkTor ():
Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ class _(dict):
599599 warnMsg += "from the target URL"
600600 elif "Handshake status" in tbMsg :
601601 status = re .search ("Handshake status ([\d]{3})" , tbMsg )
602- errMsg = "websocket handshake status %s" % status .group (1 ) if status else ' unknown'
602+ errMsg = "websocket handshake status %s" % status .group (1 ) if status else " unknown"
603603 raise SqlmapConnectionException (errMsg )
604604 else :
605605 warnMsg = "unable to connect to the target URL"
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def checkDependencies():
7272 debugMsg = "'python-ntlm' third-party library is found"
7373 logger .debug (debugMsg )
7474 except ImportError :
75- warnMsg = "sqlmap requires 'python-ntlm' third-party library for "
75+ warnMsg = "sqlmap requires 'python-ntlm' third-party library "
7676 warnMsg += "if you plan to attack a web application behind NTLM "
7777 warnMsg += "authentication. Download from http://code.google.com/p/python-ntlm/"
7878 logger .warn (warnMsg )
@@ -83,8 +83,8 @@ def checkDependencies():
8383 debugMsg = "'python websocket-client' library is found"
8484 logger .debug (debugMsg )
8585 except ImportError :
86- warnMsg = "sqlmap requires 'python websocket-client' third-party library for "
87- warnMsg += "if you plan to attack a web application behind websocket . "
86+ warnMsg = "sqlmap requires 'websocket-client' third-party library "
87+ warnMsg += "if you plan to attack a web application using WebSocket . "
8888 warnMsg += "Download from https://pypi.python.org/pypi/websocket-client/"
8989 logger .warn (warnMsg )
9090 missing_libraries .add ('websocket-client' )
You can’t perform that action at this time.
0 commit comments