From 529a24c191299551ccd90959bea8ae382c0fa5da Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 8 Aug 2023 10:40:44 +0200 Subject: [PATCH] chg: [module extrator] add debug --- bin/lib/module_extractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lib/module_extractor.py b/bin/lib/module_extractor.py index 54e4d3ab..cdb67ab6 100755 --- a/bin/lib/module_extractor.py +++ b/bin/lib/module_extractor.py @@ -107,8 +107,8 @@ def convert_byte_offset_to_string(b_content, offset): try: string_chunk = byte_chunk.decode() except UnicodeDecodeError as e: - logger.error(f'Yara offset coverter error, {e.reason}\n{b_content}\n{offset}') - string_chunk = b_content + logger.error(f'Yara offset converter error, {e.reason}\n{byte_chunk}\n{offset}') + string_chunk = byte_chunk offset = len(string_chunk) - 1 return offset