From b14212dfda43f87b9ca03ea2a0d76beda1bc8a55 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 24 Jul 2022 12:24:35 -0400 Subject: [PATCH] rm security-toolbox --- modules/security-tools.nix | 52 ++++++++++++++++- pkgs/default.nix | 2 - pkgs/security-toolbox/default.nix | 92 ------------------------------- 3 files changed, 50 insertions(+), 96 deletions(-) delete mode 100644 pkgs/security-toolbox/default.nix diff --git a/modules/security-tools.nix b/modules/security-tools.nix index cca5306..6e1aa26 100644 --- a/modules/security-tools.nix +++ b/modules/security-tools.nix @@ -1,14 +1,62 @@ -{ config, pkgs, lib, ... }: +{ config, lib, pkgs, ... }: let cfg = config.sconfig.security-tools; + proxybrowser = pkgs.writeShellScriptBin "proxybrowser" '' + exec ${pkgs.chromium}/bin/chromium \ + --disable-background-networking \ + --disable-default-apps \ + --disable-plugins-discovery \ + --disk-cache-size=0 \ + --ignore-certificate-errors \ + --no-default-browser-check \ + --no-experiments \ + --no-first-run \ + --no-pings \ + --no-service-autorun \ + --user-data-dir="$HOME/.proxybrowser" \ + --proxy-server="localhost:8080" \ + --proxy-bypass-list='<-loopback>' + ''; + in { options.sconfig.security-tools = lib.mkEnableOption "Enable security tools"; config = lib.mkIf cfg { - environment.systemPackages = [ pkgs.security-toolbox ]; + environment.systemPackages = with pkgs; [ + proxybrowser + + binutils + bridge-utils + burpsuite + dhcpdump + dirb + exiftool + feroxbuster + ffuf + gef + ghidra-bin + gobuster + iptables-nftables-compat + macchanger + masscan + metasploit + msfpc + net-snmp + nmap + openvpn + postman + pwndbg + remmina + security-wordlists + socat + thc-hydra + webshells + weevely + wfuzz + ]; programs = { wireshark.enable = true; diff --git a/pkgs/default.nix b/pkgs/default.nix index 46da614..91289cf 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,14 +6,12 @@ let in if p.meta.available then p else pkgs.emptyDirectory; in -rec { bck-nerdfont = pkg ./bck-nerdfont.nix { }; binaryninja = pkg ./binary-ninja-personal { }; commander-x16 = pkg ./commander-x16 { }; mp4grep = pkg ./mp4grep.nix { }; msfpc = pkg ./msfpc { }; - security-toolbox = pkg ./security-toolbox { inherit msfpc webshells weevely security-wordlists; }; security-wordlists = pkg ./wordlists.nix { }; SpaceCadetPinball = pkg ./SpaceCadetPinball { }; stretchy-spaces = pkg ./stretchy-spaces { }; diff --git a/pkgs/security-toolbox/default.nix b/pkgs/security-toolbox/default.nix deleted file mode 100644 index 1b559bb..0000000 --- a/pkgs/security-toolbox/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ symlinkJoin -, writeShellScriptBin -, chromium -, binutils -, bridge-utils -, dhcpdump -, dirb -, exiftool -, feroxbuster -, ffuf -, gef -, ghidra-bin -, gobuster -, iptables-nftables-compat -, macchanger -, masscan -, metasploit -, msfpc -, net-snmp -, nmap -, openvpn -, pwndbg -, remmina -, security-wordlists -, socat -, thc-hydra -, webshells -, weevely -, wfuzz -, burpsuite -, postman -}: - -let - - proxybrowser = writeShellScriptBin "proxybrowser" '' - exec ${chromium}/bin/chromium \ - --disable-background-networking \ - --disable-default-apps \ - --disable-plugins-discovery \ - --disk-cache-size=0 \ - --ignore-certificate-errors \ - --no-default-browser-check \ - --no-experiments \ - --no-first-run \ - --no-pings \ - --no-service-autorun \ - --user-data-dir="$HOME/.proxybrowser" \ - --proxy-server="localhost:8080" \ - --proxy-bypass-list='<-loopback>' - ''; - -in -symlinkJoin { - name = "security-toolbox"; - paths = - [ - proxybrowser - - binutils - bridge-utils - dhcpdump - dirb - exiftool - feroxbuster - ffuf - gef - ghidra-bin - gobuster - iptables-nftables-compat - macchanger - masscan - metasploit - msfpc - net-snmp - nmap - openvpn - pwndbg - remmina - security-wordlists - socat - thc-hydra - webshells - weevely - wfuzz - - (burpsuite.overrideAttrs (_: { meta = { }; })) - (postman.overrideAttrs (_: { meta = { }; })) - ]; - - meta.platforms = [ "x86_64-linux" ]; -}