Skip to content

Commit 650c672

Browse files
committed
Fix samples/ntcall.py for new no-kALSR leak returned value in windows
1 parent 6c00426 commit 650c672

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/ntcall.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ def do_ntcall_from_args(args, subcall=False):
159159
hinfo = [x for x in windows.current_process.handles if x.value == handle][0]
160160
print(" * Name: {0}".format(hinfo.name))
161161
print(" * Type: {0}".format(hinfo.type))
162-
print(" * Addr: {0:#x}".format(hinfo.pAddress))
162+
if hinfo.pAddress is not None:
163+
print(" * Addr: {0:#x}".format(hinfo.pAddress))
164+
else:
165+
print(" * Addr: None")
163166
return handle
164167

165168

0 commit comments

Comments
 (0)