NixDaemon

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

crack.nix (986B)


      1 # modules/features/pentest/crack.nix — offline cracking and guessing.
      2 #
      3 # `hashcat -I` needs an OpenCL runtime to use the GPU; on this machine that
      4 # comes from the NVIDIA driver already configured in
      5 # modules/hosts/laptop/nvidia.nix, so no extra wiring here.
      6 { lib, ... }:
      7 (import ./_sets.nix { inherit lib; }) {
      8   name = "crack";
      9   description = "hash cracking, password spraying and wordlist generation";
     10 
     11   packages = pkgs: with pkgs; [
     12     hashcat
     13     hashcat-utils
     14     john # also `zip2john`, `ssh2john`, …
     15     # thc-hydra, NOT `hydra`: pkgs.hydra is Nix's own continuous build system.
     16     # The category check caught this — it would have installed a CI server.
     17     thc-hydra # `hydra`
     18     medusa
     19     crowbar
     20     crunch
     21     cewl
     22     hashid
     23     python3Packages.name-that-hash # `nth`
     24     haiti # hash identifier that also prints the hashcat/john mode
     25   ];
     26 
     27   expectedBins = [
     28     "hashcat" "john" "hydra" "medusa" "crowbar"
     29     "crunch" "cewl" "hashid" "nth" "haiti"
     30   ];
     31 }