1. Engineering
  2. Computer Science
  3. run the program without overflow since the buffer is 500...

Question: run the program without overflow since the buffer is 500...

Question details

Run the program without overflow. Since the buffer is 500, anything below 500 won’t cause an overflow. Pass the string ‘Hello’ to see that the program exited normally without any error code.
➢ (grb) run Hello
Run the program with the argument string more than 500.
➢ run $(python -c 'print "x41" * 508')

(gdb) run Hello Starting progran: /hone/seed/vuln Hello [Inferior 1 (process 3427) exited normally] (gdb) run $(python -c print x41 508) starting program: /home/seed/vuln $(python -c print x41 *508) Program received signal SIGSEGV, Segnentation fault. 0x41414141 in ?? ()

Explain the argument string, i.e, everything after ‘run’

Explain how the error code

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution