Click here to Skip to main content
15,891,136 members
Articles / Programming Languages / VBScript
Article

Hiding EXE Data Within GIF Data

Rate me:
Please Sign up or sign in to vote.
2.52/5 (11 votes)
21 Feb 2006 211.3K   2.6K   29   44
This script merges "your.gif" and "your.exe" to create "your.gif.hta.gif"

Homer.gif + Calc.exe

Introduction

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

Example

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!

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: notable to execute the hta file Pin
cyber_flash13-Dec-05 1:14
cyber_flash13-Dec-05 1:14 
GeneralHave to change the extension to get it to run the exe Pin
rawiggum13-Oct-05 9:40
rawiggum13-Oct-05 9:40 
GeneralRe: Have to change the extension to get it to run the exe Pin
harish_chk12-Dec-05 23:01
harish_chk12-Dec-05 23:01 
QuestionHow to hide app in task manager(NT) Using VB 6 Pin
Member 221590829-Aug-05 0:14
Member 221590829-Aug-05 0:14 
QuestionQ to cyber_flash ? Pin
loser113-Mar-05 13:11
loser113-Mar-05 13:11 
AnswerRe: Q to cyber_flash ? Pin
cyber_flash14-Mar-05 1:39
cyber_flash14-Mar-05 1:39 
GeneralImage not viewable in all apps. Pin
Disrupted9-Mar-05 10:14
Disrupted9-Mar-05 10:14 
GeneralRe: Image not viewable in all apps. Pin
cyber_flash9-Mar-05 10:39
cyber_flash9-Mar-05 10:39 
True ... but at least it's viewable in IE/Firefox. Wink | ;)
I'll have to investigate why it fails for some apps ... most likely I've violated
the GIF file format comment block.
GeneralBrilliant!!! Pin
totig9-Mar-05 3:26
totig9-Mar-05 3:26 
GeneralRe: Brilliant!!! Pin
mwilliamson9-Mar-05 5:47
mwilliamson9-Mar-05 5:47 
GeneralRe: Brilliant!!! Pin
cyber_flash9-Mar-05 10:40
cyber_flash9-Mar-05 10:40 
GeneralRe: Brilliant!!! Pin
totig9-Mar-05 20:05
totig9-Mar-05 20:05 
GeneralGood Article Pin
Phil Harding9-Mar-05 1:45
Phil Harding9-Mar-05 1:45 
GeneralRe: Good Article Pin
cyber_flash9-Mar-05 10:41
cyber_flash9-Mar-05 10:41 
GeneralRe: Good Article Pin
ZachJ1-Apr-05 18:44
ZachJ1-Apr-05 18:44 
GeneralNever run an executable from the internet Pin
Mark Focas8-Mar-05 11:50
Mark Focas8-Mar-05 11:50 
GeneralRe: Never run an executable from the internet Pin
cyber_flash8-Mar-05 12:30
cyber_flash8-Mar-05 12:30 
GeneralRe: Never run an executable from the internet Pin
ZachJ1-Apr-05 18:38
ZachJ1-Apr-05 18:38 
GeneralRe: Never run an executable from the internet Pin
Anonymous3-Apr-05 16:54
Anonymous3-Apr-05 16:54 
GeneralVirus... Pin
Tad McClellan8-Mar-05 9:04
professionalTad McClellan8-Mar-05 9:04 
GeneralRe: Virus... Pin
cyber_flash8-Mar-05 10:10
cyber_flash8-Mar-05 10:10 
GeneralRe: Virus... Pin
Tad McClellan8-Mar-05 15:04
professionalTad McClellan8-Mar-05 15:04 
QuestionSecurity? Pin
Paul Selormey8-Mar-05 8:04
Paul Selormey8-Mar-05 8:04 
AnswerRe: Security? Pin
cyber_flash8-Mar-05 8:11
cyber_flash8-Mar-05 8:11 

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

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