summary refs log tree commit diff
path: root/pkgs/tools/security/dnsrecon/default.nix
diff options
context:
space:
mode:
authorc0bw3b <c0bw3b@users.noreply.github.com>2019-05-19 18:03:40 +0200
committerc0bw3b <c0bw3b@users.noreply.github.com>2019-05-20 20:48:26 +0200
commit092791c8b1c9794270ea7d3f0029726f829acb70 (patch)
tree3318ab843d2915da6b8fd70b94e79b19d694e77f /pkgs/tools/security/dnsrecon/default.nix
parentc29a5296189d0bd60a3fa01853828ae4d2a5ddad (diff)
downloadnixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar.gz
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar.bz2
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar.lz
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar.xz
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.tar.zst
nixpkgs-092791c8b1c9794270ea7d3f0029726f829acb70.zip
dnsrecon: init at 0.9.1
Co-authored-by: Robin Gloster <mail@glob.in>
Diffstat (limited to 'pkgs/tools/security/dnsrecon/default.nix')
-rw-r--r--pkgs/tools/security/dnsrecon/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/security/dnsrecon/default.nix b/pkgs/tools/security/dnsrecon/default.nix
new file mode 100644
index 00000000000..06270723f4d
--- /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 ];
+  };
+}