Skip to content

Commit 3ce7b6b

Browse files
committed
Readd rpc message to success message
1 parent b81ea6c commit 3ce7b6b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

nxc/modules/coerce_plus.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,13 @@ def exploit(self, dce, listener, always_continue, pipe):
486486
self.handle_exception(request.__class__.__name__, always_continue, pipe, e)
487487

488488
def handle_exception(self, method_name, always_continue, pipe, e):
489-
if str(e).find("rpc_s_access_denied") >= 0 or str(e).find("RPC_S_INVALID_NET_ADDR") >= 0:
489+
if str(e).find("rpc_s_access_denied") >= 0 or str(e).find("ERROR_BAD_NETPATH") >= 0 or str(e).find("RPC_S_INVALID_NET_ADDR") >= 0:
490490
self.context.log.debug(f"{method_name} Success")
491491
self.context.log.highlight(f"Exploit Success, {pipe}\\{method_name}")
492492
if not always_continue:
493493
return True
494494
elif str(e).find("ERROR_NOT_SUPPORTED") >= 0:
495495
self.context.log.debug("Not Vulnerable")
496-
elif str(e).find("ERROR_BAD_NETPATH") >= 0:
497-
self.context.log.info("Could not find listener machine")
498496
else:
499497
self.context.log.debug(f"Something went wrong, check error status => {e!s}")
500498

0 commit comments

Comments
 (0)