projectdiscovery / nuclei

Fast and customizable vulnerability scanner based on simple YAML based DSL.
https://docs.projectdiscovery.io/tools/nuclei
MIT License
19.85k stars 2.44k forks source link

[FTL] Could not run nuclei: no templates provided for scan #5256

Closed fubxx closed 3 months ago

fubxx commented 3 months ago

Nuclei Version

Mac :: /Volumes/tool/nuclei »
nuclei --version
[INF] Nuclei Engine Version: v3.2.8
[INF] Nuclei Config Directory: /Users/xxxxx/Library/Application Support/nuclei
[INF] Nuclei Cache Directory: /Users/xxxxx/Library/Caches/nuclei
[INF] PDCP Directory: /Users/xxxxx/.pdcp

yaml validate

Mac :: /Volumes/tool/nuclei »
nuclei -validate -t CVE-2024-4956-POC.yaml

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.8

        projectdiscovery.io

[VER] Started metrics server at localhost:9092
[INF] All templates validated successfully

when scan

Mac :: /Volumes/tool/nuclei »
nuclei -t /Volumes/tool/nuclei/CVE-2024-4956-POC.yaml -u http://nexus.xxxx.com:8081/

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.8

        projectdiscovery.io

[INF] Current nuclei version: v3.2.8 (latest)
[INF] Current nuclei-templates version: v9.8.7 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] Targets loaded for current scan: 1
[INF] No results found. Better luck next time!
[FTL] Could not run nuclei: no templates provided for scan

can anyone help me with this error

tarunKoyalwar commented 3 months ago

@fubxx if you use -v flag it will show the exact reason why the template did not run , in most cases it is due to missing -headless , -fuzz or -code depending on what feature the template uses