mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
Fix: ThreadsProcess for windows older version
This commit is contained in:
@@ -450,7 +450,12 @@ class ETHREAD(objects.StructType):
|
||||
|
||||
def owning_process(self) -> interfaces.objects.ObjectInterface:
|
||||
"""Return the EPROCESS that owns this thread."""
|
||||
return self.Tcb.Process.dereference().cast("_EPROCESS")
|
||||
if(self.has_member("ThreadsProcess")):
|
||||
return self.ThreadsProcess.dereference().cast("_EPROCESS")
|
||||
elif(self.has_member("Tcb") and self.Tcb.has_member("Process")):
|
||||
return self.Tcb.Process.dereference().cast("_EPROCESS")
|
||||
else:
|
||||
raise AttributeError("Unable to find the owning process of ethread")
|
||||
|
||||
def get_cross_thread_flags(self) -> str:
|
||||
dictCrossThreadFlags = {
|
||||
|
||||
Reference in New Issue
Block a user