mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
added option --ignore-proxy
This commit is contained in:
parent
dee15ed0b0
commit
5ebf572cae
|
@ -593,9 +593,8 @@ def __setHTTPProxy():
|
||||||
|
|
||||||
global proxyHandler
|
global proxyHandler
|
||||||
|
|
||||||
if not conf.proxy:
|
if not conf.proxy and (conf.hostname in ('localhost', '127.0.0.1') or conf.ignoreProxy):
|
||||||
if conf.hostname in ('localhost', '127.0.0.1'):
|
proxyHandler = urllib2.ProxyHandler({})
|
||||||
proxyHandler = urllib2.ProxyHandler({})
|
|
||||||
return
|
return
|
||||||
|
|
||||||
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
|
||||||
|
|
|
@ -50,7 +50,8 @@ optDict = {
|
||||||
"delay": "float",
|
"delay": "float",
|
||||||
"timeout": "float",
|
"timeout": "float",
|
||||||
"retries": "integer",
|
"retries": "integer",
|
||||||
"scope": "string"
|
"scope": "string",
|
||||||
|
"ignoreProxy": "boolean"
|
||||||
},
|
},
|
||||||
|
|
||||||
"Injection": {
|
"Injection": {
|
||||||
|
|
|
@ -129,6 +129,10 @@ def cmdLineParser():
|
||||||
request.add_option("--scope", dest="scope",
|
request.add_option("--scope", dest="scope",
|
||||||
help="Regexp to filter targets from provided proxy log")
|
help="Regexp to filter targets from provided proxy log")
|
||||||
|
|
||||||
|
request.add_option("--ignore-proxy", dest="ignoreProxy",
|
||||||
|
action="store_true",
|
||||||
|
help="Ignore system default HTTP proxy")
|
||||||
|
|
||||||
# Injection options
|
# Injection options
|
||||||
injection = OptionGroup(parser, "Injection", "These options can be "
|
injection = OptionGroup(parser, "Injection", "These options can be "
|
||||||
"used to specify which parameters to test "
|
"used to specify which parameters to test "
|
||||||
|
|
|
@ -107,6 +107,10 @@ retries = 3
|
||||||
# Example: (google|yahoo)
|
# Example: (google|yahoo)
|
||||||
scope =
|
scope =
|
||||||
|
|
||||||
|
# Ignore system default HTTP proxy
|
||||||
|
# Valid: True or False
|
||||||
|
ignoreProxy = False
|
||||||
|
|
||||||
[Injection]
|
[Injection]
|
||||||
|
|
||||||
# Testable parameter(s) comma separated. By default all GET/POST/Cookie
|
# Testable parameter(s) comma separated. By default all GET/POST/Cookie
|
||||||
|
|
Loading…
Reference in New Issue
Block a user