@@ -0,0 +1,38 @@
1+{ buildGoModule
2+, fetchFromGitHub
3+, lib
4+, libpcap
5+}:
6+
7+buildGoModule rec {
8+ pname = "naabu";
9+ version = "2.0.3";
10+
11+ src = fetchFromGitHub {
12+ owner = "projectdiscovery";
13+ repo = "naabu";
14+ rev = "v${version}";
15+ sha256 = "05iybf7q3y0piyw202yzld89fiz2dv2pmnpm1pd905phk5a23n1x";
16+ };
17+
18+ vendorSha256 = "111qvkqdcdgir3dz267xckzlnfx72flnyi7ki7fa6ml7mkfyf70y";
19+
20+ buildInputs = [ libpcap ];
21+
22+ preBuild = ''
23+ mv v2/* .
24+ '';
25+
26+ meta = with lib; {
27+ description = "Fast SYN/CONNECT port scanner";
28+ longDescription = ''
29+ Naabu is a port scanning tool written in Go that allows you to enumerate
30+ valid ports for hosts in a fast and reliable manner. It is a really simple
31+ tool that does fast SYN/CONNECT scans on the host/list of hosts and lists
32+ all ports that return a reply.
33+ '';
34+ homepage = "https://github.com/projectdiscovery/naabu";
35+ license = licenses.asl20;
36+ maintainers = with maintainers; [ fab ];
37+ };
38+}