Skip to content

Nuclei config path .nuclei-config/nuclei instead of $HOME/.config/nuclei #4395

Closed Answered by tarunKoyalwar
revirven asked this question in Q&A
Discussion options

You must be logged in to vote

@revirven , thanks for reaching out with, nuclei v3 we have switched to using os.UserConfigDir in go which respects sandbox env's and other enforced options. while using nuclei if it is not able to find config directory of that user in this case www-data nuclei creates a new config dir with name .nuclei-config.

to fix this and change directory to any other location by overriding env variable specific to your platform

for linux you can add env like

XDG_CONFIG_HOME=/opt/nuclei

or other preferred directory you want to use

Note: you can now also change location of resume files by overriding cache directory https://pkg.go.dev/os#UserCacheDir

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ehsandeep
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants