H5O20H Posted July 5, 2008 Share Posted July 5, 2008 (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 July 5, 2008 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 More sharing options...
H5O20H Posted July 6, 2008 Author Share Posted July 6, 2008 bump 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 More sharing options...
H5O20H Posted July 7, 2008 Author Share Posted July 7, 2008 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 ): Link to comment Share on other sites More sharing options...
H5O20H Posted July 8, 2008 Author Share Posted July 8, 2008 Anyone? 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now