add websocket support for parse url #1198

This commit is contained in:
ricterz
2015-03-24 10:30:38 +08:00
parent 05a496c275
commit 50fd6ce7f7
2 changed files with 3 additions and 2 deletions

View File

@@ -1248,7 +1248,8 @@ def parseTargetUrl():
errMsg += "on this platform"
raise SqlmapGenericException(errMsg)
if not re.search("^http[s]*://", conf.url, re.I):
if not re.search("^http[s]*://", conf.url, re.I) and \
not re.search("^ws[s]*://", conf.url, re.I):
if ":443/" in conf.url:
conf.url = "https://" + conf.url
else: