Jump to content

WriteProcessMemory problem au3/delphi


Recommended Posts

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 ):

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...