Posted: Mon Nov 16, 2020 7:22 am Post subject: Question about memory editing in Python
Hello,
I am trying to recreate cheat engine in Python using ctypes and mem-edit.. I've already made some progress. The only thing that isnt working is the edit function. When I use it, I dont get any errors but the value doesnt change. Do I have to do something with the address to edit it?
Code:
Code:
import ctypes
from mem-edit import Process
pid = input("PID: ")
address = input("Address to edit: ")
value = input("New value: ")
with Process.open_process(pid) as p:
p.write_memory(address, ctypes.c_ulong(int(value)))
Last edited by GG_u_tried_GG on Wed Nov 18, 2020 3:16 am; edited 2 times in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum