2021-01-25 11:26:54 +03:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2018-08-02 10:49:54 +03:00
|
|
|
|
2019-05-02 00:31:04 +03:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-08-02 10:49:54 +03:00
|
|
|
pname = "photon";
|
2019-05-02 00:31:04 +03:00
|
|
|
version = "1.3.0";
|
2022-09-19 05:03:12 +03:00
|
|
|
format = "other";
|
2018-08-02 10:49:54 +03:00
|
|
|
|
2019-05-02 00:31:04 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "s0md3v";
|
|
|
|
repo = "Photon";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "02z1xj72bq35dilr4b6njry4kixz6j2a3ag02nla98q0fvgmgnvy";
|
2018-08-02 10:49:54 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
2019-05-02 00:31:04 +03:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ requests urllib3 tld ];
|
2018-08-02 10:49:54 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/{bin,share/photon}
|
|
|
|
cp -R photon.py core plugins $out/share/photon
|
2020-11-18 11:42:33 +03:00
|
|
|
|
2019-05-02 00:31:04 +03:00
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/photon \
|
2018-08-02 10:49:54 +03:00
|
|
|
--set PYTHONPATH "$PYTHONPATH:$out/share/photon" \
|
|
|
|
--add-flags "-O $out/share/photon/photon.py"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2018-08-02 10:49:54 +03:00
|
|
|
description = "a lightning fast web crawler which extracts URLs, files, intel & endpoints from a target";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/s0md3v/Photon";
|
2018-08-02 10:49:54 +03:00
|
|
|
license = licenses.gpl3;
|
2020-11-17 19:50:53 +03:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-02 10:49:54 +03:00
|
|
|
};
|
|
|
|
}
|