Skip to content

Commit

Permalink
Add 2 error codes that shows a successful coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack committed Oct 5, 2024
1 parent 43c1d33 commit c158995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/modules/coerce_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def exploit(self, dce, listener, always_continue, pipe):
request["MinorVersion"] = 1
dce.request(request)
except Exception as e:
if str(e).find("ERROR_BAD_NETPATH") >= 0:
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:
self.context.log.debug("ElfrOpenBELW Success")
self.context.log.highlight(f"Exploit Success, {pipe}\\ElfrOpenBELW")
if not always_continue:
Expand Down

0 comments on commit c158995

Please sign in to comment.