[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:
SND\EreTIk_cp 2012-05-23 09:36:56 +00:00 committed by Mikhail I. Izmestev
parent 7e5d195ec9
commit aaf35f3515

View File

@ -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))