mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.1.x] ~fix: using getOffset (alpc_conn.py)
git-svn-id: https://pykd.svn.codeplex.com/svn@76560 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
7e5d195ec9
commit
aaf35f3515
@ -26,7 +26,7 @@ def main():
|
|||||||
"""
|
"""
|
||||||
argc_ = len(sys.argv)
|
argc_ = len(sys.argv)
|
||||||
if (1 == argc_):
|
if (1 == argc_):
|
||||||
portTypeAddr = getOffset("nt", "AlpcPortObjectType")
|
portTypeAddr = getOffset("nt!AlpcPortObjectType")
|
||||||
if (0 != portTypeAddr):
|
if (0 != portTypeAddr):
|
||||||
objTable = typedVar("nt!_EPROCESS", getCurrentProcess()).ObjectTable
|
objTable = typedVar("nt!_EPROCESS", getCurrentProcess()).ObjectTable
|
||||||
lstAlpcPorts = ntobj.getListByHandleTable(objTable, ptrPtr(portTypeAddr))
|
lstAlpcPorts = ntobj.getListByHandleTable(objTable, ptrPtr(portTypeAddr))
|
||||||
|
Loading…
Reference in New Issue
Block a user