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

Method _Base__cd

src/ASPClassicExploitProcessor.py:177–190  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

175 @brief See base class for details.
176 """
177 def _Base__cd(self, options: str):
178 if not options:
179 raise CommandException("Specify a directory")
180 res = self.__run(
181 f"cd {options} && cd"
182 )
183
184 if not res:
185 raise CommandException("Invalid directory")
186
187 self.directory = (res
188 .replace("\n", "")
189 .replace("\r", ""))
190 print(res, end='')
191
192 """
193 @brief See base class for details.

Callers

nothing calls this directly

Calls 2

__runMethod · 0.95
CommandExceptionClass · 0.85

Tested by

no test coverage detected