Skip to content

Commit a8954f1

Browse files
authored
Restore removed comment.
Signed-off-by: 0xQRx <157332395+0xQRx@users.noreply.github.com>
1 parent 363691a commit a8954f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nxc/protocols/mssql/mssqlexec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def execute(self, command):
2929
if result:
3030
result = "\n".join(line["output"] for line in result if line["output"] != "NULL")
3131
self.logger.debug(f"Concatenated result together for easier parsing: {result}")
32+
# if you prepend SilentlyContinue it will still output the error, but it will still continue on (so it's not silent...)
3233
if "Preparing modules for first use" in result and "Completed" not in result:
3334
self.logger.error("Error when executing PowerShell (received 'preparing modules for first use'), try prepending $ProgressPreference = 'SilentlyContinue'; to your command")
3435
except Exception as e:

0 commit comments

Comments
 (0)