hi,

i want to write a simple c program with a few functions that are vulnerable to buffer overflow attacks and call them from the main function.

i infact wrote such a program.

now, i understand the theory of a buffer overflow attack but i do not know how to do it on my own demo vulnerable program.

when i search the net, i only find demos showing sample vulnerable C code and they just say that it is vulnerable because the stack can be manipulated.

but how do i investiagate and manipulate the stack contents of a program ?