Skip to content

Commit

Permalink
MEA v1.304.5
Browse files Browse the repository at this point in the history
v1.304.5

Improved unknown UTOK > UTFL value handling
  • Loading branch information
platomav committed Feb 26, 2024
1 parent 8985366 commit 22d742e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.304.5

Improved unknown UTOK > UTFL value handling

r343

CSME 11.8.95.4551_CON_LP_C_NPDM_PRD_RGN
Expand Down
13 changes: 7 additions & 6 deletions MEA.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"""
ME Analyzer
Intel Engine & Graphics Firmware Analysis Tool
Copyright (C) 2014-2023 Plato Mavropoulos
Copyright (C) 2014-2024 Plato Mavropoulos
"""

title = 'ME Analyzer v1.304.4'
title = 'ME Analyzer v1.304.5'

import sys

Expand Down Expand Up @@ -95,7 +95,7 @@ def mea_help() :
'-json : Writes parsable JSON info files during MEA operation'
)

print(col_g + '\nCopyright (C) 2014-2023 Plato Mavropoulos' + col_e)
print(col_g + '\nCopyright (C) 2014-2024 Plato Mavropoulos' + col_e)

if getattr(sys, 'frozen', False) : print(col_c + '\nRunning in frozen state!' + col_e)

Expand Down Expand Up @@ -2045,14 +2045,15 @@ class UTFL_Header(ctypes.LittleEndianStructure) : # Unlock Token Flags (DebugTok
]

def hdr_print(self) :
Reserved = '%0.*X' % (0x1B * 2, int.from_bytes(self.Reserved, 'little'))
DelayedAuthMode = {0:'No', 1:'Yes'}.get(self.DelayedAuthMode, f'Unknown ({self.DelayedAuthMode})')
Reserved = '0x%0.*X' % (0x1B * 2, int.from_bytes(self.Reserved, 'little'))

pt = ext_table(['Field', 'Value'], False, 1)

pt.title = col_y + 'Unlock Token Flags' + col_e
pt.add_row(['Tag', self.Tag.decode('utf-8')])
pt.add_row(['Delayed Authentication Mode', ['No','Yes'][self.DelayedAuthMode]])
pt.add_row(['Reserved', '0x' + '00/FF * 27' if Reserved in ('00' * 27,'FF' * 27) else Reserved])
pt.add_row(['Delayed Authentication Mode', DelayedAuthMode])
pt.add_row(['Reserved', Reserved])

return pt

Expand Down

0 comments on commit 22d742e

Please sign in to comment.