|
You last visited: Today at 12:20
Advertisement
Offset und Adresse
Discussion on Offset und Adresse within the AutoIt forum part of the Coders Den category.
09/11/2017, 22:50
|
#1
|
elite*gold: 0
Join Date: Aug 2017
Posts: 22
Received Thanks: 2
|
Offset und Adresse
Hallo,
ich versuchte mir vor kurzem das Manipulieren von Assault Cube beizubringen.
Jedoch wird mein gewünschten Wert nicht überschrieben. Ich habe eine kleine Ahnung, dass die Offsets falsch hingeschrieben wurden. Die Offsets selbst sind richtig.
Informationen:
Die Offsets:18C & 4
In Cheat Engine: ("ac_client.exe"+0010F418) <- Pointer
4 Bytes = 'dword'
Als ich den Compiled & Build Script ausführte, kam diese Meldung: Line 134 (File"c:\ etc...
Error Illegal text at the ned of statement (one statement per line)
__________________________________________________ ___________
#RequireAdmin
#include <NomadMemory.au3>
$Value = _InfAmmo()
MsgBox(0,"", "Value: " & $Value)
Func _InfAmmo()
Global $BAdress = 0x00400000, $StaticAdress = 0x0010F418
Global $hOpen, $sRead
$hOpen = _MemoryOpen(ProcessExists("ac_client.exe"))
$sRead = _MemoryRead($BAdress + $StaticAdress, $hOpen, 'dword') + 0x18C + 0x4
$write = _MemoryWrite($sRead, $hOpen, "99999", 'dword')
$Value = _MemoryRead($sRead, $hOpen, 'dword')
Return $Value
EndFunc
__________________________________________________ ___________
Ich hoffe Ihr könnt mir helfen.
Freundliche Grüsse
|
|
|
09/13/2017, 19:03
|
#2
|
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
|
Code:
U can't do that $sRead = _MemoryRead($BAdress + $StaticAdress, $hOpen, 'dword') + 0x18C + 0x4
the return value should be added to your first pointer, then read what address that address is pointing and so on...
In cheat Engine my example pointer looks like this:
The arrow indicates the memory reading u have to do to get the value
Heres an example:
Code:
#include <NomadMemory.au3>
$open = _MemoryOpen(ProcessExists("Tutorial-i386.exe"))
; -> base address = 0x400000 (Tutorial-i386.exe)
;base offset = 0x234660
Local $offsets[] = [0xc,0x14,0x0,0x18];Real order is from base to current value // CHEAT ENGINE ORDER [0x18,0x0,0x14,0xC]
$base = 0x400000
$BaseOffset = 0x234660
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"before writing",$value)
setValueOfPointer($base + $BaseOffset,$offsets,"long",5000) ; Write value
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"after writing",$value)
Func getValueOfPointer($baseAddress,$offsets,$type)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 1
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
Return $read
EndFunc
Func setValueOfPointer($baseAddress,$offsets,$type,$value)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 2 ;the last one points to the value we want to write
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
; Write target address
_MemoryWrite($read + $offsets[UBound($offsets)-1],$open,$value,$type)
EndFunc
_MemoryClose($open)
|
|
|
09/20/2017, 21:49
|
#3
|
elite*gold: 0
Join Date: Aug 2017
Posts: 22
Received Thanks: 2
|
Quote:
Originally Posted by elmarcia
Code:
U can't do that $sRead = _MemoryRead($BAdress + $StaticAdress, $hOpen, 'dword') + 0x18C + 0x4
the return value should be added to your first pointer, then read what address that address is pointing and so on...
In cheat Engine my example pointer looks like this:
The arrow indicates the memory reading u have to do to get the value
Heres an example:
Code:
#include <NomadMemory.au3>
$open = _MemoryOpen(ProcessExists("Tutorial-i386.exe"))
; -> base address = 0x400000 (Tutorial-i386.exe)
;base offset = 0x234660
Local $offsets[] = [0xc,0x14,0x0,0x18];Real order is from base to current value // CHEAT ENGINE ORDER [0x18,0x0,0x14,0xC]
$base = 0x400000
$BaseOffset = 0x234660
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"before writing",$value)
setValueOfPointer($base + $BaseOffset,$offsets,"long",5000) ; Write value
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"after writing",$value)
Func getValueOfPointer($baseAddress,$offsets,$type)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 1
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
Return $read
EndFunc
Func setValueOfPointer($baseAddress,$offsets,$type,$value)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 2 ;the last one points to the value we want to write
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
; Write target address
_MemoryWrite($read + $offsets[UBound($offsets)-1],$open,$value,$type)
EndFunc
_MemoryClose($open)
|
Best tutorial to learn so far, i searched very hard for this explanation! 
|
|
|
03/08/2020, 18:58
|
#4
|
elite*gold: 0
Join Date: Jul 2009
Posts: 81
Received Thanks: 49
|
Quote:
Originally Posted by elmarcia
Code:
U can't do that $sRead = _MemoryRead($BAdress + $StaticAdress, $hOpen, 'dword') + 0x18C + 0x4
the return value should be added to your first pointer, then read what address that address is pointing and so on...
In cheat Engine my example pointer looks like this:
The arrow indicates the memory reading u have to do to get the value
Heres an example:
Code:
#include <NomadMemory.au3>
$open = _MemoryOpen(ProcessExists("Tutorial-i386.exe"))
; -> base address = 0x400000 (Tutorial-i386.exe)
;base offset = 0x234660
Local $offsets[] = [0xc,0x14,0x0,0x18];Real order is from base to current value // CHEAT ENGINE ORDER [0x18,0x0,0x14,0xC]
$base = 0x400000
$BaseOffset = 0x234660
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"before writing",$value)
setValueOfPointer($base + $BaseOffset,$offsets,"long",5000) ; Write value
$value = getValueOfPointer($base + $BaseOffset,$offsets,"long")
MsgBox(0,"after writing",$value)
Func getValueOfPointer($baseAddress,$offsets,$type)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 1
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
Return $read
EndFunc
Func setValueOfPointer($baseAddress,$offsets,$type,$value)
$read = _MemoryRead($baseAddress,$open,"long"); First value
For $i = 0 To UBound($offsets) - 2 ;the last one points to the value we want to write
$read = _MemoryRead($read + $offsets[$i],$open,$type)
Next
; Write target address
_MemoryWrite($read + $offsets[UBound($offsets)-1],$open,$value,$type)
EndFunc
_MemoryClose($open)
|
THANK YOU
|
|
|
 |
Similar Threads
|
Unitymedia IP Adresse ändern / unique IP Adresse
01/24/2017 - Technical Support - 6 Replies
Hallo,
ich nutze häufig legale Services, die mir täglich einen Limit von XY-Suchanfragen zulässt, doch muss ich feststellen, dass mein Limit schnell aufgebraucht ist, ohne, dass ich den Service genutzt habe. Die Mitarbeiter der Webseite meinten, anscheined gibt es mehrere User, die die selbe IP Adresse, wie ich habe.
Wie bekomme ich nun meine einzigartige IP-Adresse, die nach 24 Stunden automatisch geändert wird? Oder ist das als Privatkunde nicht möglich?
Falls es nicht geht, müsste...
|
Cheat Engine Adresse zu Application Adresse
03/26/2014 - General Coding - 12 Replies
Heyho,
Ich spiel grad ein wenig mit Cheat Engine rum und hab nun auch eine Adresse gefunden, die dem Wert zugeordnet ist, den ich suche. Mittels dem Debugger und dem Disassembler/Memoryview konnte ich rausfinden, durch welchen Befehl diese Variable verändert wird und wo sie sich befindet. Nun möchte ich diese Codestelle mit Code füllen, der nichts macht, was mit OllyDbg kein Problem darstellen sollte.
Jedenfalls wird mir die Stelle, an dem sich die Assemblercodezeile, die ich ersetzen will,...
|
can anyone give me the quest windows offset and move offset value and base
07/30/2012 - Cabal Online - 2 Replies
i am experimenting on this again its the unli entry procedure i know its patched already but i want to try something
|
Re : how to find Hp offset mp offset etc
10/09/2008 - PW Hacks, Bots, Cheats, Exploits - 0 Replies
how to find :
HP_OffSet=
MaxHP_OffSet=
MP_OffSet=
MaxMP_OffSet=
with CE?
coz i only know how to find base, we have tutorial, but not the offset part
can anybody explain?
|
Memory Offset Auto Potter Help
12/07/2007 - Conquer Online 2 - 5 Replies
I'm working on an auto potter I could use to train FC, but I can't find the memory offsets that store the Health and Mana with the latest patch.
Yes, I know how to defeat DMA.
If anyone knows how to find the offsets - I'd apprectate the help and I would give ya credits when the program is done and posted here.
Thanks in advance.
|
All times are GMT +1. The time now is 12:21.
|
|