repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
crack.nixNix37 lines1.3 KiBraw download
# modules/features/pentest/crack.nix — offline cracking and guessing.
#
# `hashcat -I` needs an OpenCL runtime to use the GPU; on this machine that
# comes from the NVIDIA driver already configured in
# modules/hosts/laptop/nvidia.nix, so no extra wiring here.
{ lib, ... }:
(import ./_sets.nix { inherit lib; }) {
  name = "crack";
  description = "hash cracking, password spraying and wordlist generation";

  packages = pkgs: (with pkgs; [
    hashcat
    hashcat-utils
    john # also `zip2john`, `ssh2john`, …
    # thc-hydra, NOT `hydra`: pkgs.hydra is Nix's own continuous build system.
    # The category check caught this — it would have installed a CI server.
    thc-hydra # `hydra`
    medusa
    crowbar
    crunch
    cewl
    hashid
    python3Packages.name-that-hash # `nth`
    haiti # hash identifier that also prints the hashcat/john mode
    keepassxc # keepassxc-cli: export Redelegate's decrypted KDBX
    kpcli # Jeeves: KeePass 1.x .kdb as well as 2.x .kdbx
  ]) ++ [ (import ./_pkgs/default.nix { inherit lib pkgs; }).firepwd ];

  expectedBins = [
    "hashcat" "john" "hydra" "medusa" "crowbar"
    "crunch" "cewl" "hashid" "nth" "haiti"
    "keepassxc-cli" "kpcli" "keepass2john" "ssh2john.py" "ansible2john.py" "office2john.py"
    "firepwd" "firepwd.py"
  ];

  smokeBins = [ "firepwd" "keepassxc-cli" "kpcli" ];
}