diff --git a/smbclientng/core/InteractiveShell.py b/smbclientng/core/InteractiveShell.py index b16fb53..a992d0d 100644 --- a/smbclientng/core/InteractiveShell.py +++ b/smbclientng/core/InteractiveShell.py @@ -94,10 +94,11 @@ def __init__(self, smbSession, config): def run(self): # Read commands from script file first - if self.config.script: - f = open(self.config.script, 'r') + if self.config.startup_script: + f = open(self.config.startup_script, 'r') for line in f.readlines(): try: + print("%s%s" % (self.__prompt(), line.strip())) self.process_line(commandLine=line.strip()) except KeyboardInterrupt as e: print()