From 4e2d739ac3f05466fa074589d71f5a9ea80da6b6 Mon Sep 17 00:00:00 2001 From: countingbeeps Date: Fri, 22 Nov 2024 21:28:27 -0600 Subject: [PATCH 1/2] maintainers: add gamedungeon --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 24997656539c1..6c2991697ea27 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7972,6 +7972,11 @@ githubId = 293586; name = "Adam Gamble"; }; + gamedungeon = { + github = "CountingBeeps"; + githubId = 60719255; + name = "gamedungeon"; + }; gangaram = { email = "Ganga.Ram@tii.ae"; github = "gangaram-tii"; From abe6f01eb7b29ded17bfb4ef37dc3daa2bb9af14 Mon Sep 17 00:00:00 2001 From: countingbeeps Date: Sun, 15 Dec 2024 12:20:27 -0600 Subject: [PATCH 2/2] recon-ng: init at 5.1.2 --- pkgs/by-name/re/recon-ng/package.nix | 71 ++++++++++++++++++++++++++++ pkgs/by-name/re/recon-ng/setup.py | 25 ++++++++++ 2 files changed, 96 insertions(+) create mode 100644 pkgs/by-name/re/recon-ng/package.nix create mode 100644 pkgs/by-name/re/recon-ng/setup.py diff --git a/pkgs/by-name/re/recon-ng/package.nix b/pkgs/by-name/re/recon-ng/package.nix new file mode 100644 index 0000000000000..4c767e2f250b1 --- /dev/null +++ b/pkgs/by-name/re/recon-ng/package.nix @@ -0,0 +1,71 @@ +{ + lib, + fetchFromGitHub, + python3, + substituteAll, + fetchpatch, +}: +python3.pkgs.buildPythonApplication rec { + pname = "recon-ng"; + version = "5.1.2"; + + src = fetchFromGitHub { + owner = "lanmaster53"; + repo = "recon-ng"; + tag = "v${version}"; + hash = "sha256-W7pL4Rl86i881V53SAwECAMp2Qj/azPM3mdvxvt+gjc="; + }; + + build-system = [ + python3.pkgs.setuptools + ]; + + dependencies = with python3.pkgs; [ + pyyaml + dnspython + lxml + mechanize + requests + flask + flask-restful + flasgger + dicttoxml + xlsxwriter + unicodecsv + rq + ]; + + patches = [ + # Support python 3.12 + # https://github.com/lanmaster53/recon-ng/pull/218 + # This is merged and can be removed when updating + (fetchpatch { + name = "fix_python12.patch"; + url = "https://github.com/lanmaster53/recon-ng/commit/e31c30e5c314cbc5e57a13f9d3ddf29afafc4cb3.patch"; + hash = "sha256-e8BTRkwb42mTTwivZ0sTxVw1hnYCUVInmy91jyVc/tw="; + }) + ]; + + postPatch = + let + setup = substituteAll { + src = ./setup.py; + inherit pname version; + }; + in + '' + ln -s ${setup} setup.py + ''; + + postInstall = '' + cp VERSION $out/${python3.sitePackages}/ + cp -R recon/core/web/{definitions.yaml,static,templates} $out/${python3.sitePackages}/recon/core/web/ + ''; + + meta = { + description = "Full-featured framework providing a powerful environment to conduct web-based reconnaissance"; + license = lib.licenses.gpl3Only; + homepage = "https://github.com/lanmaster53/recon-ng/"; + maintainers = with lib.maintainers; [ gamedungeon ]; + }; +} diff --git a/pkgs/by-name/re/recon-ng/setup.py b/pkgs/by-name/re/recon-ng/setup.py new file mode 100644 index 0000000000000..82361df69491d --- /dev/null +++ b/pkgs/by-name/re/recon-ng/setup.py @@ -0,0 +1,25 @@ +from setuptools import setup + +setup( + name='@pname@', + version='@version@', + install_requires=[ + "pyyaml", + "dnspython", + "lxml", + "mechanize", + "requests", + "flask" + "flask-restful", + "flasgger", + "dicttoxml", + "xlsxwriter", + "unicodecsv", + "rq" + ], + scripts=[ + 'recon-ng', + "recon-cli", + "recon-web" + ], +)