diff --git a/Linux/lazagne/config/write_output.py b/Linux/lazagne/config/write_output.py index 2217bd5b..0758d9a1 100755 --- a/Linux/lazagne/config/write_output.py +++ b/Linux/lazagne/config/write_output.py @@ -145,9 +145,10 @@ def parseJsonResultToBuffer(jsonString, color=False): reset = '' title = '' if color: - green = Fore.GREEN - title = Style.BRIGHT + Fore.WHITE - reset = Style.RESET_ALL + b = bcolors() + green = b.OK + title = b.TITLE + reset = b.ENDC buffer = '' try: diff --git a/Windows/lazagne/softwares/windows/creddump7/object.py b/Windows/lazagne/softwares/windows/creddump7/object.py index 8dfff647..c4697309 100755 --- a/Windows/lazagne/softwares/windows/creddump7/object.py +++ b/Windows/lazagne/softwares/windows/creddump7/object.py @@ -129,10 +129,13 @@ def get_obj_offset(types, member_list): current_type = member_list.pop() offset = 0 + current_member = 0 + member_dict = None while (len(member_list) > 0): if current_type == 'array': - current_type = member_dict[current_member][1][2][0] + if member_dict: + current_type = member_dict[current_member][1][2][0] if current_type in builtin_types: current_type_size = builtin_size(current_type) else: