A basic file carver that detects if a block of bytes is related to a .bmp file or not, and extracts and outputs them to a specified directory.
The original .bmp file:
The first block of bytes (the whole image) which is the original input .bmp file:
The second block of bytes within the file, which is a misspelling of 'surprise':
Not demonstrated above is the ability to extract and output blocks of bytes that are not related to .bmp files.