From 7d4b82b373b3f407af4671598a0bde49cc9967eb Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:18:40 +0200 Subject: [PATCH] add ghunt Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- default.nix | 1 + pkgs/ghunt/default.nix | 78 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 pkgs/ghunt/default.nix diff --git a/default.nix b/default.nix index 370bbf8..8e9a673 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,7 @@ {pkgs ? import {}}: { toutatis = pkgs.python3Packages.callPackage ./pkgs/toutatis {}; ignorant = pkgs.python3Packages.callPackage ./pkgs/ignorant {}; + ghunt = pkgs.python3Packages.callPackage ./pkgs/ghunt {}; user-scanner = pkgs.python3Packages.callPackage ./pkgs/user-scanner {}; github-recon = pkgs.callPackage ./pkgs/github-recon {}; gravatar-recon = pkgs.callPackage ./pkgs/gravatar-recon {}; diff --git a/pkgs/ghunt/default.nix b/pkgs/ghunt/default.nix new file mode 100644 index 0000000..8ea5bc3 --- /dev/null +++ b/pkgs/ghunt/default.nix @@ -0,0 +1,78 @@ +{ + lib, + fetchFromGitHub, + buildPythonApplication, + poetry-core, + pythonRelaxDepsHook, + alive-progress, + autoslot, + beautifulsoup4, + beautifultable, + dnspython, + geopy, + httpx, + humanize, + imagehash, + inflection, + jsonpickle, + pillow, + protobuf, + python-dateutil, + rich, + rich-argparse, + packaging, +}: +buildPythonApplication (finalAttrs: { + pname = "ghunt"; + version = "2.3.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "mxrch"; + repo = "ghunt"; + rev = "5ee893929c51c7a8a665b199bbae04ce85a662b4"; + hash = "sha256-Zd0kpyr+Hkbh5MH3q3lrkH3liXw95sKRX+SZhsUVUhI="; + }; + + pythonRelaxDeps = true; + + nativeBuildInputs = [ + poetry-core + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = [ + alive-progress + autoslot + beautifulsoup4 + beautifultable + dnspython + geopy + httpx + humanize + imagehash + inflection + jsonpickle + pillow + protobuf + python-dateutil + rich + rich-argparse + packaging + ] ++ httpx.optional-dependencies.http2; + + doCheck = false; + + pythonImportsCheck = [ + "ghunt" + ]; + + meta = { + description = "Offensive Google framework"; + mainProgram = "ghunt"; + homepage = "https://github.com/mxrch/ghunt"; + changelog = "https://github.com/mxrch/GHunt/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.agpl3Only; + maintainers = []; + }; +})