2021-02-05 17:12:51 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "photon";
|
|
|
|
version = "1.3.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "other";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "s0md3v";
|
|
|
|
repo = "Photon";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "02z1xj72bq35dilr4b6njry4kixz6j2a3ag02nla98q0fvgmgnvy";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ requests urllib3 tld ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/photon}
|
|
|
|
cp -R photon.py core plugins $out/share/photon
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/photon \
|
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/photon" \
|
|
|
|
--add-flags "-O $out/share/photon/photon.py"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightning fast web crawler which extracts URLs, files, intel & endpoints from a target";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/s0md3v/Photon";
|
|
|
|
license = licenses.gpl3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "photon";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|