Skip to content

Commit

Permalink
Update speakeasy/winenv/api/kernelmode/ntoskrnl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin authored Feb 15, 2023
1 parent 5e0ea6f commit 655f546
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions speakeasy/winenv/api/kernelmode/ntoskrnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@ def ZwQuerySystemInformation(self, emu, argv, ctx={}):
nts = ddk.STATUS_SUCCESS

elif sysclass == ddk.SYSTEM_INFORMATION_CLASS.SystemCodeIntegrityInformation:
if sysinfo and syslen >=8:
class_len = (8).to_bytes(4,"little")
flags = (1).to_bytes(4,"little")
self.mem_write(sysinfo,class_len + flags)
if sysinfo and syslen >= 8:
class_len = (8).to_bytes(4, "little")
flags = (1).to_bytes(4, "little")
self.mem_write(sysinfo, class_len + flags)
nts = ddk.STATUS_SUCCESS

elif sysclass == ddk.SYSTEM_INFORMATION_CLASS.SystemProcessInformation:
Expand Down

0 comments on commit 655f546

Please sign in to comment.