A daemon is listening on port 30002 and will give you the password for bandit25 if given the password for bandit24 and a secret numeric 4-digit pincode. There is no way to retrieve the pincode except by going through all of the 10000 combinations, called brute-forcing.
bandit24@bandit:~$ mktemp -d /tmp/tmp.NLpcFsoiTB
Write a script to return each combination of the pin.
#!/bin/bash for i in {0000..9999} do echo "30002 UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i" done
Then redirect the output of the script to brute_force.txt
Cloning into 'repo'... Could not create directory '/home/bandit27/.ssh'. The authenticity of host 'localhost (127.0.0.1)' can't be established. ECDSA key fingerprint is SHA256:98UL0ZWr85496EtCRkKlo20X3OPnyPSB5tB5RPbhczc. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/bandit27/.ssh/known_hosts). This is a OverTheWire game server. More information on http://www.overthewire.org/wargames
bandit27-git@localhost's password: remote: Counting objects: 3, done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0) Receiving objects: 100% (3/3), done. bandit27@bandit:/tmp/tmp.xlD72j7q6i$ ls repo bandit27@bandit:/tmp/tmp.xlD72j7q6i$ cd repo/ bandit27@bandit:/tmp/tmp.xlD72j7q6i/repo$ ls README bandit27@bandit:/tmp/tmp.xlD72j7q6i/repo$ cat README The password to the next level is: 0ef186ac70e04ea33b4c1853d2526fa2
LazyCoderOZ
I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)