How to hide a .rar in a jpeg file

Tags:
107,979 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% [?]

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags: , , , ,

Print This Post Print This Post

Related Posts

  • Animated DIV slide
  • Stumbleupon traffic surge Caught on video..
  • How to extract names and email addresses from your WP database
  • Text Between Strings PHP
  • Beginners AJAX Tutorial Series Part 3
  • How to stop spam blogs from hotlinking your images with htaccess
  • Write text to a .png with php
  • 80 Responses to “How to hide a .rar in a jpeg file”

    1. 1
      LadyTerri (1 comments.) Says:
      MyAvatars 0.2

      Very clever! :)

    2. 2
      Andy Bailey Says:
      MyAvatars 0.2

      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

    3. 3
      Jonathan (5 comments.) Says:
      MyAvatars 0.2

      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

    4. 4
      Andy Bailey Says:
      MyAvatars 0.2

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

    5. 5
      Jalaj (20 comments.) Says:
      MyAvatars 0.2

      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

    6. 6
      Andy Bailey Says:
      MyAvatars 0.2

      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!

    7. 7
      Jalaj (20 comments.) Says:
      MyAvatars 0.2

      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

    8. 8
      Andy Bailey Says:
      MyAvatars 0.2

      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!

    9. 9
      @}-- ruby --{@ (1 comments.) Says:
      MyAvatars 0.2

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

    10. 10
      Faith (1 comments.) Says:
      MyAvatars 0.2

      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!

    11. 11
      Andy Bailey Says:
      MyAvatars 0.2
      @}– ruby –{@ » I never thought of using it like that, good idea!
    12. 12
      Mathew Browne Says:
      MyAvatars 0.2

      Very cool - I never knew you could do this.

    13. 13
      bloggingzoom.com Says:
      MyAvatars 0.2

      How to hide a .rar in a jpeg file > FiddyP…

      Here’s a great way of hiding files within files without the need of any special software. just open a cmd window and you’re ready to go!

      this will show you how to put files in a .rar archive and disguise it as a jpeg image.

      perfect for hiding thos…

    14. 14
      Mr. Anon Says:
      MyAvatars 0.2

      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-

    15. 15
      Andy Bailey Says:
      MyAvatars 0.2
      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.

    16. 16
      Knoeki (1 comments.) Says:
      MyAvatars 0.2

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

    17. 17
      Andy Bailey Says:
      MyAvatars 0.2
      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!

      :-)

    18. 18
      Retazos de la web del 2008-01-15 (microblogging) | hombrelobo, una mente dispersa Says:
      MyAvatars 0.2

      [...] 1 - » How to hide a .rar in a jpeg file > FiddyP [...]

    19. 19
      marcus Says:
      MyAvatars 0.2

      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.

    20. 20
      Dr. evil (2 comments.) Says:
      MyAvatars 0.2

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

    21. 21
      Dr. evil (2 comments.) Says:
      MyAvatars 0.2

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

    22. 22
      Andy Bailey Says:
      MyAvatars 0.2
      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 )

    23. 23
      Mr. Anon Says:
      MyAvatars 0.2

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

    24. 24
      Nightcheck Says:
      MyAvatars 0.2

      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

    25. 25
      Mr. Anon Says:
      MyAvatars 0.2

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

    26. 26
      marcus Says:
      MyAvatars 0.2

      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…

    27. 27
      Edner (1 comments.) Says:
      MyAvatars 0.2

      Great Tip!

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

    28. 28
      Les Lavigueur - la vraie histoire : Video drole image comique jeux photo fun Says:
      MyAvatars 0.2

      [...] Gibson (s’accorde toute seule) Profitez de la paresse de vos confrères/consoeurs de travail Comment cacher un .rar dans un jpeg (pour geek seulement) Les espèces animales les plus [...]

    29. 29
      Grandsinge (1 comments.) Says:
      MyAvatars 0.2

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

      Grandsinge’s last blog post..Motivation!

    30. 30
      Chepech Says:
      MyAvatars 0.2

      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.

    31. 31
      Andy Bailey Says:
      MyAvatars 0.2
      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!

    32. 32
      Bull3t (1 comments.) Says:
      MyAvatars 0.2

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

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

    33. 33
      Andy Bailey Says:
      MyAvatars 0.2
      yes that’s true, it all depends on what you want to achieve. I think there are many benign uses for it though
    34. 34
      Estetik (1 comments.) Says:
      MyAvatars 0.2

      Good informations.. Thanks.

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

    35. 35
      Narayanan Hariharan (1 comments.) Says:
      MyAvatars 0.2

      this is definitely very useful information! thanks!!

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

    36. 36
      Andy Bailey Says:
      MyAvatars 0.2
      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!
    37. 37
      Narayanan Hariharan (1 comments.) Says:
      MyAvatars 0.2

      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

    38. 38
      Hiding Files in Pictures « Interesting Technologies Says:
      MyAvatars 0.2

      [...] clipped from http://www.fiddyp.co.uk [...]

    39. 39
      Matt Nelsen (1 comments.) Says:
      MyAvatars 0.2

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

    40. 40
      jd (1 comments.) Says:
      MyAvatars 0.2

      Nice tip!!!

    41. 41
      Matt Nelsen » del.icio.us Bookmarks for January 21st through February 13th Says:
      MyAvatars 0.2

      [...] » How to hide a .rar in a jpeg file > FiddyP - Would be interesting to see if there is a way to search for pictures that had stuff hidden in them [...]

    42. 42
      shawn sum (1 comments.) Says:
      MyAvatars 0.2

      nice tip!

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

    43. 43
      windows_mss Says:
      MyAvatars 0.2

      Great job, it’s works for me.

    44. 44
      李杰的博客 » Blog Archive » 如何在JPG文件中隐藏一个exe文件 Says:
      MyAvatars 0.2

      [...] VIA  随机文章:应该看的一些片子离合器2006-Ubuntu年免费的Flash钟表网站播放器测试 [...]

    45. 45
      李杰的博客 » Blog Archive » 如何在JPG文件中隐藏一个exe文件 Says:
      MyAvatars 0.2

      [...] VIA 随机文章:倒影图片安装酷酷的mac tiger风格的主题及时倒掉你身边的烟灰缸感动中国十大动物啰唆 [...]

    46. 46
      purrl.net |** urls that purr **| Says:
      MyAvatars 0.2

      This is one of the web’s most interesting stories on Sat 1st Mar 2008…

      These are the web’s most talked about URLs on Sat 1st Mar 2008. The current winner is …..

    47. 47
      Web 2.0 Announcer Says:
      MyAvatars 0.2

      » How to hide a .rar in a jpeg file > FiddyP…

      [...][...]…

    48. 48
      Jimmy (1 comments.) Says:
      MyAvatars 0.2

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

    49. 49
      Metaholic » How to hide a .rar in a jpeg file Says:
      MyAvatars 0.2

      [...] [view original post] [source: Delicious] March 1, 2008 | In links [...]

    50. 50
      Lex Says:
      MyAvatars 0.2

      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/

    51. 51
      Andy Bailey Says:
      MyAvatars 0.2
      Lex: thanks for letting us know. very useful!
    52. 52
      estetik (1 comments.) Says:
      MyAvatars 0.2

      Very useful information for me. Thanks.

    53. 53
      Fred | Affiliate Video Branding (1 comments.) Says:
      MyAvatars 0.2

      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

    54. 54
      » Animated DIV slide > FiddyP Says:
      MyAvatars 0.2

      [...] « How to hide a .rar in a jpeg file Are you artistic or logic - Maybe both…stumbled this.. [...]

    55. 55
      » Stumbleupon traffic surge Caught on video.. > FiddyP Says:
      MyAvatars 0.2

      [...] start a trickle of Stumbleupon traffic to an article I have written or seen elsewhere such as the Hide a rar file in a jpeg. I saw it on a blog completely obliterated with adsense blocks so I decided to reprint it here in a [...]

    56. 56
      Adrienne | online affiliate marketing program Says:
      MyAvatars 0.2

      Hello There,

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

    57. 57
      Tee (3 comments.) Says:
      MyAvatars 0.2

      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

    58. 58
      Andy Bailey Says:
      MyAvatars 0.2
      tee: it’s useful and I like knowing it but I still haven’t found a legitimate use for it yet!
    59. 59
      Useful Links | My two pennies Says:
      MyAvatars 0.2

      [...] Link: http://www.fiddyp.co.uk/how-to-hide-a-rar-in-a-jpeg-file/ [...]

    60. 60
      otogaz (1 comments.) Says:
      MyAvatars 0.2

      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!

    61. 61
      Strider Says:
      MyAvatars 0.2

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

    62. 62
      Andy Bailey Says:
      MyAvatars 0.2
      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!

    63. 63
      Strider Says:
      MyAvatars 0.2

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

    64. 64
      mr.eims (2 comments.) Says:
      MyAvatars 0.2

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

    65. 65
      Oyunlar (1 comments.) Says:
      MyAvatars 0.2

      Thanks

    66. 66
      football team pictures (1 comments.) Says:
      MyAvatars 0.2

      nice article nice site.

      football team picturess last blog post..1

    67. 67
      open rar files Says:
      MyAvatars 0.2

      [...] good old instructions that I found to hide a .rar file in a jpeg so that you can open it as either??http://www.fiddyp.co.uk/how-to-hide-a-rar-in-a-jpeg-file/How do I open a RAR file?Step by step guide teaching you how to open a rar [...]

    68. 68
      blah Says:
      MyAvatars 0.2

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

    69. 69
      Andy Bailey Says:
      MyAvatars 0.2
      blah: I think there probably is a way but I don’t know it sorry
    70. 70
      Dora (1 comments.) Says:
      MyAvatars 0.2

      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

    71. 71
      Maria (1 comments.) Says:
      MyAvatars 0.2

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

      Marias last blog post..Grilled shrimps

    72. 72
      araba kiralama (1 comments.) Says:
      MyAvatars 0.2

      Entresan Thanks…

    73. 73
      rar file how to open Says:
      MyAvatars 0.2

      [...] good old instructions that I found to hide a .rar file in a jpeg so that you can open it as either??http://www.fiddyp.co.uk/how-to-hide-a-rar-in-a-jpeg-file/WikiAnswers - How do you open rar file in operating system windowsConsumer Electronics question: how [...]

    74. 74
      Towelie Says:
      MyAvatars 0.2

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

    75. 75
      simon (1 comments.) Says:
      MyAvatars 0.2

      quite cool way to hide the win rar inside the picture

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

    76. 76
      norman (1 comments.) Says:
      MyAvatars 0.2

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

      normans last blog post..Paramobile Power Wheelchair

    77. 77
      Tomas (1 comments.) Says:
      MyAvatars 0.2

      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

    78. 78
      Pierss (2 comments.) Says:
      MyAvatars 0.2

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

      Piersss last blog post..Banana

    79. 79
      dantel (1 comments.) Says:
      MyAvatars 0.2

      Thanks for the useful information. Best regards.

      dantels last blog post..Spor ve Kadın

    80. 80
      VODKA Says:
      MyAvatars 0.2

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

    Leave a Reply

    Blog Comment Policy
    I encourage comments on this blog and really appreciate people taking the time to add to the discussion. I use dofollow and CommentLuv so there is more incentive to leave relevant comments. However, comments that are made for the sole purpose of getting a link back to your site or using key words or phrases as your name will have the url and last blog post removed. Anonymous comments are welcome but only if they contribute to the discussion. You are fine to disagree with my post, but being rude to me or other people that comment will see your comment removed and your IP banned.