Click here to Skip to main content
15,886,258 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.1K   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

 
GeneralDoes not work! Pin
Singh Vaibhav29-Jul-14 19:14
Singh Vaibhav29-Jul-14 19:14 
GeneralIDIOT Pin
zuhdizuhdi26-Jan-10 15:55
zuhdizuhdi26-Jan-10 15:55 
Generali'm confused Pin
Gian Isulat30-Aug-08 1:36
Gian Isulat30-Aug-08 1:36 
GeneralRe: i'm confused Pin
shivsmonkey0720-Nov-08 14:22
shivsmonkey0720-Nov-08 14:22 
GeneralRe: i'm confused Pin
hoclovetram20-Jun-11 0:29
hoclovetram20-Jun-11 0:29 
GeneralNot working Pin
badboy10025-Apr-07 16:33
badboy10025-Apr-07 16:33 
GeneralRe: Not working Pin
elixa20-Jul-07 13:46
elixa20-Jul-07 13:46 
NewsI have done my sniper.gif.hta file Pin
sniper_cro2-Feb-07 22:14
sniper_cro2-Feb-07 22:14 
GeneralI made it into a program Pin
vitaloverdose3-Aug-06 14:41
vitaloverdose3-Aug-06 14:41 
QuestionHow execute calc.exe [modified] Pin
Triple1232-Jul-06 5:19
Triple1232-Jul-06 5:19 
AnswerRe: How execute calc.exe Pin
Yogesh Bhat19-Jan-07 18:24
Yogesh Bhat19-Jan-07 18:24 
JokeNice But... Pin
Invisible-boy23-May-06 2:47
Invisible-boy23-May-06 2:47 
Questioni can't use it to merg my exe and run it Pin
hamid_m6-Apr-06 23:05
hamid_m6-Apr-06 23:05 
GeneralRe: This has nothing to do with Steganography - and details Pin
cyber_flash22-Feb-06 5:22
cyber_flash22-Feb-06 5:22 
QuestionWierd Pin
N1NJ4z26-Jan-06 10:07
N1NJ4z26-Jan-06 10:07 
QuestionHow to execute it with arguments Pin
bjfile17-Jan-06 21:19
bjfile17-Jan-06 21:19 
AnswerRe: How to execute it with arguments Pin
cyber_flash9-Jan-06 11:42
cyber_flash9-Jan-06 11:42 
GeneralBut there is problem to implement that into your hide.vbs Pin
bjfile110-Jan-06 10:30
bjfile110-Jan-06 10:30 
Generalnotable to execute the hta file Pin
harish_chk12-Dec-05 23:47
harish_chk12-Dec-05 23:47 
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 

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.