Jump to content

Insert A 7 Zip File Into A JPG Image


dnsi
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...