diff --git a/pkgs/tools/security/fingerprintx/default.nix b/pkgs/tools/security/fingerprintx/default.nix new file mode 100644 index 000000000000..688413b5da4d --- /dev/null +++ b/pkgs/tools/security/fingerprintx/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "fingerprintx"; + version = "1.1.8"; + + src = fetchFromGitHub { + owner = "praetorian-inc"; + repo = "fingerprintx"; + rev = "refs/tags/v${version}"; + hash = "sha256-CzKaMRPs31Pt/vyLoQ4GrUP31s6zpnEk/p7x3FS4AAg="; + }; + + vendorHash = "sha256-wpqn2Gq/sGBBVIJRiwGc+6fnNJuKRlokb94bKH03oKc="; + + ldflags = [ + "-s" + "-w" + ]; + + # Tests require network access + doCheck = false; + + meta = with lib; { + description = "Standalone utility for service discovery on open ports"; + homepage = "https://github.com/praetorian-inc/fingerprintx"; + changelog = "https://github.com/praetorian-inc/fingerprintx/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96a42f49ceed..1cc7790afe55 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7425,6 +7425,8 @@ with pkgs; zig = zig_0_9; }; + fingerprintx = callPackage ../tools/security/fingerprintx { }; + bsd-finger = callPackage ../tools/networking/bsd-finger { }; bsd-fingerd = bsd-finger.override({ buildClient = false; });