Skip to content

Solutions for "bandit games", in this repository there is document with walkthrough of all levels and additionally 1 script file for level 24.

Notifications You must be signed in to change notification settings

miazga-git/OverTheWire-bandit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

OverTheWire - bandit - walkthrough

Readme in progress

In this readme file you will find all commands needed to overcome all bandit challenges

Level 1

ls
cat readme

Level 2

ls
cat ./-

Level 3

ls
cat "spaces in this filename"

Level 4

ls
cd inhere
ls -la
cat .hidden

Level 5

file ./*
cat ./-file07

Level 6

find . -type f -size 1033c -readable ! -executable

Level 7

find -size 33c -group bandit6 -user bandit7 2>/dev/null

Level 8

cat data.txt | grep millionth

Level 9

sort data.txt | uniq -u

Level 10

strings data.txt | grep "="

Level 11

cat data.txt
cat data.txt | base64 --decode

Level 12

cat data.txt | tr '[a-z][A-Z]' '[n-za-m][N-ZA-M]'

Level 12

cat data.txt
mkdir /tmp/miazga
cd /tmp/miazga
xxd -r ~/data.txt > datax2.txt
file datax2.txt
gunzip data2.txt
ls
gunzip datax2.txt
mv datax2.txt datax2.gz
gunzip datax2.gz
ls
file datax2
mv datax2 datax3.bz2
bzip2 -d datax3.bz2
ls
file datax3
mv datax3 datax4.gz
gunzip datax4.gz
ls
file datax4
mv datax4 datax5.tar
tar -xf datax5.tar
ls
file data5.bin
mv data5.bin datax6.tar
tar -xf datax6.tar
ls
file data6.bin
mv data6.bin datax7.bz2
bzip2 -d datax7.bz2
ls
file datax7
mv datax7 datax8.tar
tar -xf datax8.tar
ls
file data8.bin
mv data8.bin datax9.gz
gunzip datax9.gz
ls
file datax9
cat datax9

Level 13

ls
ssh -i sshkey.private bandit14@bandit.labs.overthewire.org -p 2220

Level 14

nc localhost 30000

Level 15

openssl s_client localhost:30000

Level 16

nmap localhost --script ssl-enum-ciphers -p 31000-32000
openssl s_client -ign_eof -connect localhost:31790

Level 17

diff passwords.new passwords.old

Level 18

ssh -T bandit18@bandit.labs.overthewire.org -p 2220 ls
ssh -T bandit18@bandit.labs.overthewire.org -p 2220 cat readme

Level 19

cd /etc/bandit_pass
/home/bandit19/bandit20-do cat bandit20

Level 15

openssl s_client localhost:30000

Level 15

openssl s_client localhost:30000

To be continued

cat readme


About

Solutions for "bandit games", in this repository there is document with walkthrough of all levels and additionally 1 script file for level 24.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages