Skip to content

Commit c158995

Browse files
committed
Add 2 error codes that shows a successful coercion
1 parent 43c1d33 commit c158995

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/coerce_plus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def exploit(self, dce, listener, always_continue, pipe):
957957
request["MinorVersion"] = 1
958958
dce.request(request)
959959
except Exception as e:
960-
if str(e).find("ERROR_BAD_NETPATH") >= 0:
960+
if str(e).find("ERROR_BAD_NETPATH") >= 0 or str(e).find("STATUS_OBJECT_PATH_NOT_FOUND") >= 0 or str(e).find("STATUS_CONNECTION_DISCONNECTED") >= 0:
961961
self.context.log.debug("ElfrOpenBELW Success")
962962
self.context.log.highlight(f"Exploit Success, {pipe}\\ElfrOpenBELW")
963963
if not always_continue:

0 commit comments

Comments
 (0)