BlackArch / blackarch

An ArchLinux based distribution for penetration testers and security researchers.
https://www.blackarch.org
Other
2.84k stars 576 forks source link

nuclei-templates not used by nuclei package #3382

Open noraj opened 2 years ago

noraj commented 2 years ago

Also right now our package nuclei-templates is pretty useless and not needed as a dependency of nuclei. Why? Because since 2.4.0 nuclei is auto-downloading and updating the templates to ~/nuclei-templates and is not aware of what we deployed at /usr/share/nuclei-templates.

$ nuclei

                     __     _                                                                                                                                                                                                                
   ____  __  _______/ /__  (_)                                                                                                                                                                                                               
  / __ \/ / / / ___/ / _ \/ /                                                                                                                                                                                                                
 / / / / /_/ / /__/ /  __/ /                                                                                                                                                                                                                 
/_/ /_/\__,_/\___/_/\___/_/   2.6.3                                                                                                                                                                                                          

                projectdiscovery.io                                                                                                                                                                                                          

[WRN] Use with caution. You are responsible for your actions.                                                                                                                                                                                
[WRN] Developers assume no liability and are not responsible for any misuse or damage.                                                                                                                                                       
[INF] nuclei-templates are not installed, installing...                                                                                                                                                                                      
[INF] Successfully downloaded nuclei-templates (v8.9.3) to /home/noraj/nuclei-templates. GoodLuck!
[WRN] Found 2 templates with runtime error (use -validate flag for further examination)

So to make the nuclei-templates install system wide taken into account by nuclei we should complexify the install steps :

So the templates would not be downloaded once per user and making the user home messy.

dualfade commented 2 years ago

You are correct. Sorry; mis-read this.

This is not needed.

D3vil0p3r commented 1 month ago

@noraj should it go in remove list?

noraj commented 1 month ago

should it go in remove list?

No. nuclei PKGBUILD should be updated instead. In a way to use nuclei-templates as described above.

D3vil0p3r commented 3 weeks ago

Just to summarize:

noraj commented 3 weeks ago

Remove nuclei-templates as dependency in nuclei

The idea is quite the contrary. It's to make nuclei really use nuclei-templates

D3vil0p3r commented 3 weeks ago

Also right now our package nuclei-templates is pretty useless and not needed as a dependency of nuclei.

Ok... I misled this statement

D3vil0p3r commented 1 week ago

https://github.com/BlackArch/blackarch/pull/4357