Raymond.CC Blog
  • Home
  • Forum
  • Giveaway
  • X-Ray 2.0
  • Contact
  • About
  • I’m Feeling Lucky
Search the site...
You are here: Home » Computer » Run EXE Files As JPG, PNG, GIF Or Under Any Different Extension

Run EXE Files As JPG, PNG, GIF Or Under Any Different Extension

Updated by Raymond - 1 year ago - Computer
31
  • Like
  • +1
  • Tweet
  • Printer Friendly and PDF

I am always curious to know if it is possible to run an image file as an executable file. So far I only know about the double extension trick such as file.jpg.exe. If the user enabled “Hide extensions for known file types” in Folder Options, most probably the user will think that it is a JPG image file but in fact the .exe extension is hidden. That’s why the first thing I do after reinstalling Windows is to enable show hidden files and disable hide extensions for known file types.

Few days ago I was going through HackHound forum and found a tool called EXE-Forcer developed by steve10120 which claims to make any file extension execute like an .exe file. Before I run EXE-Forcer, I uploaded it to ThreatExpert to analyze and see what it does. It doesn’t do anything but a few antivirus vendor such as PC Tools, Symantec, McAfee, Sophos and Ikarus always flags it as a Trojan.

I ran it and was presented with a very simple interface with nothing on it. Right clicking on an empty space allows me to add an extension.
EXE-Forcer

So I tried entering .ray extension and it was added to the program but nothing happened. I right click on EXE-Forcer again and this time I found the Build option enabled. So I selected Build and it prompts me to save an exe file to a location. Now I have another suspicious EXE file and since I don’t know what it does, I analyzed the file in ThreatExpert. This time ThreatExpert tells me that the file EXE-Forcer created will add new registry entries. From the looks of the registry modification, it seemed like it was trying to register a new file type to an EXE extension.

I ran the EXE file created by EXE-Forcer, and then I renamed a legitimate .exe file’s extension to .ray. As expected, I was able to run the .ray extension as an application after the registry modification.
Run different extension as EXE

This registry modification is pretty simple. It maps an extension of your choice to application. If you go to File Types tab in Folder Options (Can only be found in XP), you will see that the extension opens with %1.
Hide EXE in Image

EXE-Forcer works but already widely being detected as a malicious tool by most antivirus software. In fact, a simple command line would do the job. Simply type assoc.ray=exefile in command prompt will do what EXE-Forcer does. You can replace the .ray in the command line with any other extension you want to run it as executable. Hope you’ve learned something new today.


Didn't find what you want? The links below could help:

Unable to View Pictures in Archive with 7-ZipUnable to View Pictures in Archive with 7-ZipUse Homedale WLAN monitor to Watch and Log Your WiFi SignalUse Homedale WLAN monitor to Watch and Log Your WiFi SignalMaking iTunes 10 Portable with Spoon Studio 2011Making iTunes 10 Portable with Spoon Studio 2011How to Compare the Difference Between Two Identical Looking ImagesHow to Compare the Difference Between Two Identical Looking Images

31 comments on “Run EXE Files As JPG, PNG, GIF Or Under Any Different Extension”

  1. Paul Olaru says:
    9 months ago

    A nice way to run EXEs as any other extension is by “START ” from a command prompt(Or a batch file). It needs no association, since it uses ShellExecute only if the file is NOT an executable.(Same thing with COMs)

    Reply
  2. Jeniffer says:
    1 year ago

    hi Wolfgang

    Can you share how do you hide a file in jpeg and exec it later.
    thanks

    Reply
  3. bharti says:
    2 years ago

    hey where is the link to exe forcer. please give me if someone have.

    Reply
  4. Wolfgang says:
    2 years ago

    Interesting, I can already hide files inside of an image. And with this i can execute programs when they view those files.

    Reply
  5. David777 says:
    3 years ago

    The purpose is self-protection!!!

    Reply
  6. David777 says:
    3 years ago

    Hi,
    how to make an executable file gives and indication to the receiver as it is a doc file or jpg file
    and keep on running as executable.
    With out being detected by any antivirus.

    thanks

    Reply
  7. David777 says:
    3 years ago

    Hi,
    how to make an executable file gives and indication to the receiver as it is a doc file or jpg file
    and keep on running as executable
    with out being detected from the anti virus

    thanks?

    Reply
  8. gio says:
    3 years ago

    hi,
    how to make an executable file gives and indication to the receiver as it is a doc file or jpg file
    and keep on running as executable

    thanks

    Reply
  9. me says:
    3 years ago

    where can i download this file frome please the link here is dead thanks for you help

    Reply
  10. Ankit says:
    3 years ago

    Dear Sir,

    I am not able to download your program so please provide me link of your software. I want to use it.

    -Blind Hacker

    Reply
  11. Ajay says:
    3 years ago

    hey ur exe forcer concept did nt wrk at all …..i wanted to make .exe server file a jpeg file if somebody cliks it it shud wrk like an exe file…….without gting detected

    waiting for ur reply Raymond thanx in advance

    Reply
  12. Ajay says:
    3 years ago

    hey Raymond still things r difficult to understand …….

    Reply
  13. Ajay says:
    3 years ago

    wt if we want to convert exe to any other extension say jpeg that shud execute on cliking ????

    Raymond i know u wil help me …and one thind the file shud be FUD by Antivirus

    Reply
  14. sunkumarspace says:
    3 years ago

    Curiousity is the mother of all discoveries !!!!

    Reply
  15. fr33mumia says:
    3 years ago

    Owhh nooo, its gonna be hell for us in troublshooting viruses with *.jpg or other file format. =(

    Reply
  16. Mark says:
    3 years ago

    Very interesting! Thanks

    Reply
  17. mamed says:
    3 years ago

    Hi, Rymond for your honeymoon,Chateau D´oex is a nice place in the Vaud Canton.Near Gstaad.Really worth it.
    You can go trekking,canoeing,see the highest mountains,and many other things.
    It´s just a wonderful place to visit.You won´t regret it because it is so beautiful.
    Try to get infiormation from the Swiss consulate and you will see by yourself.
    Cheers.

    Reply
  18. ak says:
    3 years ago

    Sandal King, just go to cmd and write “assoc .ray=”

    Reply
  19. Zak Ember says:
    3 years ago

    not a good tip to teach. This will help trojan droppers :’(

    Reply
  20. KampungBoy says:
    3 years ago

    Woow…such a good info
    I really like it

    Reply
  21. Xiurux says:
    3 years ago

    Oh My God, it is very dangerous, the best solution is to install a program as a shield of the registry to see suspect tentative.

    Reply
  22. lovean says:
    3 years ago

    làm cái này để làm gì hả trời, có ai hiểu chỉ giúp tui coi.
    What’s it? Who can help me?

    Reply
  23. pawtucketjdb says:
    3 years ago

    To answer your implied question, I learn something new every day from your blog. Thanks for sharing Raymond!

    Reply
  24. grage says:
    3 years ago

    another unique tip!!!!!!1

    thnx

    Reply
  25. steve says:
    3 years ago

    This is the type of thing that I joined up for… not for the free software etc but for tips and tricks. Great post!

    Reply
  26. roy raay says:
    3 years ago

    Great tip mate, thanks!

    Reply
  27. Sandal King says:
    3 years ago

    it was gr8.

    but u didnt say how to remove the .ray association once created…..

    Reply
  28. mumin says:
    3 years ago

    Yeah it useful tips to drop trojan or keyloger

    Reply
  29. ha14 says:
    3 years ago

    Thanks for this idea. Does it works on .dll and on registry key in order to make them as .exe so installation will be easier. Sometimes trying to add/fix dll gives error message and possible this .exe methos solve this problem.

    Reply
  30. Swarup87 says:
    3 years ago

    Thanks Ray for this nise articles.

    Reply
  31. Jose Martinez says:
    3 years ago

    Mr Raymond:

    A very interesting post. Maybe useful in the future. Thanks for sharing your knowledge.

    Best Regards,

    Jose Martinez

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recently Updated

  • sniff hidden url

    5 Simple Tools to Display Hidden Remote URLs in Background or Web Installers

  • uac icon

    4 Ways to Disable User Account Control (UAC) for Specific Software in Windows

  • scan shared folder icon

    5 Tools to Scan Connected Computers on the Local Network and Find Shared Folders

New Articles

  • task manager replacement icon

    Memory Usage Test to See Which is the Lightest Antivirus Software

  • kaspersky antivirus 2013 icon

    Activate Free Kaspersky Anti-Virus 2013 ROG with 1 Year License

  • remote access software

    Top 8 Remote Access Software for Providing Online Support

Popular Posts

  • Top 10 FREE Data Recovery Software

    Top 10 FREE Data Recovery Software

  • How to Hack Into a Windows XP Computer Without Changing Password

    How to Hack Into a Windows XP Computer Without Changing Password

  • 10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

    10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

Recommend on Google
Follow @raymond_cc
Subscribe Youtube »
(c) 2013 Raymond.CC Blog
  • Contact
  • Disclaimer
  • Disclosure
  • Privacy Policy
  • Terms of Use
  • Sitemap