mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-08 16:37:12 +00:00
ExtractOffsets.py: added safety check in version number recovery
This commit is contained in:
@@ -59,6 +59,8 @@ def downloadSpecificFile(entry, pe_basename, pe_ext, knownPEVersions, output_fol
|
||||
version = entry['fileInfo']['version'].split(' ')[0]
|
||||
except:
|
||||
version = find('version', entry).split(' ')[0]
|
||||
if version and version.count(".") != 3:
|
||||
version = None
|
||||
|
||||
if not version:
|
||||
printl(f'[*] Error parsing version', lock)
|
||||
|
||||
Reference in New Issue
Block a user