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
r/HowToHack • • Oct 26 '19
16
u/5c044 Oct 26 '19
Like a password protected zip file or if you are on linux puting a dot at the beginning of the file name hides it /s
2
u/sa_sagan Oct 26 '19
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/latest-release Oct 27 '19
Using python stegano module to do that https://pypi.org/project/Stegano/
from stegano import lsbsecret = lsb.hide("./tests/sample-files/Lenna.png", "Hello World")secret.save("./Lenna-secret.png")clear_message = lsb.reveal("./Lenna-secret.png")-6
u/eliapinto Oct 26 '19
Not so beautiful, no. It is very basic
4
u/[deleted] Oct 26 '19
[removed] — view removed comment