nixpkgs/pkgs/tools/security/enum4linux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
933 B
Nix
Raw Normal View History

2021-11-28 11:10:09 +01:00
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, samba
, perl
, openldap
}:
2020-01-25 21:25:44 +01:00
stdenv.mkDerivation rec {
pname = "enum4linux";
2021-11-28 11:10:09 +01:00
version = "0.9.1";
src = fetchFromGitHub {
owner = "CiscoCXSecurity";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/R0P4Ft9Y0LZwKwhDGAe36UKviih6CNbJbj1lcNKEkM=";
2020-01-25 21:25:44 +01:00
};
dontBuild = true;
2021-11-28 11:10:09 +01:00
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
openldap
perl
samba
];
2020-01-25 21:25:44 +01:00
installPhase = ''
mkdir -p $out/bin
cp enum4linux.pl $out/bin/enum4linux
wrapProgram $out/bin/enum4linux \
2021-01-15 10:19:50 +01:00
--prefix PATH : ${lib.makeBinPath [ samba openldap ]}
2020-01-25 21:25:44 +01:00
'';
meta = with lib; {
2020-01-25 21:25:44 +01:00
description = "A tool for enumerating information from Windows and Samba systems";
homepage = "https://labs.portcullis.co.uk/tools/enum4linux/";
2021-11-28 11:10:09 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fishi0x01 ];
2020-01-25 21:25:44 +01:00
platforms = platforms.unix;
};
}