mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Patch for an Issue #1078
This commit is contained in:
parent
1e014de6be
commit
02d20ccd13
|
@ -1079,7 +1079,12 @@ def _setHTTPProxy():
|
||||||
debugMsg = "setting the HTTP/SOCKS proxy for all HTTP requests"
|
debugMsg = "setting the HTTP/SOCKS proxy for all HTTP requests"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
|
try:
|
||||||
_ = urlparse.urlsplit(conf.proxy)
|
_ = urlparse.urlsplit(conf.proxy)
|
||||||
|
except Exception, ex:
|
||||||
|
errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, ex)
|
||||||
|
raise SqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
hostnamePort = _.netloc.split(":")
|
hostnamePort = _.netloc.split(":")
|
||||||
|
|
||||||
scheme = _.scheme.upper()
|
scheme = _.scheme.upper()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user