fix: [module extractor] fix invalid yara offset

pull/604/head
Terrtia 2023-08-08 11:27:57 +02:00
parent 4dc5527c1a
commit f05c7b6a93
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def convert_byte_offset_to_string(b_content, offset):
return offset return offset
except UnicodeDecodeError as e: except UnicodeDecodeError as e:
logger.error(f'Yara offset converter error, {str(e)}\n{offset}/{len(b_content)}') logger.error(f'Yara offset converter error, {str(e)}\n{offset}/{len(b_content)}')
return convert_byte_offset_to_string(b_content, offset) return convert_byte_offset_to_string(b_content, offset - 1)
# TODO RETRO HUNTS # TODO RETRO HUNTS