github地址:https://github.com/projectdiscovery/nuclei
template 地址:https://github.com/projectdiscovery/nuclei-templates
template 编写官方文档:https://nuclei.projectdiscovery.io/templating-guide/
下载好release可执行文件
例如编写一个检查shiro的template,nuclei也有一个shiro detect的template,下面加上了允许URL跳转,最大跳转三次
执行下列命令:
-l 指定url文件
-t 执行使用的template文件
-o 输出结果
因为nuclei不支持C段,可以改nuclei,在internal\runner\runner.go的147行附近,这段代码是读取文件的url列表,可以在这里加上处理C段的代码,但感觉以后C段转url列表在很多工具也需要(Kunpeng),于是我简单写了个C段和端口转URL的脚本
https://github.com/Lhaihai/Tools/tree/main/c2ip
默认template模板也有很多,可以搜索
windows 下搜索文件命令 dir /s /b "*shiro*"
linux 下搜索文件命令 find . -name "*shiro*"
nuclei 支持workflows,简单来说,例如当检测出存在springboot框架的文件,可以接着调动springboot的漏洞检测,例如