PDA

View Full Version : Can Ubuntu do this (Windows trick.)



Sunnz
May 19th, 2007, 09:40 AM
Hides files in a picture:

http://www.youtube.com/watch?v=q6AQL55zMR4

I was thinking, this trick might fail if the offending picture is opened on a Linux environment... but I don't have a Windows box to test it now...

But would something like cat hidden.tar.gz >> picture.jpg do?

CarpKing
May 19th, 2007, 09:53 AM
Yes, it most definitely can.


cat picturefile.jpg rarfile.rar > newfilethatisNOTtherarfileorpicturefile.jpg

I've seen hidden .zip files as well; other archive formats probably work too.

tomaszx
May 19th, 2007, 10:07 AM
Ok. it's work but how can I recovery the file from image? :)

Sunnz
May 19th, 2007, 10:09 AM
Wow, you know, it works with pdf as well!!!


cat mul_ing.pdf Archive.zip >> test.pdf

tomaszx:

unzip secret.jpg

or use unrar, gunzip, bunzip2, or tar xf, depends on what compression you use.

pmj
May 19th, 2007, 11:58 AM
Heh, I didn't realize that you could use the command line tools to get the hidden files out. Since file-roller refused to open them, I wrote a script for it.

These hidden files are very popular on some websites, but I guess this "trick" is kind of useless for those that don't visit them.

DoctorMO
May 19th, 2007, 12:48 PM
something like 'tar' something bazaar

Tar isn't a compression format it's an encapsulation format for multiple files. that is why we use the compression bz2, gzip or one of the many other compression tools but they all use tar (stands for tape backup)

CarpKing
May 20th, 2007, 03:50 AM
File Roller opens them fine, too. You just have to change the file extension to whatever archive format you have, and open it with right click --> Open with "Archive Manager."

Mateo
May 20th, 2007, 04:35 AM
I don't understand how this works. this is what I did:


cat sample.txt video.mpg > mypicture.jpg

but the picure stopped working, nor could I open it in file-roller. i'm not understanding how this works i think.

PhatStreet
May 20th, 2007, 04:42 AM
I don't understand how this works. this is what I did:


cat sample.txt video.mpg > mypicture.jpg

but the picure stopped working, nor could I open it in file-roller. i'm not understanding how this works i think.
From the video description:

This works by copying the compressed file in binary mode onto the end of the jpeg images. When the picture is opened, the jpg header says the length of the data and ignores everything below (the hidden zip file). When the compression software like 7-zip opens the picture it looks for compatible compression headers and starts reading the file where-ever those begin.
So you have to start with a JPG and copy to a JPG. Apparently Sunnz got it to work with a PDF as well.

Nice trick. :D

reyfer
May 20th, 2007, 04:49 AM
I'm not sure, but isn't this what Steganography is all about? And there are programs for Linux that do it, like Steghide http://steghide.sourceforge.net/index.php and Stego http://octave-gtk.sourceforge.net/stego/

FuturePilot
May 20th, 2007, 04:52 AM
I don't understand how this works. this is what I did:


cat sample.txt video.mpg > mypicture.jpg

but the picure stopped working, nor could I open it in file-roller. i'm not understanding how this works i think.

You have to do
unzip file_name_here.mpgor .jpg or what ever you hid them in.
You should get something like this

$unzip '/home/nick/Desktop/Not_what_it_looks_like.jpg'
Archive: /home/nick/Desktop/Not_what_it_looks_like.jpg
warning [/home/nick/Desktop/Not_what_it_looks_like.jpg]: 55455 extra bytes at beginning or within zipfile
(attempting to process anyway)
inflating: SoundNotes.ppt
inflating: gdb-gnome-theme-manager.txt
inflating: gdb-f-spot.txt


Hehe this is cool. Basically steganography

JT673
May 20th, 2007, 04:59 AM
Wow, I had no idea!

...Shell script time :)...

reyfer
May 20th, 2007, 05:04 AM
Check Synaptic Package Manager, Ubuntu has Steganography tools on its repositories, you have Outguess, Stegdetect, Steghide and Xsteg.