| View previous topic :: View next topic |
| Author |
Message |
fjfc Advanced Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 91
|
Posted: Wed Apr 16, 2008 4:47 pm Post subject: Code C++ -> Delphi |
|
|
DWORD ADDRESS = 0x00473980;
*(BYTE*)ADDRESS = 0x7D;
any1 know how is this code in delphi?
like... write bytes using only the structure ( Address = bytes ) |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Apr 16, 2008 4:55 pm Post subject: |
|
|
dword Address = $00473980;
^(byte^)Address = $7D; // guess on the byte part... someone fix it for me if it needs to be. _________________
|
|
| Back to top |
|
 |
fjfc Advanced Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 91
|
Posted: Wed Apr 16, 2008 5:22 pm Post subject: |
|
|
for(;
e isso ai? que seria um loop... como faz em delphi? |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Apr 16, 2008 5:26 pm Post subject: |
|
|
um, me no know what lang your speakin, but im guessing your asking how to do a for loop in delphi? it should be the same in delphi with the exception of putting "do" at the end of it.
for ( ;; ) do _________________
|
|
| Back to top |
|
 |
fjfc Advanced Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 91
|
Posted: Wed Apr 16, 2008 5:30 pm Post subject: |
|
|
portuguese - LoL
i forgived that i was posting at CEF xD
thank you man =}~~
=========
for (; do -> not right
^(byte^)Address = $7D; -> Wrong too
[Error] Project1.dpr(54): Missing operator or semicolon |
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Thu Apr 17, 2008 1:48 am Post subject: |
|
|
for:
| Code: | for I :=1 to 100 do//Always increase "I" by one.
or
for I :=100 downto 1 do//Always decrease "I" by one. |
In the var section:
In the code: | Code: | Address :=$00473980;
Address := $7D;//If i got you right. |
|
|
| Back to top |
|
 |
fjfc Advanced Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 91
|
Posted: Thu Apr 17, 2008 3:47 am Post subject: |
|
|
is it right?
i think that it'll change the "Address" and no the "Bytes at Address"... cause looki want to write in the memory like i do in c++ ( *(BYTE*)ADDRESS = 0x7D; ) but i dunno how to do in delphi... |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25870 Location: The netherlands
|
Posted: Thu Apr 17, 2008 6:47 am Post subject: |
|
|
I think it should be:
pbyte($00473980)^:=$7d
typecast address to a pbyte type (pointer to byte type) and dereference it so you can set 7D at that address
while true do _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
fjfc Advanced Cheater
Reputation: 0
Joined: 21 Sep 2006 Posts: 91
|
Posted: Thu Apr 17, 2008 11:19 am Post subject: |
|
|
thank you so much DB!
it's totally right...
========
Now can someone tell me if it's possible to make pointers (Address+Offset)
not using the ReadProcessMemory?
like... using only ASM code? |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25870 Location: The netherlands
|
Posted: Thu Apr 17, 2008 12:24 pm Post subject: |
|
|
that's only possible when you're using a injected dll. (or a injected asm script)
mov eax,[baseaddress]
add eax,offset
eax now contains the address you want
multilevel pointer:
e.g level 2:
mov eax,[baseaddress]
add eax,offset1
mov eax,[eax]
add eax,offset2
eax now contains the address...
(note: When reading from the add address pointer form: the bottom offset is offset 1 and goes up from there, so don't get it mixed up) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|