要用python获取内存中数据该怎么写,python怎么写,from ctypes


from ctypes import *wdll=windll.kernel32print wdll<WinDLL 'kernel32', handle 77520000 at 2146ef0>

就是想读一下0x77520000处的内存值。

python可以做到读取内存吗,如果可以,应该怎么写。谢谢大咖。

windows下有API. http://msdn.microsoft.com/en-us/library/windows/desktop/ms680553%28v=vs.85%29.aspx

BOOL WINAPI ReadProcessMemory(
In HANDLE hProcess,
In LPCVOID lpBaseAddress,
Out LPVOID lpBuffer,
In SIZE_T nSize,
Out SIZE_T *lpNumberOfBytesRead
);

编橙之家文章,

评论关闭