Wednesday, February 8, 2012

How to Hide a .rar File in a JPEG Image File (Using DOS)

The following are instructions on how to hide a .rar file in an image file. This will allow you to display an image on your website, or have an image file on your computer, that when renamed from a jpeg file to a *.rar file, it will be a usable .rar archive.

To do this:

1. Create the .rar archive you want to hide in the jpeg.

2. Locate the jpeg file you want to hide your .rar archive in and ensure that it is located in the same directory as your archive.

3. Open up a Command Prompt session by clicking Start -> Run and typing "cmd".

4. In the DOS window, navigate to your directory containing your archive and jpeg file using the 'cd' command.

5. Type the command:
copy /b input.jpg + input.rar output.jpg
Where you replace input.jpg with the name of the jpeg you want to hide the archive in, input.rar with the name of your .rar archive file, and output.jpg is the desired name of the compined jpeg and .rar file.

When you open the file, you will see the image (originally your jpeg image), but if you open the file with WinRAR or rename the extension to .rar and open it with WinRAR, you will be able to view the files in the archive.