python怎么读取指定内存中的内容
from ctypes import *
wdll=windll.kernel32
print wdll
<WinDLL 'kernel32', handle 77520000 at 2146ef0>
就是想读一下
0x77520000
处的内存值。
python可以做到读取内存吗,如果可以,应该怎么写。谢谢大咖。
HH117
10 years, 2 months ago
Answers
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
);
UP主求勾兑
answered 10 years, 2 months ago