r/HowToHack • • Jul 19 '17

How to hide a file into an image

https://youtu.be/jbu0G-XZuvY
184 Upvotes

10 comments sorted by

14

u/[deleted] Jul 19 '17

nice video I learned something new today but the cmd commands are not visible should have zoomed into cmd. Lastly I have two question

  1. WIll this work in OS other than windows

  2. What happens when we double-click and open jpg file which has the hidden file? Do we get image or the file?

3

u/priyanshugamer64 Jul 20 '17

No it will not work in other OS. And on opening the jpg file, it will open the image. If You want to open the hide file, open in via Winrar.

16

u/GeronimoHero Jul 19 '17
  1. yes there are a lot of steganography methods available on all OS.

  2. you'll get the image.

1

u/josh109 Pentesting Jul 20 '17

Can keyloggers be attached link this? if so I trust no one.

1

u/JPaulMora Jul 20 '17 edited Jul 20 '17

Linux: cat image.png file.zip > new image.png

EDIT: I wrote FileHidder long ago. It works around the same concept but it's a little more complex.

0

u/[deleted] Jul 19 '17

[deleted]

3

u/[deleted] Jul 19 '17

Yep

1

u/TheZeeno Jul 19 '17

yeah aha

0

u/[deleted] Jul 19 '17

[deleted]

6

u/JRMHCNSK Jul 19 '17

How?

2

u/[deleted] Jul 19 '17

Also for Windows based systems, there are Alternate Data Streams. Of course, these only hide stuff, anyone smart enough to look for it is going to get that data back out. If you really want to prevent access, encrypt.

0

u/[deleted] Jul 19 '17

[deleted]

2

u/thekakester Jul 19 '17

This will result in a "corrupt thumbnail" since your original .doc file isn't the same format as an image. A "corrupt" image file will draw a lot more suspicion than merging a file with an existing jpeg file (which keeps the thumbnail)