67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
perl,
|
|
perlPackages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dnsenum";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SparrowOchon";
|
|
repo = "dnsenum2";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-I4I+HNQC7xqIF2P7NBy2Ophh3znl5qy9fSicJKIBUis=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
rm Makefile
|
|
'';
|
|
|
|
propagatedBuildInputs = with perlPackages; [
|
|
perl
|
|
NetDNS
|
|
NetIP
|
|
NetNetmask
|
|
StringRandom
|
|
XMLWriter
|
|
NetWhoisIP
|
|
WWWMechanize
|
|
];
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -vD dnsenum.pl $out/bin/dnsenum
|
|
install -vD dns.txt -t $out/share
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/dnsenum \
|
|
--prefix PERL5LIB : "${
|
|
with perlPackages;
|
|
makePerlPath [
|
|
NetIP
|
|
NetDNS
|
|
NetNetmask
|
|
StringRandom
|
|
XMLWriter
|
|
NetWhoisIP
|
|
WWWMechanize
|
|
]
|
|
}"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/SparrowOchon/dnsenum2";
|
|
description = "Tool to enumerate DNS information";
|
|
mainProgram = "dnsenum";
|
|
maintainers = with lib.maintainers; [ tbutter ];
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|