2021-01-18 06:49:46 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2018-02-09 09:00:15 +00:00
|
|
|
|
2019-11-04 18:41:24 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-02-09 09:00:15 +00:00
|
|
|
pname = "theHarvester";
|
2021-03-10 01:01:55 +00:00
|
|
|
version = "3.2.3";
|
2018-02-09 09:00:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "laramies";
|
2019-05-19 17:50:11 +01:00
|
|
|
repo = pname;
|
2021-03-10 01:01:55 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "02jhk34znpvq522pqr3x4c0rljw37x62znwycijf1zx81dpbn4rm";
|
2018-02-09 09:00:15 +00:00
|
|
|
};
|
|
|
|
|
2021-01-18 06:49:46 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
aiomultiprocess
|
|
|
|
aiosqlite
|
|
|
|
beautifulsoup4
|
|
|
|
censys
|
|
|
|
certifi
|
|
|
|
dns
|
|
|
|
gevent
|
|
|
|
grequests
|
|
|
|
lxml
|
|
|
|
netaddr
|
|
|
|
plotly
|
|
|
|
pyppeteer
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
shodan
|
|
|
|
texttable
|
|
|
|
uvloop
|
2019-11-04 18:41:24 +00:00
|
|
|
];
|
2018-02-09 09:00:15 +00:00
|
|
|
|
2019-11-04 18:41:24 +00:00
|
|
|
checkInputs = [ python3.pkgs.pytest ];
|
2018-02-09 09:00:15 +00:00
|
|
|
|
2019-11-04 18:41:24 +00:00
|
|
|
checkPhase = "runHook preCheck ; pytest tests/test_myparser.py ; runHook postCheck";
|
|
|
|
# We don't run other tests (discovery modules) because they require network access
|
2018-02-09 09:00:15 +00:00
|
|
|
|
2019-11-04 18:41:24 +00:00
|
|
|
meta = with lib; {
|
2018-02-09 09:00:15 +00:00
|
|
|
description = "Gather E-mails, subdomains and names from different public sources";
|
2019-11-04 18:41:24 +00: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 09:00:15 +00:00
|
|
|
homepage = "https://github.com/laramies/theHarvester";
|
2019-11-04 18:41:24 +00:00
|
|
|
maintainers = with maintainers; [ c0bw3b treemo ];
|
2021-01-18 06:49:46 +00:00
|
|
|
license = licenses.gpl2Only;
|
2018-02-09 09:00:15 +00:00
|
|
|
};
|
|
|
|
}
|