I finished them in one day till 50 level. One day I will finish all of them.

url: https://overthewire.org/wargames/bandit/ :w

level 0

--------------------------------------------------------
Learn to use ssh to play this game.
helful commands: man ssh, cat

solution:

  • read the description and explore.

level 0 - level 01

--------------------------------------------------------
This level challenges to read file having ”-” in its filename.

solution:

  • specify its location : cat ./- or
  • redirect it to stdin: cat <-

level 01 - level 02

--------------------------------------------------------
This level challenges to read file with spaces in its filename.

solution:

  • use quotes on filename cat "spaces in this filename or
  • use escape codes cat spaces\ in\ this\ filename
  • or if you have any brain just press Tab.

level 02 - level 03

--------------------------------------------------------
This level challenges to read hidden file.

soultion:

  • cd
  • ls -la

level 03 - level 04

--------------------------------------------------------
This level challenge us to check unique filetype among many.

solution:
there are 9 files in “inhere” directory named as -file0n
and only one of them is “human-readable”

Means it must be ASCII text document and others are binary.

To check the file type we use file command.
There are two ways to do it
The commands we may need here are: file, for loop

  • easy way: file ./* [To run the command on all files using *] or
  • hard way: for x in {0..9}; do file ./-file0$x; done [same as above but using for loop]

level 04 - level 05

--------------------------------------------------------
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties:

human-readable
1033 bytes in size
not executable

bandit6
DXjZPULLxYr17uwoI01bNLQbtFemEgo7

bandit7
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

bandit8
cvX2JJa4CFALtqS87jk27qwqGhBM9plV

bandit9
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

bandit10
truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

bandit11
IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

bandit12
5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu

bandit13
8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL

bandit14
4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e

bandit15
BfMYroe26WYalil77FoDi9qh59eK5xNr