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

Method _Base__cd

src/NodeExploitProcessor.py:144–152  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

142 @brief See base class for details.
143 """
144 def _Base__cd(self, options: str):
145 if len(options) == 0:
146 raise CommandException("Specify a path.")
147 out = self.__eval(f"process.chdir('{options}');"
148 f"r.setHeader('{self.header}', "
149 f"Buffer.from(process.cwd()).toString('base64'));"
150 f"r.end();")
151 self.directory = base64.b64decode(out).decode()
152 print(self.directory)
153
154 """
155 @brief See base class for details.

Callers

nothing calls this directly

Calls 2

__evalMethod · 0.95
CommandExceptionClass · 0.85

Tested by

no test coverage detected