Jan 8, 2019 02:09 AM
(This post was last modified: Jan 8, 2019 07:51 AM by emadaldin1.)
Here is the bof program
being learning about bof but got stuck here
tried to insert the address in hex but it kept reading it as asci like EX: AAAAAAAABBBB/*55/*99..
Can someone overwrite the EIP address in here making it point to another location of my choice
thanks
Ironic enough after 5 hours I solved it but you could think of it as challenge to overwrite the EIP in this program
Code
#include <string.h>
void do_something(char *Buffer)
{
char MyVar[8];
strcpy(MyVar,Buffer);
}
int main (int argc, char **argv)
{
do_something(argv[1]);
}tried to insert the address in hex but it kept reading it as asci like EX: AAAAAAAABBBB/*55/*99..
Can someone overwrite the EIP address in here making it point to another location of my choice
thanks
Ironic enough after 5 hours I solved it but you could think of it as challenge to overwrite the EIP in this program


