mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
added option --ignore-proxy
This commit is contained in:
@@ -593,9 +593,8 @@ def __setHTTPProxy():
|
||||
|
||||
global proxyHandler
|
||||
|
||||
if not conf.proxy:
|
||||
if conf.hostname in ('localhost', '127.0.0.1'):
|
||||
proxyHandler = urllib2.ProxyHandler({})
|
||||
if not conf.proxy and (conf.hostname in ('localhost', '127.0.0.1') or conf.ignoreProxy):
|
||||
proxyHandler = urllib2.ProxyHandler({})
|
||||
return
|
||||
|
||||
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
||||
|
||||
@@ -50,7 +50,8 @@ optDict = {
|
||||
"delay": "float",
|
||||
"timeout": "float",
|
||||
"retries": "integer",
|
||||
"scope": "string"
|
||||
"scope": "string",
|
||||
"ignoreProxy": "boolean"
|
||||
},
|
||||
|
||||
"Injection": {
|
||||
|
||||
Reference in New Issue
Block a user