nuclei
nuclei copied to clipboard
Support for customizing the directory of all configuration files
I don't have write access to the home directory in particular environment, but I didn't find any flag to custom .templates-config.json
file. So, I would like to customize the directory for all configuration files. Like, -config-directory /tmp/nuclei/
Hi,
Just in case, you can do something like export HOME='/tmp' && nuclei ...
to get around the fact that HOME is not defined, I use this technique and it works :)
Hi, Just in case, you can do something like
export HOME='/tmp' && nuclei ...
to get around the fact that HOME is not defined, I use this technique and it works :)
Indeed, it works. Hopefully nuclei will provide a more elegant solution than hard-coding the config file path.
I tried to fix the problem by modifying the code myself, but it required multiple changes and could have caused unpredictable bugs, so I did not submit this pr.
- Add a new command line flag:
-config-directory Override the default config path ($home/.config)
- Create follow up tickets to allow execution when there are no write permission to
.config
folder (use in memory default values and downloadnuclei-templates
to/tmp
if not provided/found/writeable)
@M09Ic @JoshuaMart this is now supported in the latest version of nuclei, -config-directory
flag can be used to override the default config path.