# modules/features/pentest/gui.nix — the windowed tools, with desktop entries# so they appear in the launcher the way Kali's menu does.## Kept separate from the headless categories: enabling `web` should not drag in# a JDK, and a remote session should be able to skip this entirely.## programs.wireshark is set here at mkDefault (1000) and in wireless.nix at a# weaker 1500, so this one wins when both categories are on and either alone# still gets the dumpcap capability wrapper. They may NOT both be mkDefault:# types.package merges with mergeEqualOption, and `==` on two derivations is# false even for one store path, so equal priorities are a hard conflict.# See the longer note in wireless.nix.{ lib, ... }:
(import./_sets.nix { inherit lib; }) {
name="gui";
description="burp, zap, ghidra, wireshark, autopsy and other windowed tools";
packages= pkgs: with pkgs; [
burpsuite # unfree; allowed by nixpkgs.nix and by the host zap
ghidra
cutter
autopsy
sqlitebrowser
wireshark
pwsafe # Administrator: Password Safe .psafe3 databases ];
expectedBins= [
"burpsuite""zap""ghidra""cutter""autopsy""sqlitebrowser""wireshark""pwsafe" ];
# Every tool above must actually ship a .desktop file, or it will not appear# in the launcher and the point of this category is lost.checkScript= { pkgs, lib }: '' for p in ${pkgs.burpsuite}${pkgs.zap}${pkgs.ghidra}${pkgs.cutter}${pkgs.wireshark}${pkgs.sqlitebrowser}${pkgs.pwsafe}; do if ! ls "$p"/share/applications/*.desktop >/dev/null 2>&1; then echo "pentest-gui: $p ships no share/applications/*.desktop entry" >&2 exit 1 fi done '';
extraConfig= { pkgs, lib, ... }: {
# The package alone cannot capture: this creates the `wireshark` group and# the setcap dumpcap wrapper. Without it you need full root to sniff. programs.wireshark= {
enable= lib.mkDefault true;
package= lib.mkDefault pkgs.wireshark;
};
};
}