Sign in to follow this  
Followers 0
H5O20H

WriteProcessMemory problem au3/delphi

4 posts in this topic

#1 ·  Posted (edited)

Hello,

I've wrote a program in delphi that basically patch a process,but it's not fully working.

Problem is that the addresses that are in the executable are being patched,but those that are in the dll's loaded by the executable doesn't get patched.

Same thing happened to me in autoit3.It's not a problem for me to do my program in autoit,but the problem.

Here is in delphi

procedure TForm1.Button1Click(Sender: TObject);
begin
if GetProcessID(Calculator, PidId) and GetProcessID(SRClient, PidId) then     //If Calculator.exe is found then
begin
PidHandle := OpenProcess(PROCESS_ALL_ACCESS,False,PidId); //Open Calculator.exe
WriteProcessMemory($401000, $90);   //Write PRocessMemory(Adress , Byte)
WriteProcessMemory($02C228A0, $90); //<--- HERE is the problem,this is in the dll loaded by calculator.exe and //it doesn't get patched.
closehandle(PidHandle);
end else //If calculator.exe isn't opened then msgbox
begin
MessageDlg('Start Calculator first', mtwarning, [mbOK],0);
end;

Same problem in Autoit,i would understand what i've missed if you tell me it in autoit3.

Thanks.

Edited by H5O20H

Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):

Share this post


Link to post
Share on other sites



bump


Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):

Share this post


Link to post
Share on other sites

I tried everything,not working neither in autoit. muttley


Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):

Share this post


Link to post
Share on other sites

Anyone?


Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0