if im trying to kill a program, and im doing this by writing over memory address with a jumble of charectors, how would i write to the memory address? or is there another way of doing it?
if im trying to kill a program, and im doing this by writing over memory address with a jumble of charectors, how would i write to the memory address? or is there another way of doing it?
just type this code to terminate
exit();
if u have #include <stdlib.h>
then use
exit(0);
do this with asm code.
_asm_(" code here ");
Asking the right question is sometimes more important than knowing the answer.
Please read the FAQ
C Reference Card (A MUST!)
Pointers and Memory
The Essentials
CString lib
Thank you so, so much mr. Lynux-Punguin, you wouldn't believe how long i've been trying to figure out how to do that. people were always giving me the wrong syntax and i ended up actualy destroying the files and they sat there laughting said they were joking. But thank you for not thinking my Q was dumb.
and everyone else out there (oh, thanks red_baron too, but i didn't use your example)
"There is no such thing as a dumb question"
Define a pointer and let the pointer point to the memory you want to write to. Then write your bytes to that memory address.