Extract .exe Resources with dd

From Leo's Notes
Revision as of 02:30, 1 September 2019 by Leo (talk | contribs) (reformat)
This page was last edited on 1 September 2019, at 02:30.

One method of extracting resources from a binary file is to first locate the start of each resource segment by its file header and then extract it out until the next file header.

For example, to get all audio resources (a .wav file with a file header of 'RIFF'), get all the offsets where the string 'RIFF' starts and extract the data from there until the next header:

Location=0

strings -a -t d SIMTOWER.EXE