Add pe sections parsing + kernel module by NtQuery by w4kfu + small fixes

This commit is contained in:
Clement Rouault
2015-09-17 15:58:58 +02:00
parent 7fe3e9e8be
commit 5be7b185c2
5 changed files with 20 additions and 5 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ def is_intel_proc():
def is_amd_proc():
return get_vendor_id() == "AuthenticAMD"
def get_proc_model_family():
def get_proc_family_model():
cpuid_res = do_cpuid(1)
if is_intel_proc():
format = X86IntelCpuidFamilly
@@ -113,4 +113,4 @@ def get_proc_model_family():
ComputedFamily = infos.FamilyID + infos.ExtendedFamily
else:
ComputedFamily = infos.FamilyID;
return ComputedModel, ComputedFamily
return ComputedFamily, ComputedModel
+1 -1
View File
@@ -79,7 +79,7 @@ class CustomAllocator(object):
def reserve_size(self, size):
if size + self.cur_offset > self.cur_page_size:
self.get_new_page((payload_size + 0x1000) & ~0xfff)
self.get_new_page((size + 0x1000) & ~0xfff)
addr = self.maps[-1].addr + self.cur_offset
self.cur_offset += size
return addr