5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
49 lines
998 B
Nix
49 lines
998 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "dnsrecon";
|
|
version = "1.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "darkoperator";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-W7ZFc+kF00ANoYVTlsY+lJ9FjMEGbqYfNojoZFiRHU8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements.txt \
|
|
--replace "flake8" "" \
|
|
--replace "pytest" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
dnspython
|
|
netaddr
|
|
lxml
|
|
setuptools
|
|
];
|
|
|
|
preFixup = ''
|
|
# Install wordlists, etc.
|
|
install -vD namelist.txt subdomains-*.txt snoop.txt -t $out/share/wordlists
|
|
'';
|
|
|
|
# Tests require access to /etc/resolv.conf
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dnsrecon"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "DNS Enumeration script";
|
|
homepage = "https://github.com/darkoperator/dnsrecon";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ c0bw3b fab ];
|
|
};
|
|
}
|