From 75b72b56c5c791f3414e37697fa943af05929118 Mon Sep 17 00:00:00 2001 From: Karmaz95 Date: Sat, 20 Jul 2024 23:18:30 +0200 Subject: [PATCH] Patching bug in binaryInit --- App Bundle Extension/python/CrimsonUroboros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App Bundle Extension/python/CrimsonUroboros.py b/App Bundle Extension/python/CrimsonUroboros.py index ae8ca28..52c6237 100755 --- a/App Bundle Extension/python/CrimsonUroboros.py +++ b/App Bundle Extension/python/CrimsonUroboros.py @@ -97,7 +97,7 @@ class SnakeHatchery: ''' Initialize the binary object in global scope.''' global binaries # It must be global, becuase after this object is destructed, the snake_instance would point to invalid memory ("binary" is dependant on "binaries"). - if self.file_path_exists: + if self.file_path: # We cannot use here self.file_path_exists because at this point the file_path cpuld be set fron None to a valid path by filePathInit() method (when only -b specified) adhoc_macho_processor = MachOProcessor() # Just for this limited scope if adhoc_macho_processor.isFileMachO(self.file_path):