mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #78311 from fishi0x01/fishi0x01/enum4linux
enum4linux: init at 0.8.9
This commit is contained in:
commit
ea87d5fc8a
@ -2405,6 +2405,12 @@
|
||||
githubId = 415760;
|
||||
name = "Jonas Höglund";
|
||||
};
|
||||
fishi0x01 = {
|
||||
email = "fishi0x01@gmail.com";
|
||||
github = "fishi0x01";
|
||||
githubId = 10799507;
|
||||
name = "Karl Fischer";
|
||||
};
|
||||
Flakebi = {
|
||||
email = "flakebi@t-online.de";
|
||||
github = "Flakebi";
|
||||
|
31
pkgs/tools/security/enum4linux/default.nix
Normal file
31
pkgs/tools/security/enum4linux/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
@ -179,6 +179,8 @@ in
|
||||
|
||||
deviceTree = callPackage ../os-specific/linux/device-tree {};
|
||||
|
||||
enum4linux = callPackage ../tools/security/enum4linux {};
|
||||
|
||||
device-tree_rpi = callPackage ../os-specific/linux/device-tree/raspberrypi.nix {};
|
||||
|
||||
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;
|
||||
|
Loading…
Reference in New Issue
Block a user