Sign in to follow this  
Followers 0
Trojan55

Rar Hider

10 posts in this topic

Hello Guys, I'm back again I wanted to make a hider for rar i can do it manually but not automatic

Here is my GUI what's the problem?

CMD is still saying FILE NOT FOUND!

:( help me

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("PNG Hider :D", 465, 164, 192, 124)
$Label1 = GUICtrlCreateLabel("Ever wanted to hide a rar file into image with your specified background? here is the solution :)", 8, 8, 446, 17)
$Input1 = GUICtrlCreateInput("Destination of Background", 8, 40, 369, 21)
$Button1 = GUICtrlCreateButton("Browse...", 384, 40, 75, 25)
$Input2 = GUICtrlCreateInput("Destination of RAR FILE", 8, 72, 369, 21)
$Button2 = GUICtrlCreateButton("Browse...", 384, 72, 75, 25)
$Button3 = GUICtrlCreateButton("DO IT NOW!", 176, 135, 75, 25)
$Label2 = GUICtrlCreateInput("The Name OF THE FILE!",8,100,369,21)
$Button4 = GUICtrlCreateButton("Browse...",384,100,75,25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button3
            $bfile = Guictrlread($Input1)
            $rfile = GUICtrlRead($Input2)
            $kfile = GUICtrlRead($Label2)
            $Cmd = "copy /b "&$bfile&" + "&$rfile&" "&$kfile
            ClipPut($Cmd)
            RunWait(@ComSpec & " /k "&$Cmd)
        Case $Button1
            $sfile = FileOpenDialog("hider","C:\","Image File (*.jpg;*.png)","")
            GUICtrlSetData($Input1,$sfile)
        case $Button2
            $dfile = FileOpenDialog("hider","C:\","Archive (*.rar;*.zip;*.tar.gz;*.7z) ","")
            GUICtrlSetData($Input2,$dfile)
        Case $Button4
            $zfile = FileSaveDialog("hider","C:\","Image File (*.png;*.jpg)","")
            GUICtrlSetData($Label2,$zfile&".png")
    EndSwitch
WEnd

Thanks.

Trojan55


Share this post


Link to post
Share on other sites



Here is my GUI what's the problem?

CMD is still saying FILE NOT FOUND!

:( help me

Case $Button3
            $bfile = Guictrlread($Input1)
            $rfile = GUICtrlRead($Input2)
            $kfile = GUICtrlRead($Label2)
            $Cmd = "copy /b "&$bfile&" + "&$rfile&" "&$kfile
            ClipPut($Cmd)
            RunWait(@ComSpec & " /k "&$Cmd)

 

To run DOS commands, try:

RunWait(@ComSpec & " /c " & "commandName")

Share this post


Link to post
Share on other sites

Tried that, not working :/


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try this !

Global $Form1 = GUICreate("PNG Hider :D", 465, 164)
Global $Label1 = GUICtrlCreateLabel("Ever wanted to hide a rar file into image with your specified background? here is the solution :)", 8, 8, 446, 17)
Global $Input1 = GUICtrlCreateInput("Destination of Background", 8, 40, 369, 21)
Global $Button1 = GUICtrlCreateButton("Browse...", 384, 40, 75, 25)
Global $Input2 = GUICtrlCreateInput("Destination of RAR FILE", 8, 72, 369, 21)
Global $Button2 = GUICtrlCreateButton("Browse...", 384, 72, 75, 25)
Global $Button3 = GUICtrlCreateButton("DO IT NOW!", 176, 135, 75, 25)
Global $Label2 = GUICtrlCreateInput("The Name OF THE FILE!", 8, 100, 369, 21)
Global $Button4 = GUICtrlCreateButton("Browse...", 384, 100, 75, 25)
GUISetState()

Local $nMsg
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case -3
            Exit
        Case $Button3
            Local $bfile = GUICtrlRead($Input1)
            Local $rfile = GUICtrlRead($Input2)
            Local $kfile = GUICtrlRead($Label2)
            Local $Cmd = "copy /b " & FileGetShortName($bfile) & " + " & FileGetShortName($rfile) & " " & FileGetShortName($kfile)
            ClipPut($Cmd)
            RunWait(@ComSpec & " /c " & $Cmd)
        Case $Button1
            Local $sfile = FileOpenDialog("hider", "C:\", "Image File (*.jpg;*.png)", "")
            GUICtrlSetData($Input1, $sfile)
        Case $Button2
            Local $dfile = FileOpenDialog("hider", "C:\", "Archive (*.rar;*.zip;*.tar.gz;*.7z) ", "")
            GUICtrlSetData($Input2, $dfile)
        Case $Button4
            Local $zfile = FileSaveDialog("hider", "C:\", "Image File (*.png;*.jpg)", "")
            GUICtrlSetData($Label2, $zfile & ".png")
    EndSwitch
WEnd
Edited by DjForfun

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Still problem ...

Syntaxe...

Edited by Melba23
Posts merged

Share this post


Link to post
Share on other sites

Just to clarify, maybe my old eyes are deceiving me. You're hiding a rar file inside a pic?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

I know the field, we use it a lot on the CEH side. It always throws up a flag for me, curious at the need for such a thing.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I know the field, we use it a lot on the CEH side. It always throws up a flag for me, curious at the need for such a thing.

 

So you can trade child porn, warez, and other illegal stuff on 4chan.  Sure ... there's legitimate uses, but the overwhelming purposes is the prior reasons.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

So you can trade child porn, warez, and other illegal stuff on 4chan.  Sure ... there's legitimate uses, but the overwhelming purposes is the prior reasons.

 

Exactly my point in asking. I would rather be enlightened as to the OP's uses than assume it is something nefarious. :)


√-1 2^3 ∑ π, and it was delicious!

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  
Followers 0