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

Method __run

src/BotnetCommandProcessor.py:198–216  ·  view source on GitHub ↗
(self, options: str)

Source from the content-addressed store, hash-verified

196 @param options the command to be ran.
197 """
198 def __run(self, options: str):
199 if len(self.targets) == 0:
200 raise CommandException("No targets added.")
201 if len(options) == 0:
202 raise CommandException("No command specified.")
203
204 try:
205 print(f"{self.targets[0]['name']}: ")
206 self.targets[0]["processor"].process_command(options)
207 except CommandException as e:
208 print(str(e))
209
210 for target in self.targets[1:]:
211 try:
212 print("-" * 80)
213 print(f"{target['name']}: ")
214 target["processor"].process_command(options)
215 except CommandException as e:
216 print(str(e))
217
218 """
219 @brief See base class for details.

Callers

nothing calls this directly

Calls 2

CommandExceptionClass · 0.85
process_commandMethod · 0.45

Tested by

no test coverage detected