From 58f1b69ce0f127a048729928f3bd1244002ef978 Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Wed, 12 Jan 2022 00:05:26 -0500 Subject: [PATCH] Bug fix. Fixed bug where newline / carriage return characters at the start of output strings would cause a weird text overflow when printed. --- autorecon/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorecon/io.py b/autorecon/io.py index a6563c7..fbb2e49 100644 --- a/autorecon/io.py +++ b/autorecon/io.py @@ -122,7 +122,7 @@ class CommandStreamReader(object): continue if line != '': - info('{bright}[{yellow}' + self.target.address + '{crst}/{bgreen}' + self.tag + '{crst}]{rst} ' + line.replace('{', '{{').replace('}', '}}'), verbosity=3) + info('{bright}[{yellow}' + self.target.address + '{crst}/{bgreen}' + self.tag + '{crst}]{rst} ' + line.strip().replace('{', '{{').replace('}', '}}'), verbosity=3) # Check lines for pattern matches. for p in self.patterns: