Skip to content

Commit f865502

Browse files
fix(smb): change command output back to match mssql (one big blob)
1 parent 447d171 commit f865502

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import binascii
33
import os
44
import re
5-
from io import StringIO
65
from Cryptodome.Hash import MD4
76

87
from impacket.smbconnection import SMBConnection, SessionError
@@ -676,9 +675,8 @@ def execute(self, payload=None, get_output=False, methods=None):
676675

677676
if (self.args.execute or self.args.ps_execute) and output:
678677
self.logger.success(f"Executed command via {current_method}")
679-
buf = StringIO(output).readlines()
680-
for line in buf:
681-
self.logger.highlight(line.strip())
678+
if output:
679+
self.logger.highlight(output)
682680
return output
683681
else:
684682
self.logger.fail(f"Execute command failed with {current_method}")

0 commit comments

Comments
 (0)