Search code examples
javac#memoryreverse-engineeringediting

Edit Java Application's Memory from C#


Is it possible to edit a java application running in javaw.exe with the .NET framework? If so, could you use the MemorySharp libraries?

I've been asked to automate text into a Java application. I primarily code in .NET and would prefer development in Visual Studio. However, if it must be developed in Java, that would also be okay. I will need to trace back multi-level pointers.


Solution

  • Traversing multilevel pointers found in the process space of a .NET/JVM based program is generally a bad idea. The pointers are too volatile.

    Cheat Engine has some features for manipulating Java programs by locating the location of Java objects in memory without pointer traversal.

    See: http://forum.cheatengine.org/viewtopic.php?t=576927&sid=5bfd402b090c4872a602a3202b619d9d

    This forum post isn't a complete example but it should be a good place to start.