Carved files are often equal in size to the original file
See original GitHub issueI have experienced this a couple times.
I will use binwalk to analyze a memory image or unknown data blob. When it carves files, the files are often close to the file from which they were carved in size, even if there are so many valid detections that is is simply not possible for all carved data to fit in the original file.
For example, I have a file – x
that is 1.3 GB. x
contains several contiguous zlib-compressed blobs. Binwalk will carve out that many _unextracted_ blobs, but all between 1.0 GB and 1.3 GB.
Unfortunately, I cannot share file x
.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
File carving | Infosec Resources
File carving is a great method for recovering files and fragments of files when directory entries are corrupt or missing. This is especially...
Read more >File carving - Wikipedia
File carving is the process of reassembling computer files from fragments in the absence of ... File System, work with the concept of...
Read more >File carving methods in data recovery
Header and size carving. This method is a variation of the fixed size method, where we use the size derived from the header...
Read more >Carving and its Implementations in Digital Forensics - Belkasoft
The reason for the emergence of the slack space is that while the disk is divided into sectors of equal size, the files...
Read more >File Carving and Data Recovery - Linux Hint
File carving is an excellent way to recover files and file fragments when text is damaged or missing. It is often used by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@CoffeeExpress Why was this issue closed? It doesn’t seem to have been fixed…
For anyone reading this, you need to use a recent
p7zip
implementation. binwalk expect theunzip
implementation to read a file from the start, while some are reading file starting from the end. Leading to odd behavior. See for more info here.