Click here to Skip to main content
11,577,507 members (34,494 online)
Click here to Skip to main content

Hiding EXE Data Within GIF Data

, 21 Feb 2006 157.2K 1.7K 27
Rate this:
Please Sign up or sign in to vote.
This script merges "your.gif" and "your.exe" to create "your.gif.hta.gif"

Homer.gif + Calc.exe


The goal of this vbscript is to hide EXE data within a GIF image.
The above Homer picture actually contains the Windows calculator. (calc.exe)

The EXE data is stored within a newly generated GIF comment block.

GIF Comment Block


If you'd like to create your own examples, simply goto a run prompt and type:

cscript.exe hide.vbs your.gif your.exe

The script merges "your.gif" and "your.exe" to create "your.gif.hta.gif", which correctly displays using the IE browser. If the 'Hide extension for known file types' option is enabled, which is the default setting, the "Save Picture As..." will download "your.gif", it's really "your.gif.hta". (Example: Right-click and Save Homer)

Microsoft described an HTA as running much like an EXE file.

Good Luck!


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralDoes not work! Pin
Singh Vaibhav29-Jul-14 19:14
memberSingh Vaibhav29-Jul-14 19:14 
GeneralIDIOT Pin
zuhdizuhdi26-Jan-10 15:55
memberzuhdizuhdi26-Jan-10 15:55 
Generali'm confused Pin
Gian Isulat30-Aug-08 1:36
memberGian Isulat30-Aug-08 1:36 
GeneralRe: i'm confused Pin
shivsmonkey0720-Nov-08 14:22
membershivsmonkey0720-Nov-08 14:22 
GeneralRe: i'm confused Pin
hoclovetram20-Jun-11 0:29
memberhoclovetram20-Jun-11 0:29 
GeneralNot working Pin
badboy10025-Apr-07 16:33
memberbadboy10025-Apr-07 16:33 
GeneralRe: Not working Pin
elixa20-Jul-07 13:46
memberelixa20-Jul-07 13:46 
NewsI have done my sniper.gif.hta file Pin
sniper_cro2-Feb-07 22:14
membersniper_cro2-Feb-07 22:14 
GeneralI made it into a program Pin
vitaloverdose3-Aug-06 14:41
membervitaloverdose3-Aug-06 14:41 
QuestionHow execute calc.exe [modified] Pin
Triple1232-Jul-06 5:19
memberTriple1232-Jul-06 5:19 
AnswerRe: How execute calc.exe Pin
Yogesh Bhat19-Jan-07 18:24
memberYogesh Bhat19-Jan-07 18:24 
JokeNice But... Pin
Invisible-boy23-May-06 2:47
memberInvisible-boy23-May-06 2:47 
Questioni can't use it to merg my exe and run it Pin
hamid_m6-Apr-06 23:05
memberhamid_m6-Apr-06 23:05 
GeneralRe: This has nothing to do with Steganography - and details Pin
cyber_flash22-Feb-06 5:22
membercyber_flash22-Feb-06 5:22 
QuestionWierd Pin
N1NJ4z26-Jan-06 10:07
memberN1NJ4z26-Jan-06 10:07 
QuestionHow to execute it with arguments Pin
bjfile17-Jan-06 21:19
memberbjfile17-Jan-06 21:19 
AnswerRe: How to execute it with arguments Pin
cyber_flash9-Jan-06 11:42
membercyber_flash9-Jan-06 11:42 
GeneralBut there is problem to implement that into your hide.vbs Pin
bjfile110-Jan-06 10:30
memberbjfile110-Jan-06 10:30 
Generalnotable to execute the hta file Pin
harish_chk12-Dec-05 23:47
memberharish_chk12-Dec-05 23:47 
GeneralRe: notable to execute the hta file Pin
cyber_flash13-Dec-05 1:14
membercyber_flash13-Dec-05 1:14 
GeneralHave to change the extension to get it to run the exe Pin
rawiggum13-Oct-05 9:40
memberrawiggum13-Oct-05 9:40 
GeneralRe: Have to change the extension to get it to run the exe Pin
harish_chk12-Dec-05 23:01
memberharish_chk12-Dec-05 23:01 
QuestionHow to hide app in task manager(NT) Using VB 6 Pin
satheesh.sankranthi29-Aug-05 0:14
membersatheesh.sankranthi29-Aug-05 0:14 
QuestionQ to cyber_flash ? Pin
loser113-Mar-05 13:11
memberloser113-Mar-05 13:11 
AnswerRe: Q to cyber_flash ? Pin
cyber_flash14-Mar-05 1:39
membercyber_flash14-Mar-05 1:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150603.1 | Last Updated 21 Feb 2006
Article Copyright 2005 by cyber_flash
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid