2021-07-17 21:14:59 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "dnsrecon";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
format = "other";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darkoperator";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-VRO5ugr/+iZh+hh3tVs/JNAr7GXao/HK43O3FlkbcSM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dnspython
|
|
|
|
netaddr
|
|
|
|
lxml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace dnsrecon.py \
|
2021-07-17 21:14:59 +00:00
|
|
|
--replace "namelist.txt" "../share/namelist.txt"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "DNS Enumeration script";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/darkoperator/dnsrecon";
|
2021-07-17 21:14:59 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ c0bw3b fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|