How to hide a .rar in a jpeg file

rar in a pic

Here’s some good old instructions that I found to hide a .rar file in a jpeg so that you can open it as either…

  1. Get your .rar file and put it in the same directory as a jpeg picture (c:\hidden is a good place to put it)
  2. Open up a command prompt by clicking Start/Run and typing “cmd” and click ok.
  3. In the DOS window, type “cd c:\hidden” to navigate to the folder
  4. Type “copy /b input.jpg + input.rar ouput.jpg
    (where input jpeg is the picture you want to show, input.rar is the file you want to hide and output.jpg will be the name of the new combined file)

That’s it! You can double click the new file and it will show it as a picture, BUT… if you open it with winrar, you will see the files contained. The picture above has a secret file in it, right click and save picture to your computer and then open it with Winrar to see what I put in there!

0 thoughts on “How to hide a .rar in a jpeg file

  1. Andy Bailey

    I thought so too!
    I was going to put up a similar post a while ago but it involved manually editing a hex code with hexedit but I found this way instead!

    thanks for visiting

     
  2. Jonathan

    Yup its really quite cool. Because I’m chinese I’ll tell you that it is really similar to what they did in the past.

    They hid messages in mooncakes (its a kind of pastry) during the war in the past.

    The two methods basically have the same principle. With the jpg files, you wouldn’t do anything more but view them if the file was not intended for you. With mooncakes, you definitely wouldn’t be opening them up if you were not the intended recipient of it so only the recipient would eat it and find the message.

    Jonathan’s last blog post..Anti-Social Media

     
  3. Andy Bailey

    Isn’t it amazing how technology doesn’t introduce new things, it just changes the way we do them?

    thanks for visiting!

    Andy Bailey’s last blog post..

     
  4. Andy Bailey

    yes, it’s pretty good. there is another way of hiding a zip file within another file but I can’t seem to find where I saw it anywhere! I’ll keep searching and put up the details here if I find it seeing as how many people have come here for this one.

    thanks for visiting!

     
  5. Jalaj

    I just happened to see your wp plugin post. I have added your RSS feed so would be reading you regularly.

    Have you ever worked on RPC for posting to wordpress… I need a simple page that takes title, post content and Categories and posts it to a wordpress blog using RPC… checked the RPC standards pages but could not get any meaningful out of it.

    Jalaj’s last blog post..Drive Slowly : Google Ahead

     
  6. Andy Bailey

    I’ve never heard of RPC but i’ll have a search around and see what it is.

    thanks for subscribing to my feed, I did the same with yours! although, I had to search around a bit for a link, in the end I just added /feed/ to your site name and got it that way

    good ashwin bashing at your blog!

     
  7. Pingback: bloggingzoom.com

  8. Mr. Anon

    Stop publicizing Winrar. It’s proprietary software.

    You can do the same with 7zip files, and 7zip is open source and there’s a portable version of it for Windows, so you can do it (pretty much) anywhere – I know I do.

    Also, another tip for you.

    Go in the command prompt and type

     ATTRIB +S +H name_of_a_folder  

    . The folder will DISAPPEAR, and you won’t be able to find it even if you change the settings to “show hidden files and folders”. There is an option that enables you to see them, but nobody uses it (show protected system files).

    To enter the hidden folder, just type its name on the address bar. To undo this, type

     ATTRIB -S -H name_of_a_folder 

    .

    This won’t have any relevant effect outside Windows (dunno about Macs, but it’s useless on Linux).

    Have a good time hiding your Pr0n and your Captain Planets.

    Anon -out-

     
  9. Andy Bailey

    thanks for your comments but why should I stop publicizing winrar? this post is only a tip for putting files in a jpeg. no big deal.

    normally anonymous commenters get deleted straight away but your message has at least something useful in it.

    don’t know about pr0n though, I’m pretty sure there’s none here and no mention of it anywhere in my posts.

     
  10. Knoeki

    “thanks for your comments but why should I stop publicizing winrar? this post is only a tip for putting files in a jpeg. no big deal.”

    As said before, it is also possible with other apps, not just WinRAR. that’s why.

     
  11. Andy Bailey

    ok, so it’s not an anti-winrar mission you’re on then.. just a pro ‘other’ compressional programs one?

    “give winzip a chance!” ra ra ra!

    :-)

     
  12. Pingback: Retazos de la web del 2008-01-15 (microblogging)

  13. marcus

    Have you gotten this to work on vista? Doesn’t seem to work for me – the two copy together just fine, and the image is still viewable, but winrar thinks the archive is broken. Tried it about four times with different files to no avail.

     
  14. Andy Bailey

    marcus: I haven’t tried it on vista, I’ll fiddle with a vista pc this weekend and try it if I remember

    Dr. Evil: it is possible to put a trojan in the rar, it’s possible to put anything but the person opening it would still have to rename the file with .rar and then open it and finally open the trojan inside so not really a useful way to distribute trojans (unless it’s a picture of one! lol )

     
  15. Mr. Anon

    “ok, so it’s not an anti-winrar mission you’re on then.. just a pro ‘other’ compressional programs one?”

    – More like, pro-open-source.

    ” “give winzip a chance!” ra ra ra! ”

    – lol Doesn’t seem to work with .zip files, but it does with 7z.

    “this post is only a tip for putting files in a jpeg.”

    – Nothing wrong there ~but it also works with other file types (.png .gif, etc…).

    “Have you gotten this to work on vista?”

    Haven’t tried either, but I’d most likely recommend you to upgrade to Windows Xp ~if you won’t make the switch for Ubuntu, that is.

    “don’t know about pr0n though, I’m pretty sure there’s none here and no mention of it anywhere in my posts.”

    Inserted for comedic purposes (aka lulz), no harm intended.
    I’m perfectly aware there’s more usefulness for the System+Hidden attributes than that. i.e. I have a USB flash pen drive loaded with portable apps, a custom autorun.inf file and .ico logo. I made a hidden /System folder with everything and I use another application to quickly launch stuff: Pstart http://pegtop.net/start/ (still looking for a good non-proprietary alternative). No, I don’t like PortableApps.com Suite, even tough it’s Open Source.

    again @ marcus: btw, do you know that new ‘cool’ feature of Vista, where you can search the Start menu just by clicking the Windows key? Pretty useful, hum? ~I’ve been doing it for ages on Xp ;P http://www.launchy.net (open source).

    cheers

    Anon -out-

     
  16. Nightcheck

    Nice tip – I have Vista and it works fine..

    One note that might be helpful to some – Windows provides greater flexibility when naming a file i.e., 2008 Disneyland.jpg (no space between 2008 and Disneyland)- but I believe DOS uses the old naming convention where spaces are not allowed – thus will return a Syntax error if the files you wish to combine/hide/rename have spaces in them.

    So – prior to using your great tip – merely rename them in Windows if they have spaces – and all is well.
    Thanks again..
    Nightcheck

     
  17. Mr. Anon

    @Nightcheck

    PROTIP: instead of

    : copy 2008 Disneyland.jpg randomfoldername:

    try

    : copy “2008 Disneylang.jpg” randomfoldername :

    slam! problem solved.

    About Vista – I’ll never accept intrusive system-wide forced DRM. I won’t get it until there’s a properly hacked version out there (no DRM, no ‘Security’ popups everywhere, etc…).

    Don’t get me wrong, tough – it’s not about IRL monies. The college I go to has a protocol with Microsoft that sums up to free Micro$oft Software for evry1. (Free Windows 2000-to-Vista and MS Office licenses, SDKs, MS database servers, you name it…)

     
  18. marcus

    By mentioning Vista, I definitely wasn’t intending to advocate it. If Linux ever catches up to the big two in application support and otherwise (read, I’m a computer geek, but between school and work I don’t have enough time to be THAT much of a computer geek) I’d love to keep it around, but until then, I have a macbook for work, and just bought a little desktop system with vista so that I don’t offend and incur the wrath of the great lord Bill of Microsoftia.

    Upgrading to XP would require doing things… things I said I would never do again…

     
  19. Pingback: Les Lavigueur - la vraie histoire : Video drole image comique jeux photo fun

  20. Chepech

    This old trick we use at my office to hide MP3 and AVIs from security scans on my company network (My company considers mp3 a security threat… no comments). Since the scan robots only check for the first file header they found the trick is to merge them in the correct order, JPG first and then the MP3 or AVI. If you do it backwards it doesn’t work.

     
  21. Andy Bailey

    Mr anon: thanks for clearing that up

    nightcheck: thanks for the vista tip!

    Marcus: I know what you mean, those dirty little xp maneuvers!

    Grandsinge: S’il vous plaît dites-moi ce que spammeur liens vous parlez?

    Chepech: how clever!

     
  22. Pingback: Hiding Files in Pictures « Interesting Technologies

  23. Pingback: Matt Nelsen » del.icio.us Bookmarks for January 21st through February 13th

  24. Pingback: 李杰的博客 » Blog Archive » 如何在JPG文件中隐藏一个exe文件

  25. Pingback: 李杰的博客 » Blog Archive » 如何在JPG文件中隐藏一个exe文件

  26. Pingback: purrl.net

  27. Pingback: Web 2.0 Announcer

  28. Pingback: Metaholic » How to hide a .rar in a jpeg file

  29. Lex

    Matt @ 41 –
    MP3check is a cross-platform command line utility which lets you check arbitrary files for MP3 content, including concatenated files using these command prompt options:
    mp3check -c -N –no-summary –reject=mp3 *.*
    (Start Accessories Command Prompt)

    In notepad, you can create a batch file (mpchk.bat) on the desktop, and drop suspect file(s) on it:
    mp3check -c -N –no-summary –reject=mp3 %1
    pause

    To install mp3check, just unzip MP3CHECK.EXE(and CYGWIN1.DLL if you don’t have Cygwin installed) into your c:\windows\system32 directory (or wherever you put %SystemRoot%\system32). Get it here: jo.ath.cx/soft/mp3check/

     
  30. Fred

    This is a pretty neat way to send a hidden message. If you find the Zip IN a Zip deal thet would be even better. I’ll check back. Fred

     
  31. Pingback: » Animated DIV slide > FiddyP

  32. Pingback: » Stumbleupon traffic surge Caught on video.. > FiddyP

  33. Pingback: Useful Links

  34. otogaz

    This is just brilliant!
    I don’t have a real need for it, but it is one of those cool nerdy tips that are just fun to know!

     
  35. Strider

    @Andy Bailey
    Andy I created such an embedded jpeg using RAR, then analysed that file using Forensic Tool Kit(FTK) analyzer. But I couldnt find any change in the header of original jpeg and jpeg created after.
    Do u have any idea about how this trick really works, i mean behind the scenes ;)

     
  36. Andy Bailey

    strider: I don’t know exactly how it works but something similar I saw just attached the new file at the end of the original file, no headers were changed because the archive program looks for the correct headers for an archive at the beginning of the file but if it doesn’t see any, it keeps searching through the file until it finds them. just a guess, but that could be why your don’t see any change of headers in the jpeg…

    otogaz: that’s exactly what I thought when I saw it first!

     
  37. Strider

    @ Andy Bialey:
    THnx for ur reply. but jus in case u happen to find something more on how this works dont forget to post it [:)], n i’ll do the same.

     
  38. Pingback: open rar files

  39. Pingback: rar file how to open

  40. Tim J

    So could this help in uploading a “jpeg” to a free image hosting site and then download the zip instead? They usually cap the file size @ 2MB or so so it won’t help too much but still a cool idea.

     
  41. Pingback: programs for opening jpeg files

  42. Ross

    That’s pretty cool I’ll remember this and use it when i need to send sensitive information in a not-so-obvious way.

     
  43. ankara evden eve

    Transport zum Ziel Nutzung moderner Technologien, einen hohen Standard Service, den Sie.Destan Tranport Besitz Professional Personal, Fahrzeug und Ausrüstung.Zufriedenheit der Kunden ist besonders wichtig für uns.

     
  44. estetik

    The two methods basically have the same principle. With the jpg files, you wouldn’t do anything more but view them if the file was not intended for you. With mooncakes, you definitely wouldn’t be opening them up if you were not the intended recipient of it so only the recipient would eat it and find the message.

     
  45. estetik

    Go in the command prompt and type

     ATTRIB +S +H name_of_a_folder 

    . The folder will DISAPPEAR, and you won’t be able to find it even if you change the settings to “show hidden files and folders”. There is an option that enables you to see them, but nobody uses it .

     
  46. Hector

    on linux you can do this by typing:
    cat archive.rar >> img.jpg
    where archive.rar is your rar file and img.jpg is your jpg

     
  47. estetik

    I have a USB flash pen drive loaded with portable apps, a custom autorun.inf file and .ico logo. I made a hidden /System folder with everything and I use another application to quickly launch stuff:

     
  48. Plastik Estetik

    Hi, I just searched google for “Insurance”, and your site came up. This is really nice material, this is really really usefull. Thanks. I’m sure a lot of people can use this, nice done, I’m going to bookmark your site, because this is really something to save. Nice! Bye

     
  49. Pingback: How to hide .rar files in a .jpg file - Download and Watch Movies For Free-MMOVP

  50. Pingback: 神奇的图片 » 林博客