Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 01:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Cheat Engine Pointer einbauen

Discussion on Cheat Engine Pointer einbauen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
EasyFarm's Avatar
 
elite*gold: 281
Join Date: May 2011
Posts: 1,547
Received Thanks: 942
Cheat Engine Pointer einbauen

Hi

Ich habe folgende Frage:

Wie kann ich per Autoit einen Pointer von einem Spiel verändern?

So sieht der Pointer aus:



Im Oberen Teil des Bildes ist er nach dem Suchlauf.

So sieht er aus in meiner Liste: Im unteren Teil des Bildes.


Wie baue ich ihn in meinen Code ein?:

Quote:
#RequireAdmin
#include <Pointer.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Beispielhack 1.3", 389, 38, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 8, 241, 21)
$Button1 = GUICtrlCreateButton("On", 256, 8, 57, 17, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Off", 320, 8, 57, 17, $WS_GROUP)
GUISetState(@SW_SHOW)

Dim $Speedhack[3] = [0, 0x420, 0x66A]
$Base = 0x002ED9B0
$Handle = _MemoryOpen(ProcessExists("metin2.bin"))

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_MemoryPointerWrite($Base, $Handle, $Speedhack,GuiCtrlRead($Input1))
Case $Button2
_MemoryPointerWrite($Base, $Handle, $Speedhack,16230)
EndSwitch
Wend
Habe ja 2 offsets, aber er verändert es bei mir nicht..

Weiss einer Rat?

Und wie schaffe ich es, dass ich das Byte verändern kann?

Mfg. EasyFarm
EasyFarm is offline  
Old 01/07/2013, 03:28   #2

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Code:
#RequireAdmin
#include <Pointer.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Dim $Speedhack[2] = [0x554, 0x16D]
$Process = ProcessExists("metin2.bin")
$Module = _MemoryModuleGetBaseAddress($Process , "metin2.bin")
$Pointer = $Module + 0x0001A70C
$Handle = _MemoryOpen($Process)

$Form1 = GUICreate("Beispielhack 1.3", 389, 38, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 8, 241, 21)
$Button1 = GUICtrlCreateButton("On", 256, 8, 57, 17, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Off", 320, 8, 57, 17, $WS_GROUP)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			For $i = 0 To UBound($Speedhack) -1
				$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[$i]
			Next
			_MemoryWrite($Read , $Handle , GUICtrlRead($Input1))
		Case $Button2
			For $i = 0 To UBound($Speedhack) -1
				$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[$i]
			Next
			_MemoryWrite($Read , $Handle , 16230)
	EndSwitch
Wend

Func _MemoryModuleGetBaseAddress($iPID, $sModule)
    If Not ProcessExists($iPID) Then Return SetError(1, 0, 0)

    If Not IsString($sModule) Then Return SetError(2, 0, 0)

    Local   $PSAPI = DllOpen("psapi.dll")

    ;Get Process Handle
    Local   $hProcess
    Local   $PERMISSION = BitOR(0x0002, 0x0400, 0x0008, 0x0010, 0x0020) ; CREATE_THREAD, QUERY_INFORMATION, VM_OPERATION, VM_READ, VM_WRITE

    If $iPID > 0 Then
        Local $hProcess = DllCall("kernel32.dll", "ptr", "OpenProcess", "dword", $PERMISSION, "int", 0, "dword", $iPID)
        If $hProcess[0] Then
            $hProcess = $hProcess[0]
        EndIf
    EndIf

    ;EnumProcessModules
    Local   $Modules = DllStructCreate("ptr[1024]")
    Local   $aCall = DllCall($PSAPI, "int", "EnumProcessModules", "ptr", $hProcess, "ptr", DllStructGetPtr($Modules), "dword", DllStructGetSize($Modules), "dword*", 0)
    If $aCall[4] > 0 Then
        Local   $iModnum = $aCall[4] / 4
        Local   $aTemp
        For $i = 1 To $iModnum
            $aTemp =  DllCall($PSAPI, "dword", "GetModuleBaseNameW", "ptr", $hProcess, "ptr", Ptr(DllStructGetData($Modules, 1, $i)), "wstr", "", "dword", 260)
            If $aTemp[3] = $sModule Then
                DllClose($PSAPI)
                Return Ptr(DllStructGetData($Modules, 1, $i))
            EndIf
        Next
    EndIf

    DllClose($PSAPI)
    Return SetError(-1, 0, 0)

EndFunc
Meinst du es so?
BladeTiger12 is offline  
Old 01/07/2013, 07:34   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,147
Beide Scripts sind unbrauchbar... Vor allem das von BladeTiger12.

Code:
For $i = 0 To UBound($Speedhack) -1
	$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[$i]
Next
_MemoryWrite($Read , $Handle , GUICtrlRead($Input1))
Macht nichts anderes als:
Code:
$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[UBound($Speedhack) -1]
_MemoryWrite($Read , $Handle , GUICtrlRead($Input1))
Würde bei einem Offset noch funktionieren, in diesem Fall sind es aber zwei und es funktioniert nicht.



Behalte einfach die "_MemoryPointer...()" Funktionen bei. Beim letzten Parameter gibst du den Datentyp an.
(1 Byte = 8 Bit)

Eine Frage meinerseits: Wieso weicht das Script vollständig vom Screenshot ab?
KDeluxe is offline  
Old 01/07/2013, 14:01   #4

 
EasyFarm's Avatar
 
elite*gold: 281
Join Date: May 2011
Posts: 1,547
Received Thanks: 942
So habs nun so probiert:

Quote:
#RequireAdmin
#include <Pointer.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Beispielhack 1.0", 389, 38, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 8, 241, 21)
$Button1 = GUICtrlCreateButton("On", 256, 8, 57, 17, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Off", 320, 8, 57, 17, $WS_GROUP)
GUISetState(@SW_SHOW)

Dim $Speedhack[3] = [0, 0x169, 0x554]
$Base = 0x0001A70C
$Handle = _MemoryOpen(ProcessExists("Engine.exe"))

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_MemoryPointerWrite($Base, $Handle, $Speedhack,GuiCtrlRead($Input1))
Case $Button2
_MemoryPointerWrite($Base, $Handle, $Speedhack,16230)
EndSwitch
Wend
Geht nicht.

Bei Bladetigers Code ein Fehler:
Quote:
Func _MemoryModuleGetBaseAddress($iPID, $sModule)
Hilfe nochmal bitte.
Mfg. Easy
EasyFarm is offline  
Old 01/07/2013, 14:26   #5

 
BladeTiger12's Avatar
 
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
Code:
#RequireAdmin
#include <Pointer.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Dim $Speedhack[2] = [0x554, 0x16D]
$Process = ProcessExists("metin2.bin")
$Module = _MemoryModuleGetBaseAddress($Process , "metin2.bin")
$Pointer = $Module + 0x0001A70C
$Handle = _MemoryOpen($Process)

$Form1 = GUICreate("Beispielhack 1.3", 389, 38, 192, 124)
$Input1 = GUICtrlCreateInput("", 8, 8, 241, 21)
$Button1 = GUICtrlCreateButton("On", 256, 8, 57, 17, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Off", 320, 8, 57, 17, $WS_GROUP)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[0]
                        $Read = _MemoryRead($Pointer , $Handle) + $Speedhack[1]
			_MemoryWrite($Read , $Handle , GUICtrlRead($Input1))
		Case $Button2
			$Read = _MemoryRead($Pointer , $Handle) + $Speedhack[0]
                        $Read = _MemoryRead($Pointer , $Handle) + $Speedhack[1]
			_MemoryWrite($Read , $Handle , 16230)
	EndSwitch
Wend

Func _MemoryModuleGetBaseAddress($iPID, $sModule)
    If Not ProcessExists($iPID) Then Return SetError(1, 0, 0)

    If Not IsString($sModule) Then Return SetError(2, 0, 0)

    Local   $PSAPI = DllOpen("psapi.dll")

    ;Get Process Handle
    Local   $hProcess
    Local   $PERMISSION = BitOR(0x0002, 0x0400, 0x0008, 0x0010, 0x0020) ; CREATE_THREAD, QUERY_INFORMATION, VM_OPERATION, VM_READ, VM_WRITE

    If $iPID > 0 Then
        Local $hProcess = DllCall("kernel32.dll", "ptr", "OpenProcess", "dword", $PERMISSION, "int", 0, "dword", $iPID)
        If $hProcess[0] Then
            $hProcess = $hProcess[0]
        EndIf
    EndIf

    ;EnumProcessModules
    Local   $Modules = DllStructCreate("ptr[1024]")
    Local   $aCall = DllCall($PSAPI, "int", "EnumProcessModules", "ptr", $hProcess, "ptr", DllStructGetPtr($Modules), "dword", DllStructGetSize($Modules), "dword*", 0)
    If $aCall[4] > 0 Then
        Local   $iModnum = $aCall[4] / 4
        Local   $aTemp
        For $i = 1 To $iModnum
            $aTemp =  DllCall($PSAPI, "dword", "GetModuleBaseNameW", "ptr", $hProcess, "ptr", Ptr(DllStructGetData($Modules, 1, $i)), "wstr", "", "dword", 260)
            If $aTemp[3] = $sModule Then
                DllClose($PSAPI)
                Return Ptr(DllStructGetData($Modules, 1, $i))
            EndIf
        Next
    EndIf

    DllClose($PSAPI)
    Return SetError(-1, 0, 0)

EndFunc
BladeTiger12 is offline  
Reply


Similar Threads Similar Threads
Cheat Engine Pointer Problem
04/03/2012 - General Coding - 8 Replies
Hallo E*Pvp, Ich hab da ein problem mit Cheat Engine. Wenn ich auf eine adresse rechtsklick mache und auf "Find out what accesses this adress" oder das andere klicke dann fragt er mich ob ich das wirklich machen will da der debugger von cheat engine attached. Ich drücke auf continue und dann öffnet sich ein fenster. Alles gut soweit. In einem TuT stand, man soll dann eine aktion durchführen die was am value verändert. Sobald ich das mache schließt sich mein Spiel. Das heißt ich kann den...
Cheat Engine Pointer für archlord
09/28/2011 - Archlord - 3 Replies
HI kann mir jemand vlli sagen wie man bei cheat engine ein pointer für archlord finde/erstellt ?
[How To] Hack with Cheat Engine and Pointer
08/04/2010 - 4Story Hacks, Bots, Cheats & Exploits - 60 Replies
So also da es Anfragen gab wie man mit dem Pointer von donni007 und Cheat Engine hackt habe ich mal ein kleines Tut geschrieben. Was ihr braucht: -4Story (sollte klar sein xD) -Cheat EngineCheat Engine - Download - CHIP Online -Pointer by donni007http://www.elitepvpers.com/forum/4story-hac ks-bots-cheats-exploits/634494-angebot-pointer-f-r -4story-offi.html -Bypass by Nekki (oder einen anderen, hauptsache er...
Pointer setzen (Cheat Engine)
05/03/2010 - General Coding - 0 Replies
Hi Leute, versuche gerade einen Pointer bei Cheat Engine zu setzen, bekomme es aber nicht hin, hab auch schon viele Tutorials angeschaut, aber da siehts immer ganz anderes aus : http://img402.imageshack.us/img402/5551/bildln.jpg Kann mir jetzt jemand sagen wie ich dort einen gescheiten Pointer hinbekomme, wäre sehr nett .(Geht um den Attack Speed btw) MFG Double777
Cheat Engine Pointer
11/19/2009 - General Coding - 11 Replies
Hi Ich hab mir Cheat Engine 5.5 herunter geladen und mir ein paar Tuts rein gezogen und nachgemacht. Ein paar Skill/Punkte werte bei Flashgames etc. kann ich schon verändern. Allerdings weiß ich nicht genau wie ich nen Pointer finde. Ich hab mir beim Solitär Tutorial nen Pointer gemacht das konnte ich aber nur weil der Maker das so schön vorgemacht hat. Ich habe aber noch nicht ganz kapiert wie ich alleine einen Pointer finde. Ich hab mir das Pointer Vid-Tut von Vulcanraven bereits angesehen...



All times are GMT +2. The time now is 01:02.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.