Search code examples
windowsmemoryprocesslualove2d

Is it possible to Read/Write memory to another process in Lua?


I'm trying to find a way to edit/hack the memory of an external windows process using Lua, specifically in a LÖVE2D program.

I was able to do it in Python using ctypes with ReadProcessMemory(). Is there something equivalent to this available for Lua?


Solution

  • Since love2d is using LuaJIT, you may be able to use FFI to get access to ReadProcessMemory function. Here is an example of how this may look using LuaJIT FFI on Windows.