Use a single failure sentinel in LAPSv2Extract.run()

This commit is contained in:
azoxlpf committed 2026-10-29 15:09:23 +01:00
1 parent 5a4ef2d5ac
commit 31a98e5b02
1 file changed
+2 -2
+2 -2
View File
@@ -235,13 +235,13 @@ class LAPSv2Extract:
dce.connect()
except Exception as e:
self.logger.error(f"Something went wrong, check error status => {e}")
return False
return None
self.logger.info("Connected")
try:
dce.bind(MSRPC_UUID_GKDI)
except Exception as e:
self.logger.error(f"Something went wrong, check error status => {e!s}")
return False
return None
self.logger.info("Successfully bound")
self.logger.info("Calling MS-GKDI GetKey")