From f449f38bfd6cff96be55b5561fc47c0f9eb7f5c4 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Fri, 20 Sep 2024 14:38:03 +0200 Subject: [PATCH] Update print_cil_from_dn_file.py I can share sample in PM --- scripts/print_cil_from_dn_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/print_cil_from_dn_file.py b/scripts/print_cil_from_dn_file.py index 419002b..9253907 100644 --- a/scripts/print_cil_from_dn_file.py +++ b/scripts/print_cil_from_dn_file.py @@ -56,7 +56,7 @@ def read_dotnet_user_string(pe: dnfile.dnPE, token: StringToken) -> Union[str, I except UnicodeDecodeError as e: return InvalidToken(token.value) - if user_string is None or user_string.value is None: + if user_string is None or (isinstance(user_string, bytes) or user_string.value is None): return InvalidToken(token.value) return user_string.value