2021-03-28 06:51:59 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.sconfig.security-tools;
|
|
|
|
in
|
2020-09-18 13:54:09 +00:00
|
|
|
{
|
2021-03-28 06:51:59 +00:00
|
|
|
options.sconfig.security-tools = lib.mkEnableOption "Enable security tools";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg {
|
2021-03-28 06:52:09 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
exiftool
|
|
|
|
burpsuite
|
|
|
|
nmap
|
|
|
|
masscan
|
|
|
|
binutils
|
|
|
|
remmina
|
|
|
|
openvpn
|
|
|
|
socat
|
|
|
|
ghidra-bin
|
|
|
|
wfuzz
|
|
|
|
gobuster
|
|
|
|
dirb
|
|
|
|
pwndbg
|
|
|
|
thc-hydra
|
|
|
|
metasploit
|
2021-04-15 13:46:10 +00:00
|
|
|
bridge-utils
|
2021-04-15 18:05:59 +00:00
|
|
|
macchanger
|
2021-04-15 20:55:51 +00:00
|
|
|
iptables-nftables-compat
|
2021-04-16 04:07:53 +00:00
|
|
|
dhcpdump
|
2020-10-08 22:42:56 +00:00
|
|
|
|
2021-03-28 06:52:09 +00:00
|
|
|
(callPackage ../pkgs/binary-ninja-personal { })
|
2021-03-28 06:48:01 +00:00
|
|
|
|
2021-03-28 06:52:09 +00:00
|
|
|
(writeShellScriptBin "searchsploit" ''
|
|
|
|
set -e
|
|
|
|
(
|
|
|
|
cd ~/.cache
|
|
|
|
[ -e exploitdb ] || git clone https://github.com/offensive-security/exploitdb.git
|
|
|
|
cd exploitdb
|
|
|
|
if find .git -maxdepth 0 -cmin +60 | grep -q git
|
|
|
|
then
|
|
|
|
git pull
|
|
|
|
fi
|
|
|
|
)
|
|
|
|
exec ~/.cache/exploitdb/searchsploit "$@"
|
|
|
|
'')
|
|
|
|
];
|
2020-09-18 13:54:09 +00:00
|
|
|
|
2021-03-28 06:52:09 +00:00
|
|
|
programs = {
|
|
|
|
wireshark.enable = true;
|
|
|
|
wireshark.package = pkgs.wireshark;
|
|
|
|
};
|
2021-03-28 06:48:01 +00:00
|
|
|
|
2021-03-28 06:52:09 +00:00
|
|
|
users.users.sandy = {
|
|
|
|
isSystemUser = true;
|
2021-04-16 22:35:55 +00:00
|
|
|
useDefaultShell = true;
|
|
|
|
home = "/home/sandy";
|
|
|
|
createHome = true;
|
2021-03-28 06:52:09 +00:00
|
|
|
};
|
2021-03-28 06:51:59 +00:00
|
|
|
};
|
2020-09-18 13:54:09 +00:00
|
|
|
}
|