I am trying to track the repetition of a video in a buffer overflow from this and below - the code I'm trying to do.
#include <stdio.h>
GetInput()
{
char buffer[8];
gets(buffer);
puts(buffer);
}
main()
{
GetInput();
return 0;
}
I get isssue in gdb debugging while I am on ie in line 7, I get the following error:
_IO_gets (buf=0xbffff458 "k\204\004\b") at iogets.c:33
33 iogets.c: No such file or directory.
I follow the same steps as in the textbook. I am using 32-bit Kali linux on a virtual box
Can someone help me solve this problem.
source
share