Skip to content

[BUG] -p socks5:// is not respected by httpx when using the -l flag #6109

@charnim

Description

@charnim

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

When running over targets file the httpx phase that looks for URL's does not pass through specified proxy.

ie:

The command nuclei-l .\batch1.txt -p socks5://user:password@socks5serverip:socksport -stats -o batch1.txt
with lets say 1000 targets will send httpx requests to all of them before running the template engine through socks5.

Expected Behavior

I would expect all traffic from nuclei to respect the proxy configuration. It has consequences in assessments where stealth is of priority.

Steps To Reproduce

nuclei-l .\batch1.txt -p socks5://user:password@socks5serverip:socksport -stats -o batch1.txt

Relevant log output

confirmed in windows and linux, once checked with iftop(Linux) and Glasswire on windows.

Environment

OS: Ubuntu 20.04/Windows 11
Nuclei (nuclei -version): v3.3.1
Go (go version): go1.22.0, Direct exe on windows.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions