depot/third_party/nixpkgs/pkgs/tools/security/dnsrecon/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

43 lines
875 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "dnsrecon";
version = "1.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "darkoperator";
repo = pname;
rev = version;
hash = "sha256-rOFDoQEIlwV02c2aJsovnhvaC2XTFq9mMEfilG+Gs4w=";
};
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 ];
};
}