summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2019-05-21 15:44:24 +0900
committerGitHub <noreply@github.com>2019-05-21 15:44:24 +0900
commitcef246e01490938a7a909cb6d1147b32c67d7204 (patch)
treec060a4b40b00640b205b4c6aadb055a7981276b3 /pkgs/tools/security
parent554d6cf07f1b9a4e2388db11e3be2b1b0b2ca10e (diff)
parent17815ba47ecaf3ad9c78708dc9b8a50d22f32fab (diff)
Merge pull request #61714 from c0bw3b/pkg/sec-dns-tools
Package some DNS security tools
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/dnsenum/default.nix31
-rw-r--r--pkgs/tools/security/dnsrecon/default.nix44
-rw-r--r--pkgs/tools/security/fierce/default.nix23
-rw-r--r--pkgs/tools/security/theharvester/default.nix13
4 files changed, 104 insertions, 7 deletions
diff --git a/pkgs/tools/security/dnsenum/default.nix b/pkgs/tools/security/dnsenum/default.nix
new file mode 100644
index 000000000000..d764e8a71ae6
--- /dev/null
+++ b/pkgs/tools/security/dnsenum/default.nix
@@ -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;
+ };
+}
diff --git a/pkgs/tools/security/dnsrecon/default.nix b/pkgs/tools/security/dnsrecon/default.nix
new file mode 100644
index 000000000000..06270723f4d0
--- /dev/null
+++ b/pkgs/tools/security/dnsrecon/default.nix
@@ -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 ];
+ };
+}
diff --git a/pkgs/tools/security/fierce/default.nix b/pkgs/tools/security/fierce/default.nix
new file mode 100644
index 000000000000..abc1bacd212b
--- /dev/null
+++ b/pkgs/tools/security/fierce/default.nix
@@ -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;
+ };
+}
diff --git a/pkgs/tools/security/theharvester/default.nix b/pkgs/tools/security/theharvester/default.nix
index 0c0cf29f977f..4a1e92e6104a 100644
--- a/pkgs/tools/security/theharvester/default.nix
+++ b/pkgs/tools/security/theharvester/default.nix
@@ -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