diff options
author | Karl Fischer <fishi0x01@gmail.com> | 2020-01-25 21:25:44 +0100 |
---|---|---|
committer | Karl Fischer <fishi0x01@gmail.com> | 2020-01-25 21:27:35 +0100 |
commit | 6e83d1687eb1b5ed59b2a7611832a87821f30700 (patch) | |
tree | 9731029f5127af834d8a3d6b5f6ddb0b80a703d1 /pkgs/tools/security/enum4linux | |
parent | 22a1deaf2cebf6f9a9be26b0e49c91750a574043 (diff) |
enum4linux: init at 0.8.9
Diffstat (limited to 'pkgs/tools/security/enum4linux')
-rw-r--r-- | pkgs/tools/security/enum4linux/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/enum4linux/default.nix b/pkgs/tools/security/enum4linux/default.nix new file mode 100644 index 0000000000000..9a7d1861d9bd6 --- /dev/null +++ b/pkgs/tools/security/enum4linux/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, makeWrapper, samba, perl, openldap }: + +stdenv.mkDerivation rec { + pname = "enum4linux"; + version = "0.8.9"; + src = fetchurl { + url = "https://labs.portcullis.co.uk/download/enum4linux-${version}.tar.gz"; + sha256 = "41334df0cb1ba82db9e3212981340372bb355a8160073331d2a1610908a62d85"; + }; + + dontBuild = true; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ samba perl openldap ]; + + installPhase = '' + mkdir -p $out/bin + cp enum4linux.pl $out/bin/enum4linux + + wrapProgram $out/bin/enum4linux \ + --prefix PATH : ${stdenv.lib.makeBinPath [ samba openldap ]} + ''; + + meta = with stdenv.lib; { + description = "A tool for enumerating information from Windows and Samba systems"; + homepage = "https://labs.portcullis.co.uk/tools/enum4linux/"; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = [ maintainers.fishi0x01 ]; + }; +} + |