Jump to content

Help Reading and write exe


Recommended Posts

I see how people do for example crypters and reads stub.exe in autoit

I trying doing with Fake error, but "Stub.exe" broke code and no work. 

Why if put Stub.au3 and FakeError.au3 work but Stub.exe and FakeError.exe no work?

BUILDER

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.14.5
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 225, 254, 193, 124)
$Input1 = GUICtrlCreateInput("TITLE", 0, 56, 193, 21)
$input2 = GUICtrlCreateInput("Line2", 0, 104, 193, 21)
$Input3 = GUICtrlCreateInput("Line3", 0, 128, 193, 21)
$Input4 = GUICtrlCreateInput("Line4", 0, 152, 193, 21)
$Input5 = GUICtrlCreateInput("Line1", 0, 80, 193, 21)
$Input6 = GUICtrlCreateInput("Line7", 0, 224, 193, 21)
$Input7 = GUICtrlCreateInput("Line6", 0, 200, 193, 21)
$Input8 = GUICtrlCreateInput("Line5", 0, 176, 193, 21)
$Label1 = GUICtrlCreateLabel("Test", 56, 16, 25, 17)
$Button1 = GUICtrlCreateButton("Build", 120, 16, 57, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

         Case $Button1
Local $1 = "Global $title = "& Chr(34) &GUICtrlRead($Input1)& Chr(34) & @CRLF
Local $2 = "Global $line1 = "& Chr(34) &GUICtrlRead($Input2)& Chr(34) & @CRLF
Local $3 = "Global $line2 = "& Chr(34) &GUICtrlRead($Input3)& Chr(34) & @CRLF
Local $4 = "Global $line3 = "& Chr(34) &GUICtrlRead($Input4)& Chr(34) & @CRLF
Local $5 = "Global $line4 = "& Chr(34) &GUICtrlRead($Input5)& Chr(34) & @CRLF
Local $6 = "Global $line5 = "& Chr(34) &GUICtrlRead($Input6)& Chr(34) & @CRLF
Local $7 = "Global $line6 = "& Chr(34) &GUICtrlRead($Input7)& Chr(34) & @CRLF
Local $8 = "Global $line7 = "& Chr(34) &GUICtrlRead($Input8)& Chr(34) & @CRLF


Local $sStub = FileRead('Stub.exe')
Local $sNewServer = FileOpen('FakeError.exe', 17)
            FileWrite($sNewServer, $1)
            FileWrite($sNewServer, $2)
            FileWrite($sNewServer, $3)
            FileWrite($sNewServer, $4)
            FileWrite($sNewServer, $5)
            FileWrite($sNewServer, $6)
            FileWrite($sNewServer, $7)
            FileWrite($sNewServer, $8)
            FileWrite($sNewServer,$sStub)
            FileClose($sNewServer)
            MsgBox(64, 'test', 'Fake error created')

    EndSwitch
WEnd

STUB:

MsgBox(64 , $title , @CRLF & $line1 & @CRLF & _
$line2 & @CRLF & _
$line3 & @CRLF & _
$line4 & @CRLF & _
$line5 & @CRLF & _
$line6 & @CRLF & _
$line7 & @CRLF , 8)

 

Link to comment
Share on other sites

  • Moderators

adrieclipse,

Quote

Fake error

Unfortunately you appear to have yet to read the Forum rules. Please read them now - particularly the bit about not discussing spoof scripts - and then you will understand why you will get no help and this thread will now be locked.

If I have misunderstood your intention, please PM me and explain just what you are trying to do.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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