File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -593,9 +593,8 @@ def __setHTTPProxy():
593593
594594 global proxyHandler
595595
596- if not conf .proxy :
597- if conf .hostname in ('localhost' , '127.0.0.1' ):
598- proxyHandler = urllib2 .ProxyHandler ({})
596+ if not conf .proxy and (conf .hostname in ('localhost' , '127.0.0.1' ) or conf .ignoreProxy ):
597+ proxyHandler = urllib2 .ProxyHandler ({})
599598 return
600599
601600 debugMsg = "setting the HTTP proxy to pass by all HTTP requests"
Original file line number Diff line number Diff line change 5050 "delay" : "float" ,
5151 "timeout" : "float" ,
5252 "retries" : "integer" ,
53- "scope" : "string"
53+ "scope" : "string" ,
54+ "ignoreProxy" : "boolean"
5455 },
5556
5657 "Injection" : {
Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ def cmdLineParser():
129129 request .add_option ("--scope" , dest = "scope" ,
130130 help = "Regexp to filter targets from provided proxy log" )
131131
132+ request .add_option ("--ignore-proxy" , dest = "ignoreProxy" ,
133+ action = "store_true" ,
134+ help = "Ignore system default HTTP proxy" )
135+
132136 # Injection options
133137 injection = OptionGroup (parser , "Injection" , "These options can be "
134138 "used to specify which parameters to test "
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ retries = 3
107107# Example: (google|yahoo)
108108scope =
109109
110+ # Ignore system default HTTP proxy
111+ # Valid: True or False
112+ ignoreProxy = False
113+
110114[Injection]
111115
112116# Testable parameter(s) comma separated. By default all GET/POST/Cookie
You can’t perform that action at this time.
0 commit comments