From f2a77fd87bc7f8858ca54a13be59913eefbf8c90 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 3 Dec 2015 04:10:20 +0000 Subject: [PATCH] fix bad chars in prompt --- src/scripts/pymsfconsole | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/pymsfconsole b/src/scripts/pymsfconsole index 0ae0c2a..8822f72 100755 --- a/src/scripts/pymsfconsole +++ b/src/scripts/pymsfconsole @@ -50,12 +50,11 @@ class MsfConsole(InteractiveConsole): def callback(self, d): stdout.write('\n%s' % d['data']) if not self.fl: - stdout.write('\n%s' % d['prompt']) + stdout.write('\n%s' % d['prompt'].replace("\x01\x02", "")) stdout.flush() else: self.fl = False - if __name__ == '__main__': o = parseargs() try: