NixDaemon

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

reversing.nix (1137B)


      1 # modules/features/pentest/reversing.nix — binary analysis and exploit dev.
      2 # Off by default. `daemon.pentest.reversing.enable = true;`
      3 #
      4 # The standalone `checksec` package is deliberately NOT here: pwntools already
      5 # installs bin/checksec, and two packages owning the same name is a profile
      6 # collision that stops the system building (same class of bug as the impacket
      7 # aliases — see _aliases.nix). pwntools' version is the one you get.
      8 #
      9 # ghidra and cutter are windowed; they live in gui.nix.
     10 { lib, ... }:
     11 (import ./_sets.nix { inherit lib; }) {
     12   name = "reversing";
     13   description = "disassembly, decompilation and exploit development";
     14   default = false;
     15 
     16   packages = pkgs: with pkgs; [
     17     radare2 # `r2`
     18     rizin
     19     gef # gdb extension
     20     gdb
     21     pwntools # pwn, asm, disasm, cyclic, checksec, …
     22     one_gadget
     23     pwninit
     24     flare-floss # `floss`
     25     patchelf
     26     binutils
     27     ropgadget # `ROPgadget`
     28     strace ltrace
     29   ];
     30 
     31   expectedBins = [
     32     "r2" "rizin" "gef" "gdb" "asm" "disasm" "cyclic" "checksec"
     33     "one_gadget" "pwninit" "floss" "patchelf" "objdump" "readelf"
     34     "ROPgadget" "strace" "ltrace"
     35   ];
     36 }