Minor patches related to the #1206

This commit is contained in:
Miroslav Stampar
2015-05-11 11:01:21 +02:00
parent 91bc02e3ba
commit e8f87bfa41
3 changed files with 8 additions and 6 deletions

View File

@@ -599,7 +599,7 @@ class Connect(object):
warnMsg += "from the target URL"
elif "Handshake status" in tbMsg:
status = re.search("Handshake status ([\d]{3})", tbMsg)
errMsg = "websocket handshake status %s" % status.group(1) if status else 'unknown'
errMsg = "websocket handshake status %s" % status.group(1) if status else "unknown"
raise SqlmapConnectionException(errMsg)
else:
warnMsg = "unable to connect to the target URL"