From 11480183942bf0619fd0513a528143d0024d1b35 Mon Sep 17 00:00:00 2001 From: zblurx Date: Tue, 3 Oct 2023 18:40:07 +0200 Subject: [PATCH] Update codec management --- nxc/modules/schtask.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nxc/modules/schtask.py b/nxc/modules/schtask.py index c6b00917..87e44d43 100644 --- a/nxc/modules/schtask.py +++ b/nxc/modules/schtask.py @@ -65,8 +65,7 @@ class NXCModule: if not isinstance(output, str): output = output.decode(connection.args.codec) except UnicodeDecodeError: - self.logger.debug("Decoding error detected, consider running chcp.com at the target, map the result with https://docs.python.org/3/library/codecs.html#standard-encodings") - output = output.decode("cp437") + self.logger.fail("Decoding error detected, consider running chcp.com at the target, map the result with https://docs.python.org/3/library/codecs.html#standard-encodings") self.logger.highlight(output) except Exception as e: