From 15c8efa153ef27b9f3cc5db0d21846a9d88426f3 Mon Sep 17 00:00:00 2001 From: Deepanjan Roy Date: Fri, 30 May 2025 19:01:59 -0400 Subject: [PATCH] Use correct CloseHandle --- sandbox/windows_sandbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/windows_sandbox.py b/sandbox/windows_sandbox.py index bcb2cece5..be87bb92e 100644 --- a/sandbox/windows_sandbox.py +++ b/sandbox/windows_sandbox.py @@ -30,7 +30,7 @@ def set_process_integrity_level_to_low(): logging.info("Sandbox enabled: Process now running with low integrity token") - win32security.CloseHandle(token) + win32api.CloseHandle(token) def does_permit_low_integrity_write(icacls_output):