mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:55:28 +00:00
feat(runner): respect alive proxy to probe
with httpx Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
parent
7c872853bc
commit
1133c8bbf4
@ -31,6 +31,11 @@ func (r *Runner) initializeTemplatesHTTPInput() (*hybrid.HybridMap, error) {
|
|||||||
gologger.Info().Msgf("Running httpx on input host")
|
gologger.Info().Msgf("Running httpx on input host")
|
||||||
|
|
||||||
httpxOptions := httpx.DefaultOptions
|
httpxOptions := httpx.DefaultOptions
|
||||||
|
if r.options.AliveHttpProxy != "" {
|
||||||
|
httpxOptions.Proxy = r.options.AliveHttpProxy
|
||||||
|
} else if r.options.AliveSocksProxy != "" {
|
||||||
|
httpxOptions.Proxy = r.options.AliveSocksProxy
|
||||||
|
}
|
||||||
httpxOptions.RetryMax = r.options.Retries
|
httpxOptions.RetryMax = r.options.Retries
|
||||||
httpxOptions.Timeout = time.Duration(r.options.Timeout) * time.Second
|
httpxOptions.Timeout = time.Duration(r.options.Timeout) * time.Second
|
||||||
httpxOptions.NetworkPolicy = protocolstate.NetworkPolicy
|
httpxOptions.NetworkPolicy = protocolstate.NetworkPolicy
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user