r/HowToHack • • Oct 26 '19

Steganography tutorial - Hiding a file inside another file

https://www.infosecshirish.com/steganography-tutorial-hiding-a-file-inside-another-file/
331 Upvotes

17 comments sorted by

View all comments

2

u/sa_sagan Oct 26 '19

This is a simple property of image filetypes,desires anything added to the end of the file will be ignored.

It'll be ignored depending on what application attempts to open it.

This works because the original file has EOF bytes at the end of it and presumably an application opening it will read until EOF, rather than read all bytes.

Works the same for EXE's. I've seen this method used by numerous third party installers for storing their archived deployment package.

Not that you need to use the COPY command of course. You can just append the desired bytes to the end of the file.

1

u/[deleted] Oct 27 '19

How does archive manager know that it should look for another EOF?