Skip to content

Latest commit

 

History

History
86 lines (48 loc) · 1.57 KB

Bandit.md

File metadata and controls

86 lines (48 loc) · 1.57 KB

Bandit

Level 0

ssh [email protected]

password bandit0

Level 1 -> Level 2

cat readme

O/P : boJ9jbbUNNfktd78OOpsqOltutMc3MY1

ssh [email protected]

password boJ9jbbUNNfktd78OOpsqOltutMc3MY1

cat ./-

O/P : CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

ssh [email protected]

password : CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

Level 2 -> Level 3

cat spaces\ in\ this\ filename

O/P : UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

ssh [email protected]

password : UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

Level 3 -> Level 4

cd inhere

ls -a # -a is used to show all files including . and ..

cat .hidden

O/P : pIwrPrtPN36QITSp3EQaw936yaFoFgAB

ssh [email protected]

password : pIwrPrtPN36QITSp3EQaw936yaFoFgAB

Level 4 -> Level 5

cd inhere

ls

for file in *; do echo $file; cat ./$file; done

cat ./-file07

O/P : koReBOKuIDDepwhWk7jZC0RTdopnAYKh

Alternative method :- (Trial and error) Find the number of files by a ls -a command and then keep on trying each file with file -f command.

Ex. : file -f -file00 and so on

ssh [email protected]

password : koReBOKuIDDepwhWk7jZC0RTdopnAYKh


EDIT:

I initially didn't want to edit this file. It's the first file I checked into GitHub, but I could not bear how the commands were placed as plaintext. I formatted the commands to make sure it looks a liiittle okay. ( And reduced the header for the game name, haha)