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

Method __export

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

Source from the content-addressed store, hash-verified

177 @throw CommandException if the targets could not be saved.
178 """
179 def __export(self, options: str):
180 timestamp = int(time())
181 outTargets = []
182 for target in self.targets:
183 outTarget = {}
184 for key in target.keys():
185 if key != "processor":
186 outTarget[key] = target[key]
187 outTargets.append(outTarget)
188 out = {
189 "targets": outTargets
190 }
191 with open(f"botnet-{timestamp}.json", 'w') as f:
192 json.dump(out, f, ensure_ascii=False, indent=4)
193
194 """
195 @brief Run a command on each of the backdoors.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected