You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of only looking at ~/.config/nuclei/config.yaml, nuclei would resolve $XDG_CONFIG_HOME and try global config too. So with default value, for example, it could look for (in order):
$XDG_CONFIG_HOME/nuclei/config.yaml (in most cases would resolve to ~/.config/nuclei/config.yaml) to look for user-defined config
Same for templates, instead of dumping them at ~/nuclei-templates, it would look at:
$XDG_DATA_HOME/nuclei/templates/ (in most cases would resolve to $HOME/.local/share/nuclei/templates/)
$XDG_DATA_DIRS/nuclei/templates/ 1st value (in most cases would resolve to /usr/local/share/nuclei/templates/)
$XDG_DATA_DIRS/nuclei/templates/ 2nd value (in most cases would resolve to /usr/share/nuclei/templates/)
Hardcoded ~/nuclei-templates fallback
That would help to comply with standard paths, ensure to respect users custom structures, ease distribution packaging, unmess the root of user home directory.
Related issues on BlackArch Linux for packaging nuclei
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The idea would be to follows XDG Base Directory Specification standard.
Instead of only looking at
~/.config/nuclei/config.yaml, nuclei would resolve$XDG_CONFIG_HOMEand try global config too. So with default value, for example, it could look for (in order):$XDG_CONFIG_HOME/nuclei/config.yaml(in most cases would resolve to ~/.config/nuclei/config.yaml) to look for user-defined config~/.config/nuclei/config.yamlfallbackSame for templates, instead of dumping them at
~/nuclei-templates, it would look at:$XDG_DATA_HOME/nuclei/templates/(in most cases would resolve to$HOME/.local/share/nuclei/templates/)$XDG_DATA_DIRS/nuclei/templates/1st value (in most cases would resolve to/usr/local/share/nuclei/templates/)$XDG_DATA_DIRS/nuclei/templates/2nd value (in most cases would resolve to/usr/share/nuclei/templates/)~/nuclei-templatesfallbackThat would help to comply with standard paths, ensure to respect users custom structures, ease distribution packaging, unmess the root of user home directory.
Related issues on BlackArch Linux for packaging nuclei
Beta Was this translation helpful? Give feedback.
All reactions