projectdiscovery / nuclei

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

Output: JSONL: Inconsistent reporting of service protocol, name and port in output data #3510

Open bcoles opened 1 year ago

bcoles commented 1 year ago

Please describe your feature request:

Several useful pieces of data are missing from the JSONL output format.

The output data includes inconsistent reporting of service protocol, service name and service port.

While this could (should?) be resolved in each template, this seems like the kind of thing which could be resolved in the core nuclei engine.

I would like the service protocol, service name and service port to be included in the output to facilitate importing the data into other tools.

Describe the use case of this feature:

nuclei has become the most useful and popular scanning tool (congrats).

nuclei supports logging and exporting data in various standard formats. Ideally, it should be possible to import this data into other tools.

Unfortunately there are some inconsistencies or gaps in the data format which impact the usefulness of such an import. Specifically:

I've created a pending PR for Metasploit to facilitate importing nuclei scan JSONL output into the Metasploit database. However, the above issues are not unique to Metasploit and will likely also pose an issue for any other tools importing nuclei data.

Please refer to the Metasploit pull request for context, sample data and sample output. The above issues are described in the "Bugs" section.

Mzack9999 commented 1 year ago

This will be indirectly fixed via https://github.com/projectdiscovery/naabu/pull/670 and https://github.com/projectdiscovery/netdb