Jump to content
Sign in to follow this  
dnsi

Insert A 7 Zip File Into A JPG Image

Recommended Posts

dnsi

Hello.

I am finally back to autoit forums cause i got board of other languages.

And so ive created this little program here that alows to to put a 7 Zip file into a JPG file and still see the picture!!!

How To Use

Put some files into a 7 Zip file and drag the 7 Zip file into the same folder as the FileHider program.

Get a random JPG file and drag it into the FileHider folder of the FileHider program.

Open FileHider.exe

Put the 7 Zip Filename into the 7 Zip Colum.

Put the JPG Filename into the JPG Colum.

Press Compile.

A batch should pop up.

Wait a few seconds and a new picture will appear called SecretPicture.JPG

This is the picture that has the hidden files. Open the picture and you will see taht its a normal picture.

Right click and goto 7 Zip -> Extract Here and you will get the hidden files.

EXE is included.

And Please Reply...

Edit: Since People want the source here it is:

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("File Hider", 290, 141, 363, 283)
GUICtrlCreateLabel("Put The Archive and The Picture In This Folder.", 8, 8, 290, 17)
GUICtrlCreateLabel("7 Zip Archive Name:", 16, 40, 115, 17)
$ZipArchive = GUICtrlCreateInput("", 128, 40, 145, 21)
GUICtrlCreateLabel("Picture Hide Name:", 16, 72, 115, 17)
$Picture = GUICtrlCreateInput("", 128, 72, 145, 21)
$Button1 = GUICtrlCreateButton("Compile", 16, 104, 73, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $Handle=FileOpen("RunBat.bat",2)
            Filewrite($handle,"@echo off")
            FileWrite($Handle,"copy /b " & GUICtrlRead($Picture) & " + " & GUICtrlRead($ZipArchive) & " SecretPicture.jpg")
            FileClose($handle)
            Run("RunBat.bat")
            sleep(2000)
            FileDelete("RunBat.bat")
    EndSwitch
WEnd

FileHider.exe

Edited by dnsi

Share this post


Link to post
Share on other sites
alex OF DEATH

Post the source.

If it actually works as said, I'm definitely going to use it :)


Share this post


Link to post
Share on other sites
Fossil Rock

No source is needed, it's quite simple to do, in fact it's been around for a long time, a VERY long time.

Hiding files inside graphics.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites
qazwsx

the source is so he knows its not a virus or something bad.

Share this post


Link to post
Share on other sites
JustinReno

Its really easy, i whipped up one myself, it doesnt need a batch file, it executes it right away. Pretty nifty things you can do

Share this post


Link to post
Share on other sites
JustinReno

because Autoit can be used by some people to create viruses, and because it would be very easy to put a virus in your script silently when they run the exe

Share this post


Link to post
Share on other sites
Fossil Rock

It already happens, the program dowloaded a virus from web and runned it.

Are you implying that the OP's attachment has a virus or retrieves one from the web?

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites
Fabry

Are you implying that the OP's attachment has a virus or retrieves one from the web?

Sorry, I'm not English, you can repeat with others words?

I see a post wich there was a virus but I don't remember where.


A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]

Share this post


Link to post
Share on other sites
idusy

Why does everyone think that people post viruses???

People are stupid. People think that because they have script-kiddy viruses they are the leetiest kids on the internet. Exe's can easily contain viruses which are difficult or impossible to detect. On a site that generally promotes open source programs, you have to be extra cautious of those that don't post a source.

Share this post


Link to post
Share on other sites
JustinReno

i agree. :)

Share this post


Link to post
Share on other sites
JustinReno

why not just execute the batch code in there instead of writing it to a file? _Rundos

Share this post


Link to post
Share on other sites
The Sky Heart

this is a better code

thanks to the person who wrote the code

i really don't know him but i remember that i download it from MSFN.ORG

#include <GuiConstants.au3>
#include <Process.au3>

$gui = GuiCreate("Hide Your Files", 400, 150,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GUICtrlCreateLabel('Hide Your File in JPG File', 20, 10, 270)

$config = GuiCtrlCreateInput("", 100, 50, 200, 22)
$configbutton = GuiCtrlCreateButton("Picture", 5, 50, 90, 25)

$7Z = GuiCtrlCreateInput("", 100, 80, 200, 22)
$7zbutton = GuiCtrlCreateButton("Compressed file", 5, 80, 90, 25)

$Output = GuiCtrlCreateInput("", 100, 110, 200, 22)
$Outputbutton = GuiCtrlCreateButton("Output JPG", 5, 110, 90, 25)

$ok = GuiCtrlCreateButton("OK", 320, 50, 70, 30)
$cancel = GuiCtrlCreateButton("Cancel", 320, 100, 70, 30)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    Case $msg = $cancel
        Exit
        
    Case $msg = $configbutton
        $configfilename = FileOpenDialog('Please choose the Picture file...', '', 'Picture files (*.jpg)', 1 + 4 )
        If @error <> 1 Then
        GUICtrlSetData($config, $configfilename)
        EndIf
    Case $msg = $7zbutton
        $7zfilename = FileOpenDialog('Please choose the Compressed file...', '', 'Compressed file (*.7z;*.rar;*.zip)', 1 + 4 )
        GUICtrlSetData($7Z, $7zfilename)
    
    Case $msg = $Outputbutton
        $outfilename = FileSaveDialog('Please choose your output JPG file...', '', 'JPG files (*.jpg)', 1 + 4 )
        $outfilenamereal = GUICtrlSetData($Output, $outfilename & '.jpg')
        
    Case $msg = $ok
    If (StringLen(GUICtrlRead($config)) == 0) Then
            MsgBox(0,"Picture", "JPG File must be chosen!")
            ContinueLoop
        ElseIf (StringLen(GUICtrlRead($7Z)) == 0) Then
            MsgBox(0,".7z" & ".rar" & ".zip", "Compressed file must be chosen!")
            ContinueLoop
        ElseIf (StringLen(GUICtrlRead($Output)) == 0) Then
            MsgBox(0,"Output JPG", "Output JPG must be chosen!")
            ContinueLoop
        EndIf
        GUISetState($gui, @SW_HIDE)
        ExitLoop
    
    Case Else
    ;;;
    EndSelect
WEnd
WinSetState('Hide Your Files', '', @SW_HIDE)
_RunDOS('copy /b ' & '"' & $configfilename & '"' & ' + ' & '"' & $7zfilename & '" ' & '"' & $outfilename & '.jpg' & '"')
;~ FileWrite(@HomeDrive & '\test.txt', $run)
If @error <> 1 Then
MsgBox(0, 'It worked!', 'Woow! It worked!')
EndIf

Exit

Share this post


Link to post
Share on other sites
testingtest

why does this not work with any zip format why .z7

why not .zip .rar

Share this post


Link to post
Share on other sites
The Sky Heart

why does this not work with any zip format why .z7

why not .zip .rar

try the code i posted it will work with ZIP and RAR

Good Luck

Share this post


Link to post
Share on other sites
JustinReno

Really, anykind of zip will go in, maybe even another pic, in another pic.. that would be sorta neat

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×