[W3af-develop] change the return address to point to shellcode
Status: Beta
Brought to you by:
andresriancho
From: hadi <alm...@ho...> - 2014-10-07 19:34:06
|
Im using linux and I have c program, I would like to change the return address to point to my shellcode, im unable to do it. Can someone point to me how to do it with linux gdb debugger. Here is my shellcode "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x89\xc1\x89\xc 2\xb0\x0b\xcd\x80\x31\xc0\x40\xcd\x80" Here is my c program int global_value = 0; void bang(int val) { if (global_value == cookie) { printf("Bang!: You set global_value to 0x%x\n", global_value); validate(2); } else printf("Misfire: global_value = 0x%x\n", global_value); exit(0); } |