Merge pull request #177479 from fabaff/dnsrecon-bump

dnsrecon: 1.0.0 -> 1.1.1
This commit is contained in:
Fabian Affolter 2022-06-13 22:46:04 +02:00 committed by GitHub
commit ac8cd9b77c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,38 +5,34 @@
python3.pkgs.buildPythonApplication rec {
pname = "dnsrecon";
version = "1.0.0";
format = "other";
version = "1.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "darkoperator";
repo = pname;
rev = version;
sha256 = "sha256-VRO5ugr/+iZh+hh3tVs/JNAr7GXao/HK43O3FlkbcSM=";
hash = "sha256-zbFtaEklkfLkrqJAPptOqDTdWGbCE+3ZO79t68iqLIU=";
};
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";