| View previous topic :: View next topic |
| Author |
Message |
Obitio Advanced Cheater
Reputation: 0
Joined: 09 Apr 2012 Posts: 68 Location: null
|
Posted: Mon Apr 09, 2012 1:55 pm Post subject: [DELPHI]WRITE TO POINTERS? |
|
|
hmm I was searching all over the internet for a way to write to a pointer but I could not find one..so can anyone help me?
I've tried this:
pdword(pdword(address)^+offset)^:=value;
but that only destroys the pointers address -.-
and I also need help with my memory scanning DLL but I'm focusing on writing to a pointer..
Thanks and -Peace-
SINful.
|
|
| Back to top |
|
 |
BlackDeviL13 Newbie cheater
Reputation: 0
Joined: 17 Mar 2012 Posts: 15
|
Posted: Thu Apr 12, 2012 6:33 am Post subject: |
|
|
you want to write to other process??
if yes,, you can use this..
readprocessmemory(handle,pointer(address),@buffaddr,sizeof(buffaddr),temp);
writeprocessmemory(handle,pointer(buffaddr+offset),@value,sizeof(value),temp);
but you must have the handle to the process..
this is the easiest way to do it
getwindowthreadprocessid(findwindow(nil,'The Caption of the Process'),@pid);
handle:=openprocess(process_all_access,false,pid);
_________________
GG always one step behind ~ |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25827 Location: The netherlands
|
Posted: Thu Apr 12, 2012 6:46 am Post subject: |
|
|
If that destroys the pointer, then you're not deep enough
Try: pdword(pdword(pdword(address)^+offset)^+offset2or0)^:=value;
_________________
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 |
|
 |
Obitio Advanced Cheater
Reputation: 0
Joined: 09 Apr 2012 Posts: 68 Location: null
|
Posted: Fri Apr 13, 2012 1:17 pm Post subject: |
|
|
procedure TForm1.Timer9Timer(Sender: TObject);
begin
if CheckBox7.Checked=true then
try
pdword(pdword(pdword(09676618)^+$1 ^+0)^:=3;
except
on E:EaccessViolation do begin
Edit1.Text:='PATCHED';
Timer9.Enabled:=false;
end;
end;
end;
that's the updated code but it doesn't work still...........I cannot use RPM because this game is protected.(and I don't know how in the world you can hook WPM then jump 5 bytes here then 5 bytes their -.- --I suck at assembler because I don't have a clue what it is.)
|
|
| Back to top |
|
 |
BlackDeviL13 Newbie cheater
Reputation: 0
Joined: 17 Mar 2012 Posts: 15
|
Posted: Sat Apr 14, 2012 1:43 am Post subject: |
|
|
Are you sure that your game always use that address+offset?
Some game use multilevel pointer..
And I think 09676618 is a hexadecimal,, so you should write it $09676618 in Delphi..
I am in a process of writing DLL scanner too..
and I need to know,,
which one is faster to scan own memory? RPM / PByte(address)^?
in this case, the program doesnt have any GG..
_________________
GG always one step behind ~ |
|
| Back to top |
|
 |
Obitio Advanced Cheater
Reputation: 0
Joined: 09 Apr 2012 Posts: 68 Location: null
|
Posted: Sat Apr 14, 2012 7:36 pm Post subject: |
|
|
@blackdevil13
I just tried that to but it didn't work....
|
|
| Back to top |
|
 |
BlackDeviL13 Newbie cheater
Reputation: 0
Joined: 17 Mar 2012 Posts: 15
|
|
| Back to top |
|
 |
Obitio Advanced Cheater
Reputation: 0
Joined: 09 Apr 2012 Posts: 68 Location: null
|
Posted: Tue Apr 17, 2012 8:20 pm Post subject: |
|
|
| BlackDeviL13 wrote: | try that program in other game (i.e. Minesweeper)..
if that works fine in Minesweeper, then it has some possibilites..
i.e. :
1. the pointer is invalid
2. the pointer isnt writable
3. the pointer is protected
4. and some others
and we can be sure that the code isnt wrong
you dont answer my question,
which one is faster to scan own memory? RPM / use the PByte(address)^?
please answer  |
PByte(address)^ is super fast..WAAAAAY FASTER THAN WPM!
Anyways..I can't figure out how to write to pointers so I'm just going to write to the function that enables the hack!
|
|
| Back to top |
|
 |
BlackDeviL13 Newbie cheater
Reputation: 0
Joined: 17 Mar 2012 Posts: 15
|
|
| Back to top |
|
 |
|