diff --git a/smbclientng/core/InteractiveShell.py b/smbclientng/core/InteractiveShell.py index 953e9d6..bcae628 100644 --- a/smbclientng/core/InteractiveShell.py +++ b/smbclientng/core/InteractiveShell.py @@ -101,6 +101,7 @@ def run(self): for line in f.readlines(): try: self.logger.print("%s%s" % (self.__prompt(), line.strip())) + readline.add_history(line.strip()) self.process_line(commandLine=line.strip()) except KeyboardInterrupt as e: self.logger.print()