mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Fix samples/ntcall.py for new no-kALSR leak returned value in windows
This commit is contained in:
+4
-1
@@ -159,7 +159,10 @@ def do_ntcall_from_args(args, subcall=False):
|
||||
hinfo = [x for x in windows.current_process.handles if x.value == handle][0]
|
||||
print(" * Name: {0}".format(hinfo.name))
|
||||
print(" * Type: {0}".format(hinfo.type))
|
||||
print(" * Addr: {0:#x}".format(hinfo.pAddress))
|
||||
if hinfo.pAddress is not None:
|
||||
print(" * Addr: {0:#x}".format(hinfo.pAddress))
|
||||
else:
|
||||
print(" * Addr: None")
|
||||
return handle
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user