无法使用 -json 标志与 Nuclei 进行 JSONL 输出

问题描述 投票:0回答:1

我目前正在使用 Nuclei 并尝试使用

-json
标志来获取 JSONL 格式的输出。但是,我收到一条错误消息,指出
flag provided but not defined: -json

我使用的命令是:

nuclei -u <target_url> -t <templates_path> -json

我还使用了我在ProjectDiscovery nuclei 视频

中找到的内容
nuclei -tags tech -u <target_url> -json

甚至还有一些解决方法,但当然效果不佳

nuclei -tags tech -u <target_url> -json -o output.json

Nuclei 的文档指出它支持多种输出选项,包括用于 JSONL 格式输出的

-json
,但似乎在我与模板版本
v2.9.15
一起使用的版本
v9.6.4
中无法识别该标志。

以下是文档中所述输出选项的简要概述:

-json                         write output in JSONL(ines) format

有人遇到过这个问题吗?如果有,是否有解决方法或解决方案?

-json
标志是否在不同版本中可用,或者是否有其他方法可以以结构化格式(如 JSON)获取输出?

感谢您的帮助或见解!

json security command-line
1个回答
0
投票

Nuclei 现在使用 -j 作为标准 json 输出。这是当前的用法

-j, -jsonl                    write output in JSONL(ines) format
-je, -json-export string      file to export results in JSON format
-jle, -jsonl-export string    file to export results in JSONL(ine) format
© www.soinside.com 2019 - 2024. All rights reserved.