Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have a binary dump in file.bin. I want to see whether the whole file.bin is there in another binary file called target.bin. I tried the following:

grep -F --binary -f file.bin target.bin

It just shows: Binary file target.bin matches. I want to know the offsets and tried the -b flag, but that does not work. If I try grep -F -baon --binary -f file.bin target.bin to treat the binary file as text, but this matches every line in file.bin in target.bin, but that is not I want.

Is there any way to achieve this?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy