NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor
git clone https://git.daemon-sec.xyz/NixDaemon.git
Log | Files | Refs | README

_impacket.nix (986B)


      1 # modules/features/pentest/_impacket.nix — the impacket pieces, defined once.
      2 #
      3 # Both python.nix (which owns the category) and ad.nix (which cannot do Active
      4 # Directory without secretsdump/ntlmrelayx/GetUserSPNs) need these. Defining
      5 # them here means both get the SAME derivation and therefore the same store
      6 # path, so installing both categories is not a profile collision.
      7 { lib, pkgs }:
      8 rec {
      9   impacket = pkgs.python3Packages.impacket;
     10 
     11   aliases = (import ./_aliases.nix { inherit lib pkgs; }) {
     12     package = impacket;
     13     prefix = "impacket";
     14     # Read at build time from what these packages really install, so the
     15     # reserved set cannot rot. See _aliases.nix for why this matters.
     16     reservedFrom = [ pkgs.coreutils pkgs.iputils pkgs.samba pkgs.util-linux ];
     17     # Nothing owns `mimikatz` on PATH, but the Windows mimikatz.exe in
     18     # $PAYLOADS does, as far as a tired operator is concerned.
     19     extraReserved = [ "mimikatz" ];
     20   };
     21 
     22   both = [ impacket aliases ];
     23 }