Thursday, January 26, 2012

Hide rar file into jpg file


First you need to have a RAR file and a JPG image to hide the RAR
Say 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 it 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

3 comments:

  1. Replies
    1. by using this we can hide some secret data into a jpg file.....

      Delete
    2. but if we hide the rar file in f dirve there is an error like the achiver file is in unknown formate or damaged how to solve this

      Delete