how to find offset of one binary file inside another?
9
votes
5
answers
6405
views
I have two binary files.
One of few hundreds kilos and other of few gigabytes.
I want to know whether the whole, smaller, file is contained within the larger one and if so then what is the offset from the start of the larger file.
I am interested only in exact matches i.e. whether the whole file is contained by the another.
Both files are binary.
Is there any existing tool/one-liner that does that ?
One of few hundreds kilos and other of few gigabytes.
I want to know whether the whole, smaller, file is contained within the larger one and if so then what is the offset from the start of the larger file.
I am interested only in exact matches i.e. whether the whole file is contained by the another.
Both files are binary.
Is there any existing tool/one-liner that does that ?
Asked by Cyryl Płotnicki
(191 rep)
May 31, 2012, 10:05 AM
Last activity: Mar 30, 2023, 08:31 PM
Last activity: Mar 30, 2023, 08:31 PM