Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout to scan through SOCKS proxy #601

Merged
merged 4 commits into from
Mar 19, 2023

Conversation

jpts
Copy link
Contributor

@jpts jpts commented Mar 15, 2023

Currently when scanning through a SOCKS proxy, only the timeout between the scanner and proxy is configurable, whereas the remote connection between proxy and target is not. This is undesirable as scans can take a long time if the remote connection takes a long time.

This change adds a context to the proxyDialer, which sets this timeout for the connection as per the main configuration option.

Alternative:
We could potentially expose this timeout as a separate CLI argument, but it was not needed for my use case.

@ehsandeep ehsandeep changed the base branch from main to dev March 15, 2023 18:15
@Mzack9999 Mzack9999 linked an issue Mar 19, 2023 that may be closed by this pull request
@Mzack9999 Mzack9999 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Mar 19, 2023
@Mzack9999 Mzack9999 merged commit d9b9581 into projectdiscovery:dev Mar 19, 2023
@jpts jpts deleted the timeout-proxy-scan branch March 19, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Socks5 timeout is not configurable between proxy and target
3 participants