mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Add pe sections parsing + kernel module by NtQuery by w4kfu + small fixes
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user