armijnhemel / binaryanalysis-ng

Binary Analysis Next Generation (BANG)
GNU Affero General Public License v3.0
471 stars 66 forks source link

Priorities #345

Closed armijnhemel closed 1 year ago

armijnhemel commented 1 year ago

This PR fixes a few shortcomings:

  1. sorts parsers based on offsets after any corrections of offsets (example: ISO9660, MBR)
  2. introduces a priority system to ensure parsers can be run before other in case they have the same offset (example: ISO9660 with EFI boot block)
  3. dynamically determines the size of the chunk that's scanned based on parser offsets and signature lengths