about summary refs log tree commit diff
path: root/pkgs/tools/security/naabu
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2020-12-27 00:43:52 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2020-12-27 00:43:52 +0100
commit79b930dc12424fa498346f852c0d2af46f0a83bc (patch)
treeb44c15644bf98584063bcd0f4c5a89fa5e3d7041 /pkgs/tools/security/naabu
parent1b750c41fc0cc7cef7992a150c05d11a15bd226a (diff)
naabu: init at 2.0.3
Diffstat (limited to 'pkgs/tools/security/naabu')
-rw-r--r--pkgs/tools/security/naabu/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/security/naabu/default.nix b/pkgs/tools/security/naabu/default.nix
new file mode 100644
index 0000000000000..a2295d87fec76
--- /dev/null
+++ b/pkgs/tools/security/naabu/default.nix
@@ -0,0 +1,38 @@
+{ buildGoModule
+, fetchFromGitHub
+, lib
+, libpcap
+}:
+
+buildGoModule rec {
+  pname = "naabu";
+  version = "2.0.3";
+
+  src = fetchFromGitHub {
+    owner = "projectdiscovery";
+    repo = "naabu";
+    rev = "v${version}";
+    sha256 = "05iybf7q3y0piyw202yzld89fiz2dv2pmnpm1pd905phk5a23n1x";
+  };
+
+  vendorSha256 = "111qvkqdcdgir3dz267xckzlnfx72flnyi7ki7fa6ml7mkfyf70y";
+
+  buildInputs = [ libpcap ];
+
+  preBuild = ''
+    mv v2/* .
+  '';
+
+  meta = with lib; {
+    description = "Fast SYN/CONNECT port scanner";
+    longDescription = ''
+      Naabu is a port scanning tool written in Go that allows you to enumerate
+      valid ports for hosts in a fast and reliable manner. It is a really simple
+      tool that does fast SYN/CONNECT scans on the host/list of hosts and lists
+      all ports that return a reply.
+    '';
+    homepage = "https://github.com/projectdiscovery/naabu";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+  };
+}