Small improvments

This commit is contained in:
hakril
2025-02-02 16:29:05 +01:00
parent 8932682ba2
commit ff4161602c
3 changed files with 10 additions and 1 deletions
+4
View File
@@ -177,6 +177,10 @@ class SymbolType(object):
windows.winproxy.LocalFree(res)
return newres
@property
def module(self):
return self.resolver.get_module(self.modbase)
@property
def name(self):
return self._get_type_info(gdef.TI_GET_SYMNAME)
+5 -1
View File
@@ -169,8 +169,12 @@ def get_current_process_syswow_peb():
class CurrentProcessReadSyswow(process.Process):
bitness = 64
def _get_handle(self):
return winproxy.OpenProcess(dwProcessId=windows.current_process.pid)
return winproxy.GetCurrentProcess()
def __del__(self):
pass
def read_memory(self, addr, size):
buffer_addr = ctypes.create_string_buffer(size)
+1
View File
@@ -377,6 +377,7 @@ class ImprovedEVT_VARIANT(gdef.EVT_VARIANT):
gdef.EvtVarTypeUInt16 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt16Arr",
gdef.EvtVarTypeUInt32 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt32Arr",
gdef.EvtVarTypeUInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
gdef.EvtVarTypeHexInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
}
NoneValue = None