Sunday, November 8, 2009

Hide a RAR file in a JPG file

First you need to have a .rar file and a .jpg image to hide the rar. Let us suppose the jpg is “image.jpg” and the rar is “file.rar”.

Go to Windows command prompt (Start>Run>type cmd and press enter)

Now type this command: copy /b image.jpg + file.rar newfile.jpg

switch “/b” indicates the copy function is binary.
“newfile.jpg” is the resulting image with the rar file embedded (you can use a name of your choice)

That’s all!!

When you click on newfile.jpg the image will be displayed. Now if you change the jpg extension to rar (ie: newfile.rar) and open it with WinRAR the contents of the embedded rar file will be displayed.

The jpg can be replaced with a bmp,png,gif or swf file. The rar archive can be replaced with zip,tar.gz/bz2 or 7z archive. Actually in theory you can use any image format and any archive.

Here are some sample commands:

copy /b image.bmp + file.zip newfile.jpg
copy /b image.gif + file.7z newfile.jpg
copy /b image.png + file.tar.gz newfile.jpg
copy /b image.swf + file.rar newfile.jpg

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo

3 comments:

Alex said...
This comment has been removed by the author.
Bijay Mishra said...

Hmmm !! seems Need a try...Let C

Alex said...

I have many rar files on my PC. And once some of them were crashed on unknown reason. For luck I observed an interesting software, which solved out my trouble and perhaps it has many features for solving other compound problem - rar fix.

Post a Comment

Hey Guys! Thanks for visiting my blog. Hope you enjoy reading. Just leave your comments if you think this post is a worth readable! Your valuable comments are always welcomed. Please don't spam! and No abusive language would be tolerated. I would moderate your feedback and then it would be published. If you have any query I will try to give feedback as soon as possible.