2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-07-14 22:03:04 +00:00
|
|
|
pname = "theharvester";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.5.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "laramies";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "theharvester";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-tnCiI4bte2RSWSkEL2rwFz6WFjfRMMFiEBOvv3QMyos=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiodns
|
2021-07-14 22:03:04 +00:00
|
|
|
aiofiles
|
2021-02-05 17:12:51 +00:00
|
|
|
aiohttp
|
|
|
|
aiomultiprocess
|
|
|
|
aiosqlite
|
|
|
|
beautifulsoup4
|
|
|
|
censys
|
|
|
|
certifi
|
2021-06-28 23:13:55 +00:00
|
|
|
dnspython
|
2021-07-14 22:03:04 +00:00
|
|
|
fastapi
|
2021-02-05 17:12:51 +00:00
|
|
|
lxml
|
|
|
|
netaddr
|
2024-01-02 11:29:13 +00:00
|
|
|
ujson
|
2021-02-05 17:12:51 +00:00
|
|
|
plotly
|
|
|
|
pyppeteer
|
2023-05-24 13:37:59 +00:00
|
|
|
python-dateutil
|
2021-02-05 17:12:51 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
shodan
|
2021-07-14 22:03:04 +00:00
|
|
|
slowapi
|
|
|
|
starlette
|
|
|
|
uvicorn
|
2021-02-05 17:12:51 +00:00
|
|
|
uvloop
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-07-14 22:03:04 +00:00
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# We don't run other tests (discovery modules) because they require network access
|
2021-07-14 22:03:04 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
pytest tests/test_myparser.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/laramies/theHarvester";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/laramies/theHarvester/releases/tag/${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ c0bw3b fab treemo ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|