From 257139b6da746e5f74031733ccea12371a770bd4 Mon Sep 17 00:00:00 2001 From: shibazaki Date: Wed, 22 Jan 2025 17:41:06 +0100 Subject: [PATCH] present for nine --- nixos/home/modules/cybersec-tools.nix | 147 ++++++++++++++++++++++++++ users/nine/home.nix | 3 + 2 files changed, 150 insertions(+) create mode 100644 nixos/home/modules/cybersec-tools.nix diff --git a/nixos/home/modules/cybersec-tools.nix b/nixos/home/modules/cybersec-tools.nix new file mode 100644 index 0000000..bf0f015 --- /dev/null +++ b/nixos/home/modules/cybersec-tools.nix @@ -0,0 +1,147 @@ +{ + config, + lib, + pkgs, + ... +}: let + # Define a list of all cybersec tools + cybersecTools = with pkgs; [ + # Nmap and related tools + nmap + gobuster + hydra + wireshark + ffuf + metasploit-framework + aircrack-ng + netcat + powershell + theharvester + sqlmap + rkhunter + legion + dirb + steghide + hashcat + responder + cewl + snort + nuclei + wpscan + wifite + sqlsus + netdiscover + chkrootkit + maltego + burpsuite + nikto + john + autopsy + dirbuster + bloodhound + sherlock + wordlists + wfuzz + impacket-scripts + havoc + foremost + ettercap + dirsearch + crunch + bettercap + mimikatz + gophish + tcpdump + recon-ng + hping3 + email2phonenumber + cisco-torch + beef-xss + whatweb + veil + subfinder + macchanger + dnsrecon + dnsenum + armitage + yersinia + parsero + metagoofil + maryam + evil-winrm + dvwa + dmitry + amass + wifiphisher + weevely + sublist3r + sslyze + spiderfoot + scapy + reaver + mdk3 + massdns + masscan + lynis + linkedin2username + ligolo-ng + jsql + ghidra + fierce + fern-wifi-cracker + fcrackzip + crowbar + crackmapexec + commix + arpwatch + yara + trufflehog + terraform + subjack + pspy + powershell-empire + pompem + p0f + nbtscan + medusa + finalrecon + driftnet + ]; + + # Additional dependencies for specific tools + wiresharkExtras = with pkgs; [ + wireshark + wireshark-common + wireshark-dev + wireshark-doc + libwireshark-data + libwireshark-dev + tshark + ]; + + johnExtras = with pkgs; [ + john + john-data + ]; +in { + options.cybersec.enable = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Install cybersec tools for penetration testing and security analysis."; + }; + + config = lib.mkIf config.cybersec.enable { + home.packages = + cybersecTools + ++ wiresharkExtras + ++ johnExtras; + + # Add shell aliases for convenience + home.sessionVariables = { + # Example aliases + "veil" = "${pkgs.veil}/bin/veil"; + "burpsuite" = "${pkgs.burpsuite}/bin/burpsuite"; + "recon-ng" = "${pkgs.recon-ng}/bin/recon-ng"; + }; + }; +} diff --git a/users/nine/home.nix b/users/nine/home.nix index d9054ff..a58bc8f 100644 --- a/users/nine/home.nix +++ b/users/nine/home.nix @@ -19,7 +19,10 @@ ./../../nixos/home/modules/utilities.nix ./../../nixos/home/modules/environment.nix ./../../nixos/home/modules/session-variables.nix + ./../../nixos/home/modules/cybersec-tools.nix ]; + cybersec.enable = true; + home.stateVersion = "24.11"; # Please read the comment before changing. }