View previous topic :: View next topic |
Author |
Message |
Syos How do I cheat?
Reputation: 0
Joined: 23 Oct 2010 Posts: 2
|
Posted: Sat Oct 23, 2010 2:27 pm Post subject: Address Scanner |
|
|
I have a question about a CE function.
How can I scan the address of a variable?
g_Address = Engine.dll+6815 = 01006815
Last edited by Syos on Fri Oct 29, 2010 6:48 am; edited 1 time in total |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Mon Oct 25, 2010 8:26 am Post subject: |
|
|
if g_Address is a symbol in the game itself and not something you defined using the userdefined symbols then you should be able to obtain it using the sym**** api in windows
syminitialize and then followed by symgetaddrfromname or whatever it was called (starts with sym )
_________________
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 |
|
 |
Syos How do I cheat?
Reputation: 0
Joined: 23 Oct 2010 Posts: 2
|
Posted: Wed Oct 27, 2010 3:36 pm Post subject: |
|
|
Thanks for your answer. Is there a example for it (C, C++)? I cannot find a useful example.
I found this code in "AddAddress.pas":
Code: | currentaddress:=symhandler.getaddressfromname(pointerinfo[i].address.Text); |
But what is "symhandler" and "pointerinfo"?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Thu Oct 28, 2010 9:51 pm Post subject: |
|
|
symhandler is just a wrapper class and pointerinfo is structure containing objects. In this case the object that takes the base pointer value in a tedit box
anyhow, look at symbolhandler.pas and check this code:
Code: |
getmem(symbol,sizeof(TSYMBOL_INFO)+255);
try
zeromemory(symbol,sizeof(TSYMBOL_INFO)+255);
symbol.SizeOfStruct:=sizeof(TSYMBOL_INFO);
symbol.MaxNameLen:=254;
if SymFromName(processhandle, pchar(tokens[i]), symbol ) then
begin
tokens[i]:=inttohex(symbol.Address,8);
continue;
end;
finally
freemem(symbol);
end;
|
_________________
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 |
|
 |
|