Jump to content

Rar Hider


Trojan55
 Share

Recommended Posts

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

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

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

  • 4 weeks later...
  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

 

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

Link to comment
Share on other sites

  • Moderators

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. :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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...