nixpkgs/pkgs/tools/security/theharvester/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.5 KiB
Nix
Raw Normal View History

2021-01-18 06:49:46 +00:00
{ lib
, fetchFromGitHub
, python3
}:
2018-02-09 09:00:15 +00:00
python3.pkgs.buildPythonApplication rec {
2021-07-08 21:43:10 +00:00
pname = "theharvester";
2022-08-15 17:23:03 +00:00
version = "4.2.0";
2018-02-09 09:00:15 +00:00
src = fetchFromGitHub {
owner = "laramies";
2019-05-19 16:50:11 +00:00
repo = pname;
2021-03-10 01:01:55 +00:00
rev = version;
2022-08-15 17:23:03 +00:00
sha256 = "sha256-P3yp6COwyQnVDfZM198ygu+HLdisRw068aZOVSLl7r4=";
2018-02-09 09:00:15 +00:00
};
2021-01-18 06:49:46 +00:00
propagatedBuildInputs = with python3.pkgs; [
aiodns
2021-07-08 21:43:10 +00:00
aiofiles
2021-01-18 06:49:46 +00:00
aiohttp
aiomultiprocess
aiosqlite
beautifulsoup4
censys
certifi
dnspython
2021-07-08 21:43:10 +00:00
fastapi
2021-01-18 06:49:46 +00:00
lxml
netaddr
2021-11-10 21:27:39 +00:00
orjson
2021-01-18 06:49:46 +00:00
plotly
pyppeteer
pyyaml
requests
retrying
shodan
2021-07-08 21:43:10 +00:00
slowapi
starlette
uvicorn
2021-01-18 06:49:46 +00:00
uvloop
];
2018-02-09 09:00:15 +00:00
2021-07-08 21:43:10 +00:00
checkInputs = with python3.pkgs; [
pytest
pytest-asyncio
];
2018-02-09 09:00:15 +00:00
# We don't run other tests (discovery modules) because they require network access
2021-07-08 21:43:10 +00:00
checkPhase = ''
runHook preCheck
pytest tests/test_myparser.py
runHook postCheck
'';
2018-02-09 09:00:15 +00:00
meta = with lib; {
2018-02-09 09:00:15 +00:00
description = "Gather E-mails, subdomains and names from different public sources";
longDescription = ''
theHarvester is a very simple, yet effective tool designed to be used in the early
stages of a penetration test. Use it for open source intelligence gathering and
helping to determine an entity's external threat landscape on the internet. The tool
gathers emails, names, subdomains, IPs, and URLs using multiple public data sources.
'';
2018-02-09 09:00:15 +00:00
homepage = "https://github.com/laramies/theHarvester";
maintainers = with maintainers; [ c0bw3b treemo ];
2021-01-18 06:49:46 +00:00
license = licenses.gpl2Only;
2018-02-09 09:00:15 +00:00
};
}