projectdiscovery / nuclei-templates

Community curated list of templates for the nuclei engine to find security vulnerabilities.
https://github.com/projectdiscovery/nuclei
MIT License
8.96k stars 2.56k forks source link

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

Closed yogendra-singh-rathore closed 2 months ago

yogendra-singh-rathore commented 2 months ago

Issue description:

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

Screenshot 2024-06-13 115804

even i sign my template Screenshot 2024-06-13 164413

Here is my code: id: xss-detection info: name: Cross-Site Scripting Detection author: yourname severity: medium requests:

Mzack9999 commented 2 months ago

I think your template is not formatted properly, this works for me:

id: xss-detection
info:
  name: Cross-Site Scripting Detection
  author: yourname
  severity: medium

requests:
  - method: GET
    path:
      - "{{BaseURL}}/#/search?q=<iframe src=<script>alert(1)</script>"
    matchers:
      - type: word
        words:
          - "<script>alert(1)</script>"
        part: body
yogendra-singh-rathore commented 2 months ago

Thank you it's working can you help to give me a basic template structure?

Mzack9999 commented 2 months ago

There isn't a generic template structure, it really depends on what you need to do. Probably the AI template editor at https://cloud.projectdiscovery.io/ could be a very good starting point