mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
Merge pull request #61714 from c0bw3b/pkg/sec-dns-tools
Package some DNS security tools
This commit is contained in:
commit
cef246e014
31
pkgs/tools/security/dnsenum/default.nix
Normal file
31
pkgs/tools/security/dnsenum/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, perl, perlPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dnsenum";
|
||||
version = "1.2.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fwaeytens";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1bg1ljv6klic13wq4r53bg6inhc74kqwm3w210865b1v1n8wj60v";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/fwaeytens/dnsenum";
|
||||
description = "A tool to enumerate DNS information";
|
||||
maintainers = with maintainers; [ c0bw3b globin ];
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
44
pkgs/tools/security/dnsrecon/default.nix
Normal file
44
pkgs/tools/security/dnsrecon/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ stdenv, fetchFromGitHub, python3 }:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "dnsrecon";
|
||||
version = "0.9.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darkoperator";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ysf8wx287psfk89r0i2vgnrjvxdj44s6nhf6sva59jbwvr9lghy";
|
||||
};
|
||||
|
||||
format = "other";
|
||||
|
||||
pythonPath = with python3.pkgs; [
|
||||
dns netaddr lxml
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace dnsrecon.py \
|
||||
--replace "namelist.txt" "../share/namelist.txt" \
|
||||
--replace "0.9.0" "${version}"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -vD dnsrecon.py $out/bin/dnsrecon
|
||||
install -vD namelist.txt subdomains-*.txt -t $out/share
|
||||
install -vd $out/${python3.sitePackages}/
|
||||
cp -R lib tools msf_plugin $out/${python3.sitePackages}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "DNS Enumeration Script";
|
||||
homepage = "https://github.com/darkoperator/dnsrecon";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ c0bw3b globin ];
|
||||
};
|
||||
}
|
23
pkgs/tools/security/fierce/default.nix
Normal file
23
pkgs/tools/security/fierce/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchFromGitHub, python3 }:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "fierce";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mschwager";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0cdp9rpabazyfnks30rsf3qfdi40z1bkspxk4ds9bm82kpq33jxy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python3.pkgs.dns ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/mschwager/fierce";
|
||||
description = "DNS reconnaissance tool for locating non-contiguous IP space";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ c0bw3b globin ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -1,21 +1,20 @@
|
||||
{ stdenv, makeWrapper, python2Packages, fetchFromGitHub }:
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, python3Packages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "theHarvester";
|
||||
version = "2.7.1";
|
||||
name = "${pname}-${version}";
|
||||
version = "3.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "laramies";
|
||||
repo = "${pname}";
|
||||
rev = "25553762d2d93a39083593adb08a34d5f5142c60";
|
||||
sha256 = "0gnm598y6paz0knwvdv1cx0w6ngdbbpzkdark3q5vs66yajv24w4";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0f33a7sfb5ih21yp1wspb03fxsls1m14yizgrw0srfirm2a6aa0c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
# add dependencies
|
||||
propagatedBuildInputs = [ python2Packages.requests ];
|
||||
propagatedBuildInputs = with python3Packages; [ requests beautifulsoup4 plotly ];
|
||||
|
||||
installPhase = ''
|
||||
# create dirs
|
||||
|
@ -2437,10 +2437,14 @@ in
|
||||
|
||||
dnscrypt-wrapper = callPackage ../tools/networking/dnscrypt-wrapper { };
|
||||
|
||||
dnsenum = callPackage ../tools/security/dnsenum { };
|
||||
|
||||
dnsmasq = callPackage ../tools/networking/dnsmasq { };
|
||||
|
||||
dnsperf = callPackage ../tools/networking/dnsperf { };
|
||||
|
||||
dnsrecon = callPackage ../tools/security/dnsrecon { };
|
||||
|
||||
dnstop = callPackage ../tools/networking/dnstop { };
|
||||
|
||||
dhcp = callPackage ../tools/networking/dhcp { };
|
||||
@ -2877,6 +2881,8 @@ in
|
||||
|
||||
fltrdr = callPackage ../tools/misc/fltrdr { stdenv = gcc8Stdenv; };
|
||||
|
||||
fierce = callPackage ../tools/security/fierce { };
|
||||
|
||||
figlet = callPackage ../tools/misc/figlet { };
|
||||
|
||||
file = callPackage ../tools/misc/file {
|
||||
|
@ -11426,6 +11426,18 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
NetNetmask = buildPerlPackage rec {
|
||||
name = "Net-Netmask-1.9104";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/J/JM/JMASLAK/${name}.tar.gz";
|
||||
sha256 = "17li2svymz49az35xl6galp4b9qcnb985gzklhikkvkn9da6rz3y";
|
||||
};
|
||||
buildInputs = [ Test2Suite TestUseAllModules ];
|
||||
meta = {
|
||||
description = "Parse, manipulate and lookup IP network blocks";
|
||||
};
|
||||
};
|
||||
|
||||
NetOAuth = buildPerlModule {
|
||||
name = "Net-OAuth-0.28";
|
||||
src = fetchurl {
|
||||
@ -11658,6 +11670,22 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
NetWhoisIP = buildPerlPackage rec {
|
||||
name = "Net-Whois-IP-1.19";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/B/BS/BSCHMITZ/${name}.tar.gz";
|
||||
sha256 = "08kj2h9qiyfvv3jfz619xl796j93cslg7d96919mnrnjy6hdz6zh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ RegexpIPv6 LWPProtocolhttps ];
|
||||
doCheck = false;
|
||||
|
||||
# https://rt.cpan.org/Public/Bug/Display.html?id=99377
|
||||
postPatch = ''
|
||||
substituteInPlace IP.pm --replace " AutoLoader" ""
|
||||
'';
|
||||
};
|
||||
|
||||
NetWorks = buildPerlPackage {
|
||||
name = "Net-Works-0.22";
|
||||
src = fetchurl {
|
||||
@ -14141,6 +14169,14 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
StringRandom = buildPerlModule rec {
|
||||
name = "String-Random-0.30";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/S/SH/SHLOMIF/${name}.tar.gz";
|
||||
sha256 = "06xdpyjc53al0a4ib2lw1m388v41z97hzqbdkd00w3nmjsdrn4w1";
|
||||
};
|
||||
};
|
||||
|
||||
StringRewritePrefix = buildPerlPackage {
|
||||
name = "String-RewritePrefix-0.007";
|
||||
src = fetchurl {
|
||||
|
Loading…
Reference in New Issue
Block a user