pry0cc / axiom

The dynamic infrastructure framework for everybody! Distribute the workload of many different scanning tools with ease, including nmap, ffuf, masscan, nuclei, meg and many more!
MIT License
4k stars 622 forks source link

--nuclei-templates doesn't work properly with global paths #541

Closed iambouali closed 2 years ago

iambouali commented 2 years ago

--nuclei-templates does not work properly with global paths. When a global path is added it doesn't detect the path and loads all the templates in nuclei. When the relative path is added it works correctly.

Proof of concept

I am in the lab directory, in the work dir (/home/work/lab).

  1. Not woking properly:

axiom-scan test.txt -m nuclei --nuclei-templates /home/work/custom-nuclei-templates -o nuclei.txt

Captura de pantalla 2022-03-13 a las 20 37 43

We can see that all the templates are uploaded, not just the ones found in the /home/work/custom-nuclei-templates directory.

  1. Working properly:

axiom-scan test.txt -m nuclei --nuclei-templates ../custom-nuclei-templates -o nuclei.txt

Captura de pantalla 2022-03-13 a las 23 14 58
iambouali commented 2 years ago

My mistake, I was putting the path incorrectly.