From 650c67262529e0f486dcfec816a09ccf955845ce Mon Sep 17 00:00:00 2001 From: hakril Date: Thu, 14 Aug 2025 10:25:59 +0200 Subject: [PATCH] Fix samples/ntcall.py for new no-kALSR leak returned value in windows --- samples/ntcall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/ntcall.py b/samples/ntcall.py index be137e2..b1e9259 100644 --- a/samples/ntcall.py +++ b/samples/ntcall.py @@ -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