git: 2bceb891dc80 - main - Add security/nuclei: Fast vulnerability scanner

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Tue, 25 Oct 2022 12:43:41 UTC
The branch main has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2bceb891dc80c66b69d3a2a5a51ba8819bf04d2c

commit 2bceb891dc80c66b69d3a2a5a51ba8819bf04d2c
Author:     Gabriel M. Dutra <0xdutra@gmail.com>
AuthorDate: 2022-10-25 12:42:46 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-25 12:42:46 +0000

    Add security/nuclei: Fast vulnerability scanner
    
    PR:             266509
---
 security/Makefile         |  1 +
 security/nuclei/Makefile  | 19 +++++++++++++++++++
 security/nuclei/distinfo  |  5 +++++
 security/nuclei/pkg-descr | 14 ++++++++++++++
 4 files changed, 39 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index a296c7eaeeba..c0797dc26729 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -371,6 +371,7 @@
     SUBDIR += nmap
     SUBDIR += nss
     SUBDIR += nss_compat_ossl
+    SUBDIR += nuclei
     SUBDIR += nyx
     SUBDIR += oath-toolkit
     SUBDIR += obfs4proxy-tor
diff --git a/security/nuclei/Makefile b/security/nuclei/Makefile
new file mode 100644
index 000000000000..ed9b5c96cc04
--- /dev/null
+++ b/security/nuclei/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	nuclei
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.7.7
+CATEGORIES=	security
+
+MAINTAINER=	0xdutra@gmail.com
+COMMENT=	Fast vulnerability scanner
+WWW=		https://github.com/projectdiscovery/nuclei
+
+LICENSE=	MIT
+
+USES=		go:modules
+GO_MODULE=	github.com/projectdiscovery/nuclei/v2
+
+GO_TARGET=	./cmd/${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/security/nuclei/distinfo b/security/nuclei/distinfo
new file mode 100644
index 000000000000..adae2bd2468a
--- /dev/null
+++ b/security/nuclei/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1663632230
+SHA256 (go/security_nuclei/nuclei-v2.7.7/v2.7.7.mod) = 738456aaef801b18ae5a79cf2c653afd0c26440091b30d7006d842f731a9e986
+SIZE (go/security_nuclei/nuclei-v2.7.7/v2.7.7.mod) = 8713
+SHA256 (go/security_nuclei/nuclei-v2.7.7/v2.7.7.zip) = 56cee7cd370bd3a5841432e2feaa6354e8c2ca68f1a528d05eae0fd13fdbf89a
+SIZE (go/security_nuclei/nuclei-v2.7.7/v2.7.7.zip) = 447171
diff --git a/security/nuclei/pkg-descr b/security/nuclei/pkg-descr
new file mode 100644
index 000000000000..56527b3d00c9
--- /dev/null
+++ b/security/nuclei/pkg-descr
@@ -0,0 +1,14 @@
+Fast and customizable vulnerability scanner based on simple YAML based DSL.
+
+Nuclei offers scanning for a variety of protocols:
+ - TCP
+ - DNS
+ - HTTP
+ - SSL
+ - File
+ - Whois
+ - Websocket
+ - Headless
+
+Example templates:
+ - github.com/projectdiscovery/nuclei-templates