fatmacho
fat mach-o file-format parsers
Legal
This node module has been written by Sergi Àlvarez at Nowsecure and it is distributed under the MIT license.
Usage
The parse
method accepts a Buffer as argument and returns an array of sub-binaries stored in there.
> var fat = ;> fat; arch: "arm" offset: 4096 size: 120656 align: 14 data: <Buffer ce fa ed fe 0c 00 00 00 09 00 00 00 02 00 00 00 ... > } ...
This is a more elaborated example:
'use strict'; const fs = ;const macho = ;const fat = ;const data = fs;const bins = fat; for const b of bins console; console;