quit the terminal and save the command history
(self, save_history=True)
| 346 | lib.output.info("host '{}' saved to hosts file".format(item)) |
| 347 | |
| 348 | def do_quit_terminal(self, save_history=True): |
| 349 | """ |
| 350 | quit the terminal and save the command history |
| 351 | """ |
| 352 | self.quit_terminal = True |
| 353 | if save_history: |
| 354 | if not os.path.exists(self.history_dir): |
| 355 | os.makedirs(self.history_dir) |
| 356 | lib.output.misc_info("saving history") |
| 357 | with open(self.full_history_path, "a+") as hist: |
| 358 | for item in self.history: |
| 359 | hist.write(item + "\n") |
| 360 | lib.output.info("exiting terminal session") |
| 361 | |
| 362 | def do_exploit_targets(self, workspace_info, shodan_token=None): |
| 363 | """ |
no outgoing calls
no test coverage detected