MCPcopy
hub / github.com/NullArray/AutoSploit / do_quit_terminal

Method do_quit_terminal

lib/term/terminal.py:348–360  ·  view source on GitHub ↗

quit the terminal and save the command history

(self, save_history=True)

Source from the content-addressed store, hash-verified

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 """

Callers 1

terminal_main_displayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected