How can i change values in a program's memory?
-
let's say i want to go to address 377DC in program.exe and change it's value to 60? (just a fictional example), how can I do it?
You can acquire pointers to memory locations use standard pointer syntax ala C++. It just has to be done in an unsafe context using the unsafe keyword.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
You can acquire pointers to memory locations use standard pointer syntax ala C++. It just has to be done in an unsafe context using the unsafe keyword.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: How men in the Catholic Church replaced Passover with Easter The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
um..have you got any examples? cause i haven't been able to find any references to that subject
-
let's say i want to go to address 377DC in program.exe and change it's value to 60? (just a fictional example), how can I do it?
Are you trying to change something in some other running program? Or you trying to this in an application written by you?
-
um..have you got any examples? cause i haven't been able to find any references to that subject
sharpiesharpie wrote:
i haven't been able to find any references to that subject
What did you search on? MSDN: unsafe[^]
Upcoming events: * Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website
-
Are you trying to change something in some other running program? Or you trying to this in an application written by you?
In another program (games). I just want to learn the whole thing (used to build trainers etc.).
-
In another program (games). I just want to learn the whole thing (used to build trainers etc.).
I knew that you can use DLL Injection in VC++ however I am not sure how to achive it in VC#. btw I dont think you can do it in any NT based OS. That is the security model to stop one process to modify(tamper) some other process unless explicitly allowed. Cheers, Suresh
-
I knew that you can use DLL Injection in VC++ however I am not sure how to achive it in VC#. btw I dont think you can do it in any NT based OS. That is the security model to stop one process to modify(tamper) some other process unless explicitly allowed. Cheers, Suresh
lol...ever heard of trainers? and you don't even have to go that far, just google "TSearch"...a memory searcher used to search a program's memory and change values in it.
-
lol...ever heard of trainers? and you don't even have to go that far, just google "TSearch"...a memory searcher used to search a program's memory and change values in it.
Excellent!! Cheers
-
Excellent!! Cheers
It's not excellent...it doesn't help me >< I still need to know how to do it \=
-
It's not excellent...it doesn't help me >< I still need to know how to do it \=
A process can only access its own memory, so you need to inject a library into the target process. I don't think you can inject the .NET runtime into a running process (though another injected library may load .NET), so what you're trying to do is probably impossible with C#. There are articles here on CodeProject that show how to do it with C++.