September 8 th

97

How to hide a .rar in a jpeg file

Posted by Andy Bailey
111,154 views

rar in a picHere’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!



Popularity: 100% [?]

Category : Code

Related Posts

  • Animated DIV slide
  • Stumbleupon traffic surge Caught on video..
  • How to extract names and email addresses from your WP database
  • An outsourcing experiment..
  • Text Between Strings PHP
  • Beginners AJAX Tutorial Series Part 3
  • Sneak peak at my new theme

  • Comments

    LadyTerri (1 comments.) September 11, 2007

    Very clever! :)

    Andy Bailey September 11, 2007

    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

    Jonathan (5 comments.) September 16, 2007

    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

    Andy Bailey September 16, 2007

    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..

    Jalaj (20 comments.) September 28, 2007

    A great observation. It never occured to me that WinRAR checks for archive header anywhere within the file instead of usual beginning of file

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

    Andy Bailey September 28, 2007

    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!

    Jalaj (20 comments.) September 28, 2007

    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

    Andy Bailey September 28, 2007

    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!

    @}-- ruby --{@ (1 comments.) November 9, 2007

    wow that is one nice trick, i could very well use that with my other site http://ebooks-tutorials-magz.blogspot.com where i am sharing ebooks free and can be downloaded at free file hosting sites, this could save me from having a deleted links and reuploading again :D thanks man!

    @}– ruby –{@’s last blog post..Happy Birthday Nelda!!!

    Faith (1 comments.) November 9, 2007

    Ooh, that was freaking awesome, thanks for posting it! I love little tricks like that. :D
    Faith’s last blog post..Happy Birthday To Me!

    Andy Bailey November 11, 2007

    @}– ruby –{@ » I never thought of using it like that, good idea!

    Mathew Browne December 17, 2007

    Very cool - I never knew you could do this.

    Mr. Anon January 15, 2008

    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 [code] ATTRIB +S +H name_of_a_folder [/code]. 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 [code] ATTRIB -S -H name_of_a_folder [/code].

    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-

    Andy Bailey January 15, 2008

    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.

    Knoeki (1 comments.) January 15, 2008

    “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.

    Andy Bailey January 15, 2008

    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!

    :-)

    marcus January 16, 2008

    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.

    Dr. evil (2 comments.) January 16, 2008

    Sir why would one need to hide the .rar? Sir, would it be possible: .jpeg has a hidden .rar that has a trojan?

    Dr. evil (2 comments.) January 16, 2008

    Can I use the .jpeg to hide a .rar that contains a trojan….

    Andy Bailey January 16, 2008

    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 )

    Mr. Anon January 16, 2008

    “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-

    Nightcheck January 16, 2008

    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

    Mr. Anon January 16, 2008

    @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…)

    marcus January 16, 2008

    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…

    Edner (1 comments.) January 16, 2008

    Great Tip!

    Edner’s last blog post..A Cachorro Grande não é Rock Gaúcho!

    Grandsinge (1 comments.) January 16, 2008

    C’est quoi ton problème de spammer partout des liens vers le barchezmo ?

    Grandsinge’s last blog post..Motivation!

    Chepech January 16, 2008

    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.

    Andy Bailey January 17, 2008

    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!

    Bull3t (1 comments.) January 22, 2008

    Wow, that could do some unwanted damage… Nice find though.

    Bull3t’s last blog post..Merry Christmas and a happy new year!

    Andy Bailey January 22, 2008

    yes that’s true, it all depends on what you want to achieve. I think there are many benign uses for it though

    Estetik (1 comments.) January 29, 2008

    Good informations.. Thanks.

    Estetik’s last blog post..Bebek Emzirmek ve Göğüsleriniz

    Narayanan Hariharan (1 comments.) February 6, 2008

    this is definitely very useful information! thanks!!

    Narayanan Hariharan’s last blog post..We Remove Vista We Install XP

    Andy Bailey February 6, 2008

    narayanan: I like the picture on your last post! it seems more people are abandoning vista, shame coz I’m about to start selling them on here!

    Narayanan Hariharan (1 comments.) February 9, 2008

    Hey Andy - I believe that’s the case. A lot many people are against Vista but I think that’s more cos ppl are content with XP! :P
    Narayanan Hariharan’s last blog post..We Remove Vista We Install XP

    Matt Nelsen (1 comments.) February 13, 2008

    Tried this out using 7zip, worked fine. Do you know if there is a way to search for images that have these hidden archives?

    jd (1 comments.) February 13, 2008

    Nice tip!!!

    shawn sum (1 comments.) February 14, 2008

    nice tip!

    shawn sum’s last blog post..Love Quotes Part 8

    windows_mss March 1, 2008

    Great job, it’s works for me.

    Jimmy (1 comments.) March 1, 2008

    Video tutorial on how to do it here posted may 8 2007
    http://youtube.com/watch?v=q6AQL55zMR4

    Lex March 1, 2008

    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/

    Andy Bailey March 1, 2008

    Lex: thanks for letting us know. very useful!

    estetik (1 comments.) March 2, 2008

    Very useful information for me. Thanks.

    Fred | Affiliate Video Branding (1 comments.) March 6, 2008

    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

    Adrienne | online affiliate marketing program March 7, 2008

    Hello There,

    Just thought I’d say that was very cool thanks for the tip.

    Tee (3 comments.) March 7, 2008

    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!

    Tee’s last blog post..Breakthrough in Treating Crohn’s Disease

    Andy Bailey March 7, 2008

    tee: it’s useful and I like knowing it but I still haven’t found a legitimate use for it yet!

    otogaz (1 comments.) March 30, 2008

    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!

    Strider April 2, 2008

    @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 ;)

    Andy Bailey April 2, 2008

    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!

    Strider April 2, 2008

    @ 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.

    mr.eims (2 comments.) April 24, 2008

    very interesting.. :)
    Can send hidden stuff to friends without other people suspecting anything.. :)

    Oyunlar (1 comments.) April 28, 2008

    Thanks

    football team pictures (1 comments.) May 3, 2008

    nice article nice site.

    football team picturess last blog post..1

    blah May 19, 2008

    is there a way to split the two files back apart again?

    Andy Bailey May 19, 2008

    blah: I think there probably is a way but I don’t know it sorry

    Dora (1 comments.) May 26, 2008

    I think I have read this post somewhere, but I don’t recall where.

    Doras last blog post..Joke of the day - Sex and bridge

    Maria (1 comments.) May 30, 2008

    Very informative and easy to follow post. Rar and JPG working together.

    Marias last blog post..Grilled shrimps

    araba kiralama (1 comments.) June 12, 2008

    Entresan Thanks…

    Towelie June 20, 2008

    Thanks Andy for this little beauty, and also thanks to Mr. Anon. :)

    simon (1 comments.) June 28, 2008

    quite cool way to hide the win rar inside the picture

    simons last blog post..Carbonate Hardness in your Saltwater Aquarium

    norman (1 comments.) June 28, 2008

    interesting tip and i like find a way to add this to my site

    normans last blog post..Paramobile Power Wheelchair

    Tomas (1 comments.) June 29, 2008

    This might get handy, nice find buddy. I have tried but something turned upside down. I will try again.

    Tomass last blog post..Natural Cure for Anxiety and Depression

    Pierss (2 comments.) July 6, 2008

    It might get handy when I retire from blogging and become hacker …. Ha ha ha . Seriously great post.

    Piersss last blog post..Banana

    dantel (1 comments.) July 6, 2008

    Thanks for the useful information. Best regards.

    dantels last blog post..Spor ve Kadın

    VODKA July 8, 2008

    Nice! With this method you can hide every file you want.
    I hided an mp3 :D

    Jack (1 comments.) July 15, 2008

    Its really a fantastic post and really helping for the new ones in this
    feild like me. Thanks for the great tips.
    http://www.hardwareforce.com

    MCB (1 comments.) July 16, 2008

    Never think this can be done. Nice and very clever tips.

    MCBs last blog post..LG KP215

    Rick (1 comments.) July 18, 2008

    Farily good enough and really appriciatable work dude. It was nice to
    read your post so keep up the nice work. Thanks
    http://www.whyfi.net

    Jone (1 comments.) July 19, 2008

    Good job man and I would like if you keep up the nice work.
    Most of the other blogs I read, were not too much good to read
    but here you have done a great job.
    http://www.intellidesign.info

    Sunny (1 comments.) July 19, 2008

    Thanks for the nice tips.
    http://www.affiliatenetworklinks.com

    Shaun (1 comments.) July 21, 2008

    Keep up the good work man and good luck for all the times.
    http://www.hardwareforce.com

    Tim J (8 comments.) July 28, 2008

    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.

    Busby SEO Challenge (5 comments.) August 2, 2008

    Neat trick. Thanks for sharing it. I also love the drop down welcoming me as a visitor from Google.

    Busby SEO Challenges last blog post..Website Hosting Options

    murat (1 comments.) August 11, 2008
    Paid Online Free Surveys (4 comments.) August 12, 2008

    Cool little trick… something I can take advantage of.

    Estetik (1 comments.) August 13, 2008

    Wow, that could do some unwanted damage… Nice find though.

    Ross August 26, 2008

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

    izwan00 (4 comments.) September 1, 2008

    thats a pretty good idea. Is this applied to other file type too? can I mix other file (let say mp3 file) in image?

    izwan00s last blog post: How to Rank High In Local Search Engines

    kabin (1 comments.) September 1, 2008

    its really good project.

    NJ Web Design (5 comments.) September 6, 2008

    How insidious!NJ Web Designs last blog post..ITCN NJ Web Design and Marketing Launches New Website

    hadi (2 comments.) September 7, 2008

    wow it’s fantastic it’s really amazinghadis last blog post..خصائص تحرك أسعار العملات

    Leave a comment

    17 online now
    the most online was 176
    elottery Ajax commentluv
    Sponsors
    available ad space available ad space available ad space available ad space available ad space available ad space