Bait A Phish
Bait A Phish
Security Pulse
tutorial · bandit

Bandit Level 25

Brute-force a 4-digit PIN over a single connection (no reconnect loop).
banditbruteforcenc
Narration (cached)
Marks this level complete in your browser.

Goal

A daemon on port 30002 will give you the password for bandit25 if you provide:

There’s no shortcut: you brute-force 0000 to 9999.

Hints

Solution (click to reveal)
  1. SSH in:
ssh bandit25@bandit.labs.overthewire.org -p 2220
  1. Run a brute force loop (replace <PASS> with bandit24 password):
PASS="<PASS>"
for pin in $(seq -w 0000 9999); do
  echo "$PASS $pin"
done | nc localhost 30002

Look for the server response that includes the next password.

Notes

Bandit Level 24Bandit Level 26