Hüber TuT: Creat a Trainer [ENG]

07/05/2012 16:51 Trahison#1
This topic is made for learning... Don't Copy/Paste without autorisation..
If you see an error, report him please.
A thanks cost nothing.

♣Contents♣

-Chapter 1 => Koda
-Chapter 2 => Values
-Chapter 3 => Create a Cheat
-Chapter 4 => Anti-detect
-Chapter 5 => Finish the Trainer



♣Needed♣


-[Only registered and activated users can see links. Click Here To Register...]
-[Only registered and activated users can see links. Click Here To Register...]
-[Only registered and activated users can see links. Click Here To Register...]
-[Only registered and activated users can see links. Click Here To Register...] (to be add into AutoIt3\Include )
-[Only registered and activated users can see links. Click Here To Register...]
-YourBrain.exe


†Koda†

Open a new .au3 script
[Only registered and activated users can see links. Click Here To Register...]

Open the script and click "Tool => Koda(from designer)
[Only registered and activated users can see links. Click Here To Register...]

When koda is open, click at the blocked square, do a checkbox and click OK.
[Only registered and activated users can see links. Click Here To Register...]

Press F9 => insert into scite
[Only registered and activated users can see links. Click Here To Register...]

†Values†

start undeteced tool (Admin)
Press "Abrir Archivo"
choose s4tomate and press open
[Only registered and activated users can see links. Click Here To Register...]

Press OK now
[Only registered and activated users can see links. Click Here To Register...]

Launch S4League, When HGWC is at 99%, press susped.
Search values for Camhack (90 Float)
Select Values (90 Float) and copy them to Notepad

†Creat a cheat†

Now, you need to use your brain!

First, open your .au3 script

Source code is:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Checkbox1 GUICtrlCreateCheckbox("Camhack"136249717)
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd 
Add this line:

PHP Code:
#include <NomadMemory.au3> 
If you want your cheat auto-launch into admin mode, add:

PHP Code:
#RequireAdmin 
That give us:

PHP Code:
#RequireAdmin
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Checkbox1 GUICtrlCreateCheckbox("Camhack"136249717)
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd 
Now While:

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Add this:

PHP Code:
Case $Button1
cheat
()
Exit 
That give us:

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
                 Case 
$Button1
                           cheat
()
                        Exit

    EndSwitch
WEnd 
Now we add:

PHP Code:
Func cheat()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
Sleep (2000
Func cheat() allow Start button to work.
ToolTip("Waiting S4League", 0, 0) told to user where is the cheat (here, he wait..)
ProcessWait("S4Client.exe") The cheat wait S4Client.exe to be opened.
$PID = ProcessExists("S4Client.exe") Start
Sleep(500) Wait 0,5 seconds
$OPEN = _MEMORYOPEN($PID) Open PID Memory.
Sleep(2000) Wait 2 seconds

Now we have that:

PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Form1 GUICreate("Form1"625443192124)
$Checkbox1 GUICtrlCreateCheckbox("Camhack"136249717)
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Bbutton 1
            cheat
()
            Exit
        
    EndSwitch
WEnd

Func cheat
()
 
ToolTip("Wainting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
Sleep (2000
Now we add:

PHP Code:
If GUICtrlRead ($Camhack) = 1 Then
 _MEMORYWRITE
(0xADREES$OPEN"564""Float")
EndIf 
At the place of ADRSS you'll write the adress of the camhack: 00EBD28C

/!\DON'T FORGET 0x BEFORE NEW ADRESS/!\

$CHANGE, "564" Change the first adress (90) into 564.

Add
PHP Code:
Endfunc 
at the end of the fuction.

That give you:

PHP Code:
Func cheat()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
Endfunc 
†Anti-Detect†

That's your code now:

PHP Code:
#RequireAdmin 
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Form1 GUICreate("Form1"625443192124) ; titre du cheat
$Checkbox1 
GUICtrlCreateCheckbox("camhack"136249717) ; chexkbox
$Button1 
GUICtrlCreateButton("Start"152647525$WS_GROUP) ; le start
GUISetState
(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1 ; case start
            cheat
() ; Func cheat
            
Exit  ; ferme le cheat
        
    
EndSwitch
WEnd

Func cheat
()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
Endfunc 
For XTrap, you add:

PHP Code:
$OPEN _MEMORYOPEN($PID
_processsuspend("Aegis.exe") ; Suspend Aegis
_processsuspend
("Aegis64.exe") ; Suspend Aegis64
_processsuspend
("HGWC.exe") ; Suspend HGWC
_processsuspend
("S4Client.exe") ; Suspend S4League
_processsuspend
("XTrap.xt") ; Suspend Xtrap
 Sleep
(2000) ; Waiting 2seconds... 
That give us:

PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Form1 GUICreate("Form1"625443192124
$Checkbox1 GUICtrlCreateCheckbox("camhack"136249717
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1  
            cheat
()  
            Exit  
        
    EndSwitch
WEnd 

Func cheat
()
 
ToolTip("Wainting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
Endfunc 
But.. _processsuspend donc work without this:
PHP Code:
Func _processsuspend($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtSuspendProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc 
Now we are here:

PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Form1 GUICreate("Form1"625443192124
$Checkbox1 GUICtrlCreateCheckbox("camhack"136249717
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1  
            cheat
()  
            Exit  
        
    EndSwitch
WEnd 

Func cheat
()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
Endfun

Func _processsuspend
($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtSuspendProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc 
Now:
PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3> ; ouvrir la memoire
$Form1 GUICreate("Form1"625443192124
$Checkbox1 GUICtrlCreateCheckbox("camhack"136249717
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1  
            cheat
()  
            Exit  
        
    EndSwitch
WEnd 

Func cheat
()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
 
_memoryclose(ProcessExists("S4Client.exe"))
 
_processresume("Aegis.exe")
 
_processresume("Aegis64.exe")
 
_processresume("HGWC.exe")
 
_processresume("S4Client.exe")
 
_processresume("XTrap.xt")
 Exit 
0
Endfunc 

Func _processsuspend
($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtSuspendProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc 
Add that for Func:

PHP Code:
Func _PROCESSRESUME($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then 
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtResumeProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc 
Finally we have:

PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3> ; ouvrir la memoire
$Form1 GUICreate("Form1"625443192124
$Checkbox1 GUICtrlCreateCheckbox("camhack"136249717
$Button1 GUICtrlCreateButton("Start"152647525$WS_GROUP)
GUISetState(@SW_SHOW)
While 
1
    $NMSG 
GUIGetMsg()
    Switch 
$NMSG
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1  
            cheat
()  
            Exit  
        
    EndSwitch
WEnd 

Func cheat
()
 
ToolTip("Waiting S4League"00)
 
ProcessWait("S4Client.exe")
 
$PID ProcessExists("S4Client.exe")
 
Sleep(500)
 
$OPEN _MEMORYOPEN($PID)
_processsuspend("Aegis.exe")
_processsuspend("Aegis64.exe")
_processsuspend("HGWC.exe")
_processsuspend("S4Client.exe")
_processsuspend("XTrap.xt")
Sleep (2000)
        If 
GUICtrlRead ($checkbox1) = 1 Then
        _MEMORYWRITE
(0x00EBD28C$OPEN"564""Float")
EndIf
 
_memoryclose(ProcessExists("S4Client.exe"))
 
_processresume("Aegis.exe")
 
_processresume("Aegis64.exe")
 
_processresume("HGWC.exe")
 
_processresume("S4Client.exe")
 
_processresume("XTrap.xt")
 Exit 
0
Endfunc 

Func _PROCESSSUSPEND
($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtSuspendProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc
;tuto by 0cheatero0



Func _PROCESSRESUME
($PROCESS)
 
$PROCESSID ProcessExists($PROCESS)
 If 
$PROCESSID Then
  $AI_HANDLE 
DllCall("kernel32.dll""int""OpenProcess""int"2035711"int"False"int"$PROCESSID)
  
$I_SUCESS DllCall("ntdll.dll""int""NtResumeProcess""int"$AI_HANDLE[0])
  
DllCall("kernel32.dll""ptr""CloseHandle""ptr"$AI_HANDLE)
  If 
IsArray($I_SUCESSThen
   
Return 1
  
Else
   
SetError(1)
   Return 
0
  
EndIf
 Else
  
SetError(2)
  Return 
0
 
EndIf
EndFunc 
†Finish the Trainer†

Now, I'll learn you how to compile your script.

Open your script, press Tool => Compile
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

What about an icon?
[Only registered and activated users can see links. Click Here To Register...]

32Bits => "Compile X86 Version"
64Bits => "Compile X64 Version"
[Only registered and activated users can see links. Click Here To Register...]

Now, we compile...
[Only registered and activated users can see links. Click Here To Register...]

GOOD WORK!!

Trahison.
07/05/2012 16:55 Daawi'#2
Leider ist das hier die falsche Section. Gehört hier rein [Only registered and activated users can see links. Click Here To Register...] .

copy&paste?

#moverequest
07/05/2012 16:57 Trahison#3
I can't post into this parts of forum... :-/

Trahison.
07/05/2012 17:02 Daawi'#4
Quote:
Originally Posted by Trahison View Post
I can't post into this parts of forum... :-/

Trahison.
Ok and why you can't post it there?
07/05/2012 17:03 Trahison#5
I don't know...
07/05/2012 18:38 StylerYo#6
Quote:
Originally Posted by Trahison View Post
I can't post into this parts of forum... :-/

Trahison.
Because this : [Only registered and activated users can see links. Click Here To Register...]
07/05/2012 19:04 Trahison#7
Thank you for the information!

Trahison.
07/05/2012 21:09 Der-Eddy#8
[Only registered and activated users can see links. Click Here To Register...]/moved
07/05/2012 22:51 Logtetsch#9
Das ist doch der größte Müll nach [Only registered and activated users can see links. Click Here To Register...].

Quote:
Func cheat() allow Start button to work.
ToolTip("Waiting S4League", 0, 0) told to user where is the cheat (here, he wait..)
ProcessWait("S4Client.exe") The cheat wait S4Client.exe to be opened.
$PID = ProcessExists("S4Client.exe") Start
Sleep(500) Wait 0,5 seconds
$OPEN = _MEMORYOPEN($PID) Open PID Memory.
Sleep(2000) Wait 2 seconds
Ich glaube, er weiss selber nicht, was er da schreibt. Hauptsache er bekommt seinen Thread voll. Ab dahin habe ich aufgehört weiter zu lesen, weil das mir zu blöd wurde.