reading data from process' memory with Python
问题 I'm trying to read data from memory of a process by inputing the process name, then finding PID using psutil. So far I have this: import ctypes from ctypes import * from ctypes.wintypes import * import win32ui import psutil # install, not a default module import sys # input process name nameprocess = "notepad.exe" # find pid def getpid(): for proc in psutil.process_iter(): if proc.name() == nameprocess: return proc.pid PROCESS_ID = getpid() if PROCESS_ID == None: print "Process was not found"