From bbfb5fd8c37d8d77682555fd8249e4c32e8a567a Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sun, 23 Mar 2025 19:48:24 +0530 Subject: [PATCH] feat: move ctf env into subdir --- devShells/CTF/flake.lock | 27 +++++++++++++++++++++++++++ devShells/CTF/flake.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 devShells/CTF/flake.lock create mode 100644 devShells/CTF/flake.nix diff --git a/devShells/CTF/flake.lock b/devShells/CTF/flake.lock new file mode 100644 index 0000000..d29d65a --- /dev/null +++ b/devShells/CTF/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1742422364, + "narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/devShells/CTF/flake.nix b/devShells/CTF/flake.nix new file mode 100644 index 0000000..b4b4698 --- /dev/null +++ b/devShells/CTF/flake.nix @@ -0,0 +1,40 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = + { nixpkgs, ... }: + let + forAllSystems = + f: + nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system}); + in + { + + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { + packages = with pkgs; [ + bettercap + ffuf + gau + ghidra + gitleaks + hashcat + hcxtools + nikto + nmap + patchelf + # pwntools + feroxbuster + rustscan + sqlmap + s3scanner + ]; + }; + }); + }; + +}