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

set IP to be used to scan with SDK. #4409

Closed
MetzinAround opened this issue Nov 22, 2023 · 1 comment · Fixed by #4472
Closed

set IP to be used to scan with SDK. #4409

MetzinAround opened this issue Nov 22, 2023 · 1 comment · Fixed by #4472
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Milestone

Comments

@MetzinAround
Copy link
Contributor

From Discord, user Isec Vincent
Good morning guys. One question: So far it looks like that with the sdk its currently not possible to set the IP that will be used to scan, when creating a new instance of the nuclei engine with NewNucleiEngine . Is there a workaround for this ? should i open a RFE for this to be added as an option ? thanks

@MetzinAround MetzinAround added the Type: Enhancement Most issues will probably ask for additions or changes. label Nov 22, 2023
@vince-isec
Copy link
Contributor

Would be great if one could setup the scanning interface when creating an instance of the nuclei engine

the option "Interface" is listed here:

Interface string

but there is no way currently to set it up through the nuclei package:

https://github.com/projectdiscovery/nuclei/blob/dev/lib/config.go

as "options" field is not exported, the field cant be set directlyt

https://github.com/projectdiscovery/nuclei/blob/c67473a85c01f125b3fe62093a60fde944935891/lib/sdk.go#L76C22-L76C22

it could probably be added in the "NetworkConfig" type here:

type NetworkConfig struct {

and set through the method "WithNetworkConfig", here:

func WithNetworkConfig(opts NetworkConfig) NucleiSDKOptions {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants