Skip to content

Commit 96d23cd

Browse files
committed
Fix windows output
1 parent beee54b commit 96d23cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,6 @@ def execute(self, payload=None, get_output=False):
334334
else:
335335
self.logger.success("Executed command")
336336
if get_output:
337-
for line in stdout.split("\n"):
337+
for line in stdout.replace("\r\n", "\n").rstrip("\n").split("\n"):
338338
self.logger.highlight(line.strip("\n"))
339339
return stdout

0 commit comments

Comments
 (0)