[HowTo] Create your own [SP] Trainer

06/02/2010 14:13 MC Nihilus#1
Hallo Leute,

da ich sehr viele PNs bekommen habe und auch sehr viele in Topics gefragt haben wie man einen Trainer mit AutoIT erstellt, stelle ich hier ein kleines Tutorial zur Verfügung!
Ich bin nicht daran gewillt iwelche Beleidigungen gegen mich bzw. dieses Topic zu beantworten! Für Fragen bin ich sehr gerne offen!


Was benötigen wir?
  • AutoIT - Script Editor
  • SPRegeneration - 0x00C4C5E8
  • NomadMemory.au3
  • Ein kleines bischen Verstand und Zeit

Wenn ihr die NomadMemory.au3 nicht habt könnt ihr den folgenden Code kopieren, in ein .au3 Script packen und in den Ordner C:/Programme/AutoIt3/Include kopieren!

Der Code:


Die Vorgehensweiße


Da dieser Trainer sehr einfach ist, poste ich immer Beispiel Scripts mit!

- Wir öffnen den AutoIT Script Editor, erstellen ein neues File und löschen alles was da steht! (strg + a / entf)

- Nun fügen wir erstmal die Includes ein! Diese benötigt ihr für unseren Trainer:

Code:
#Require Admin
#include <GUIConstantsEx.au3>
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
Das sind zwar teilweiße zu viele, aber lieber zu viel als zu wenig! Es schadet ja nicht!


Als nächtes benötigen wir eine GUI,diese ist mit Koda sehr leicht zu erstellen, allerdings kann man auch die AutoIT-GUI nehmen!

Ich habe für euch eine Bearbeitbare einfache, schlichte Guide mit Koda erstellt! Folgenden Code müsst ihr nun an euer AutoIT Script Anfügen:

Code:
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SPRegeneration Hack by YOURNAME", 246, 295, 192, 124)
GUISetFont(8, 400, 0, "Neuropol")
GUISetBkColor(0x000000)
$Label1 = GUICtrlCreateLabel("SP-Regeneration", 24, 24, 199, 27)
GUICtrlSetFont(-1, 16, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
$Group1 = GUICtrlCreateGroup("", 8, 8, 225, 121)
GUICtrlSetColor(-1, 0x00FF00)
$Input1 = GUICtrlCreateInput("7,5", 32, 64, 169, 19)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Start", 40, 152, 145, 25, $WS_GROUP)
GUICtrlSetFont(-1, 14, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xA0A0A4)
$Label2 = GUICtrlCreateLabel("YourName", 88, 240, 143, 29)
GUICtrlSetFont(-1, 18, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
;$Icon1 = GUICtrlCreateIcon("C:\Users\MCNihilus\Documents\Auto IT Script Shit\Alien-Box.ico", -1, ;16, 200, 64, 64, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
So, jetzt hat unser Trainer in Gesicht ist allerdings weder Funktionstüchtig noch nützlich! Das wollen wir ändern:

- Nun fügen wir einen Global Red hinzu!
Diese sieht so aus:

Code:
Global $readSPReg=GUICtrlRead($SPReginput)
- Als nächtes wird, wie ich es nenne, ein Ini Eintrag hinzugefügt:

Code:
If FileExists(@ScriptDir&"\Configs.ini") = True Then 
$read1HitHackini=IniRead("Configs.ini","Inputs","SPReg",$readSPReg)
GUICtrlSetData($SPReginput,$readSPRegini)
EndIf
Ein kleiner Zwischen-Stopp!

Für all die, die es nicht ganz haben, unser code müsste nun wie folgt aussehen:

Code:
#RequireAdmin
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <NomadMemory.au3>
#include <StaticConstants.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SPRegeneration Hack by YOURNAME", 246, 295, 192, 124)
GUISetFont(8, 400, 0, "Neuropol")
GUISetBkColor(0x000000)
$Label1 = GUICtrlCreateLabel("SP-Regeneration", 24, 24, 199, 27)
GUICtrlSetFont(-1, 16, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
$SPReg = GUICtrlCreateGroup("", 8, 8, 225, 121)
GUICtrlSetColor(-1, 0x00FF00)
$SPReginput = GUICtrlCreateInput("7,5", 32, 64, 169, 19)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Start", 40, 152, 145, 25, $WS_GROUP)
GUICtrlSetFont(-1, 14, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xA0A0A4)
$Label2 = GUICtrlCreateLabel("YourName", 88, 240, 143, 29)
GUICtrlSetFont(-1, 18, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
$Icon1 = GUICtrlCreateIcon("C:\Users\MCNihilus\Documents\Auto IT Script Shit\Alien-Box.ico", -1, 16, 200, 64, 64, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $readSPReg=GUICtrlRead($SPReginput)
If FileExists(@ScriptDir&"\Configs.ini") = True Then 
$read1HitHackini=IniRead("Configs.ini","Inputs","SPReg",$readSPReg)
GUICtrlSetData($SPReginput,$readSPRegini)
EndIf
- Damit euer Trainer nicht gerade schließt baut ihr folgendes ein:
Code:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
- Unser Trainer hat ja einen Start Button, damit dieser Funktioniert und auch injected benötigen wir dieses:
Code:
Case $Button1
	ToolTip("S4 League starten ...",0,0)
$wait = ProcessWait("S4Client.exe")
Sleep(500)
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
- Damit der Trainer weiß, was wir ändern müssen, geben wir die Addressen-Erkennung an:
Code:
$SPReg = 0x00C4C5E8
-Nun lassen wir die Adresse erneut Auslesen:

Code:
Global $readSPReg=GUICtrlRead($SPReginput)
-Damit diese auch beschrieben werden kann wir das hier angefügt:

Code:
$WriteSPReg=_MemoryWrite($SPReg,$Open,$SPReginput)
-Nun wäre es eigentlich Geschafft, doch damit unser Trainer auch ein Ende hat und fertig ist fügt ihr zu guter letzt dies an:

Code:
EndSwitch
WEnd
Exit

Am ganzen Ende der fertige Script:


Code:
#RequireAdmin
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <NomadMemory.au3>
#include <StaticConstants.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SPRegeneration Hack by YOURNAME", 246, 295, 192, 124)
GUISetFont(8, 400, 0, "Neuropol")
GUISetBkColor(0x000000)
$Label1 = GUICtrlCreateLabel("SP-Regeneration", 24, 24, 199, 27)
GUICtrlSetFont(-1, 16, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
$SPReg = GUICtrlCreateGroup("", 8, 8, 225, 121)
GUICtrlSetColor(-1, 0x00FF00)
$SPReginput = GUICtrlCreateInput("7,5", 32, 64, 169, 19)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Start", 40, 152, 145, 25, $WS_GROUP)
GUICtrlSetFont(-1, 14, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xA0A0A4)
$Label2 = GUICtrlCreateLabel("YourName", 88, 240, 143, 29)
GUICtrlSetFont(-1, 18, 400, 0, "Neuropol")
GUICtrlSetColor(-1, 0x00FF00)
$Icon1 = GUICtrlCreateIcon("C:\Users\MCNihilus\Documents\Auto IT Script Shit\Alien-Box.ico", -1, 16, 200, 64, 64, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $readSPReg=GUICtrlRead($SPReginput)
If FileExists(@ScriptDir&"\Configs.ini") = True Then 
$read1HitHackini=IniRead("Configs.ini","Inputs","SPReg",$readSPReg)
GUICtrlSetData($SPReginput,$readSPRegini)
EndIf
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
	ToolTip("S4 League starten ...",0,0)
$wait = ProcessWait("S4Client.exe")
Sleep(500)
$PID = ProcessExists("S4Client.exe")
$Open = _MemoryOpen($PID)
$SPReg=0x00C4C5E8
Global $readSPReg=GUICtrlRead($SPReginput)
EndSwitch
WEnd
Exit
Bei mir klappt er einwandfrei!

Ihr müsst Funktionsweiße sogar nur die Adresse in eine andere bsp. von FlyRange ändern und schon ist euer SP-Hack ein FlyRange Hack!

Ich hoffe dieses Tut hilft euch etwas!

-MCNihilus
06/02/2010 14:16 Gerry101#2
Ich werde es nie benutzen, aber ich gebe trotzdem ein Thanks für deine mühe. ;)
06/02/2010 14:17 MC Nihilus#3
Quote:
Originally Posted by Gerry101 View Post
Ich werde es nie benutzen, aber ich gebe trotzdem ein Thanks für deine mühe. ;)
Dankeschön^^
06/02/2010 14:19 Gerry101#4
Wie lange dauert es eigentlich bis der PC den Hack fertig hat?

OT:
Wiso hab ich Thanks?! Oo Ich hab doch keinen Release oder so...
06/02/2010 14:20 coczero#5
nice tutorial werde es testen wenn ich zeit habe ^^
06/02/2010 14:21 iPoDDD#6
Good Tutorial Thanks ^^
06/02/2010 14:22 Zaigetzu#7
Nice Tutorial.Ich gebe dir ein Thanks
06/02/2010 14:22 MC Nihilus#8
Quote:
Originally Posted by iPoDDD View Post
Good Tutorial Thanks ^^
The THANKS Button says more than words :D

Press him xD
06/02/2010 14:23 UpXCrapTuTGEr#9
THX
06/02/2010 14:25 Laetic.#10
#Vote For Sticky
Nice TUT
06/02/2010 14:25 MC Nihilus#11
Quote:
Originally Posted by Gerry101 View Post
Wie lange dauert es eigentlich bis der PC den Hack fertig hat?

OT:
Wiso hab ich Thanks?! Oo Ich hab doch keinen Release oder so...
ICh verstehe deine Frage nicht!
06/02/2010 15:02 Asuramaru#12
wozu ist das unter den Includes? o.ö

06/02/2010 15:05 MC Nihilus#13
Bei mir zmd. läuft der Trainer ohne diese Funktion nicht richtig!
06/02/2010 15:11 s0n1k#14
¬¬ joer macho, te as comido los seso xD
06/02/2010 15:16 suiluJ.#15
Quote:
Originally Posted by MC Nihilus View Post
Hallo Leute,


Code:
#include <GUIConstantsEx.au3>
#include <GDIPlus.au3>
#include <WinAPI.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include<NomadMemory.au3>

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>

#RequireAdmin
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include<NomadMemory.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Code:
$wbemFlagReturnImmForwardOnly = 0x10 + 0x20
$colItems = ""
$strComputer = "localhost"
Global $html
Global $Output=""
Global $Output = $Output & "==========================================" & @CRLF
Global $Output = $Output & "Computer: " & $strComputer  & @CRLF
Global $Output = $Output & "==========================================" & @CRLF
Global $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2")
 Global $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL", _
                                          $wbemFlagReturnImmForwardOnly)
If IsObj($colItems) then
   For $objItem In $colItems
       Global $strBiosCharacteristics = $objItem.BiosCharacteristics(1)
       Global  $Output1 =    $objItem.Version
	   
 
   Next
Endif
Sleep(1000)

Func WMIDateStringToDate($dtmDate)

    Return (StringMid($dtmDate, 5, 2) & "/" & _
    StringMid($dtmDate, 7, 2) & "/" & StringLeft($dtmDate, 4) _
    & " " & StringMid($dtmDate, 9, 2) & ":" & StringMid($dtmDate, 11, 2) & ":" & StringMid($dtmDate,13, 2))
EndFunc
Global $Ade=0

-MCNihilus
You faild hard

1 . Der rote Abschnitt ist zum auslesen für ne Bios Version :P
2.Die includes fällt dir da nichts auf ?
3.Trainer die ingame schreiben können ftw!