# modules/features/pentest/c2.nix — command-and-control frameworks.# Off by default. `daemon.pentest.c2.enable = true;`## Metasploit (msfconsole, msfvenom) is NOT here: it is in shells.nix, because# it is the thing you reach for on nearly every box, C2 or not. This category# is the frameworks you stand up deliberately — they want a listener on a# routable address, a profile, and a team server.## Nothing here starts a service. A C2 listener is something you bring up by# hand, for one engagement, on a port you chose.{ lib, ... }:
(import./_sets.nix { inherit lib; }) {
name="c2";
description="C2 frameworks: havoc, villain (metasploit is in shells)";
default=false;
packages= pkgs: with pkgs; [
havoc # team server + client; Demon agent villain # lightweight: upgrades netcat shells, shares them between sessions ];
expectedBins= [ "havoc""villain" ];
}