From 1f9806891d18c3f984e41f56fe0cc4458ee01e29 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Jun 2022 08:56:22 +0200 Subject: [PATCH 1/2] dnsrecon: 1.0.0 -> 1.1.0 --- pkgs/tools/security/dnsrecon/default.nix | 28 ++++++++++-------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pkgs/tools/security/dnsrecon/default.nix b/pkgs/tools/security/dnsrecon/default.nix index e3fe955eb9f1..8114444bcd09 100644 --- a/pkgs/tools/security/dnsrecon/default.nix +++ b/pkgs/tools/security/dnsrecon/default.nix @@ -5,38 +5,34 @@ python3.pkgs.buildPythonApplication rec { pname = "dnsrecon"; - version = "1.0.0"; - format = "other"; + version = "1.1.0"; + format = "setuptools"; src = fetchFromGitHub { owner = "darkoperator"; repo = pname; rev = version; - sha256 = "sha256-VRO5ugr/+iZh+hh3tVs/JNAr7GXao/HK43O3FlkbcSM="; + hash = "sha256-O6MdSaCxrprsxffeVKciIjSkdMXsT4riOvNCM4iZfn0="; }; propagatedBuildInputs = with python3.pkgs; [ dnspython netaddr lxml + setuptools ]; - postPatch = '' - substituteInPlace dnsrecon.py \ - --replace "namelist.txt" "../share/namelist.txt" + preFixup = '' + # Install wordlists, etc. + install -vD namelist.txt subdomains-*.txt snoop.txt -t $out/share/wordlists ''; - 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 - ''; + # Tests require access to /etc/resolv.conf + doCheck = false; + pythonImportsCheck = [ + "dnsrecon" + ]; meta = with lib; { description = "DNS Enumeration script"; From d7500fd8ef428c3c13b5e35644c0590b9e124eec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Jun 2022 08:56:51 +0200 Subject: [PATCH 2/2] dnsrecon: 1.1.0 -> 1.1.1 --- pkgs/tools/security/dnsrecon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/dnsrecon/default.nix b/pkgs/tools/security/dnsrecon/default.nix index 8114444bcd09..73e4f79cab80 100644 --- a/pkgs/tools/security/dnsrecon/default.nix +++ b/pkgs/tools/security/dnsrecon/default.nix @@ -5,14 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "dnsrecon"; - version = "1.1.0"; + version = "1.1.1"; format = "setuptools"; src = fetchFromGitHub { owner = "darkoperator"; repo = pname; rev = version; - hash = "sha256-O6MdSaCxrprsxffeVKciIjSkdMXsT4riOvNCM4iZfn0="; + hash = "sha256-zbFtaEklkfLkrqJAPptOqDTdWGbCE+3ZO79t68iqLIU="; }; propagatedBuildInputs = with python3.pkgs; [