Skip to content

Commit beff3b1

Browse files
committed
Fix thread exit on bind failure for PrintNightmare module
1 parent da0d513 commit beff3b1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nxc/modules/printnightmare.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from impacket import system_errors
32
from impacket.dcerpc.v5.rpcrt import DCERPCException, RPC_C_AUTHN_GSS_NEGOTIATE, rpc_status_codes
43
from impacket.structure import Structure
@@ -67,7 +66,7 @@ def on_login(self, context, connection):
6766
dce.bind(rprn.MSRPC_UUID_RPRN)
6867
except Exception as e:
6968
context.log.fail(f"Failed to bind: {e}")
70-
sys.exit(1)
69+
return False
7170

7271
flags = APD_COPY_ALL_FILES | APD_COPY_FROM_DIRECTORY | APD_INSTALL_WARNED_DRIVER
7372

0 commit comments

Comments
 (0)