我正在尝试访问Windows 2000系统的物理内存(尝试在不使用内存转储工具的情况下执行此操作)。我的理解是我需要使用CreateFile函数来创建一个句柄。我使用了一个旧版本的win32dd来帮助我解决这个问题。网上的其他文档指出我使用“\Device\PhysicalMemory”或“\\.\PhysicalMemory”。不幸的是,我得到了同样的错误。在
Traceback (most recent call last):
File "testHandles.py", line 101, in (module)
File "testHandles.py", line 72, in createFileHandle
pywintypes.error: (3, 'CreateFile', 'The system cannot find the path specified.')
实际上,每次运行\\.\PhysicalMemory==3和\Device\PhysicalMemory==2时返回的错误号是不同的。查看pywin32、win32file、createfile、pyhandle和pywintypes没有生成关于不同返回值的信息。在
这是我的密码。我正在使用py2exe在windows2000上运行(是的,它编译成功)。我意识到我可能在DeviceIoControl上也有问题,但现在我正专注于CreateFile。在
^{pr2}$谢谢你, 剖切
我不相信在Windows中从用户模式land访问物理内存对象是不可能的。正如您的win32dd link所建议的,您将需要从内核模式执行此操作。在
相关问题 更多 >
编程相关推荐