2021-01-18 07:49:46 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2018-02-09 10:00:15 +01:00
|
|
|
|
2019-11-04 19:41:24 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-07-08 23:43:10 +02:00
|
|
|
pname = "theharvester";
|
2023-09-25 09:19:20 +02:00
|
|
|
version = "4.4.4";
|
2023-08-20 13:23:45 +02:00
|
|
|
format = "setuptools";
|
2018-02-09 10:00:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "laramies";
|
2019-05-19 18:50:11 +02:00
|
|
|
repo = pname;
|
2023-05-21 09:48:19 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2023-09-25 09:19:20 +02:00
|
|
|
hash = "sha256-L0WbPZE2alregOvWc+0nuMvsD17ayCw3JtahGhf4B1o=";
|
2018-02-09 10:00:15 +01:00
|
|
|
};
|
|
|
|
|
2021-01-18 07:49:46 +01:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiodns
|
2021-07-08 23:43:10 +02:00
|
|
|
aiofiles
|
2021-01-18 07:49:46 +01:00
|
|
|
aiohttp
|
|
|
|
aiomultiprocess
|
|
|
|
aiosqlite
|
|
|
|
beautifulsoup4
|
|
|
|
censys
|
|
|
|
certifi
|
2021-06-22 23:38:50 +02:00
|
|
|
dnspython
|
2021-07-08 23:43:10 +02:00
|
|
|
fastapi
|
2021-01-18 07:49:46 +01:00
|
|
|
lxml
|
|
|
|
netaddr
|
2021-11-10 22:27:39 +01:00
|
|
|
orjson
|
2021-01-18 07:49:46 +01:00
|
|
|
plotly
|
|
|
|
pyppeteer
|
2023-05-21 09:48:19 +02:00
|
|
|
python-dateutil
|
2021-01-18 07:49:46 +01:00
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
shodan
|
2021-07-08 23:43:10 +02:00
|
|
|
slowapi
|
|
|
|
starlette
|
|
|
|
uvicorn
|
2021-01-18 07:49:46 +01:00
|
|
|
uvloop
|
2019-11-04 19:41:24 +01:00
|
|
|
];
|
2018-02-09 10:00:15 +01:00
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-07-08 23:43:10 +02:00
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2018-02-09 10:00:15 +01:00
|
|
|
|
2019-11-04 19:41:24 +01:00
|
|
|
# We don't run other tests (discovery modules) because they require network access
|
2021-07-08 23:43:10 +02:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
pytest tests/test_myparser.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
2018-02-09 10:00:15 +01:00
|
|
|
|
2019-11-04 19:41:24 +01:00
|
|
|
meta = with lib; {
|
2018-02-09 10:00:15 +01:00
|
|
|
description = "Gather E-mails, subdomains and names from different public sources";
|
2019-11-04 19:41:24 +01:00
|
|
|
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 10:00:15 +01:00
|
|
|
homepage = "https://github.com/laramies/theHarvester";
|
2023-05-21 09:48:19 +02:00
|
|
|
changelog = "https://github.com/laramies/theHarvester/releases/tag/${version}";
|
2023-08-20 13:23:45 +02:00
|
|
|
maintainers = with maintainers; [ c0bw3b fab treemo ];
|
2021-01-18 07:49:46 +01:00
|
|
|
license = licenses.gpl2Only;
|
2018-02-09 10:00:15 +01:00
|
|
|
};
|
|
|
|
}
|