当尝试在python中返回PEB的值时,您会遇到类似的问题,在python中调用__readgsqword是不可能的吗?
def GetPEB():
return ctypes.windll.kernel32.__readgsqword('0x0C',ctypes.sizeof('PVOID'))AttributeError: function '__readgsqword' not found发布于 2020-05-05 05:01:30
如文档中所述,这些函数是内部函数,并且不是由内核32DLL导出的。
您可以通过编译公开这些函数的DLL来调用它们,然后从Python代码中调用它们。
但是,使用不同的方法可能会更好。例如:How to access the PEB of another process with python ctypes
https://stackoverflow.com/questions/61601496
复制相似问题