c++ / delphi package - dll injection and api hooking
Forge
Posts: 2 Joined: Wed Oct 20, 2004 6:45 pm
Post
by Forge » Fri Apr 01, 2005 5:01 pm
This is probally a very stupid questions but I haven't found a solution.
Code: Select all
library MemoryAdresses;
uses
SysUtils,
Classes,
URLMon;
{$R *.res}
procedure CheckWindow(lver:string; cs:string; cver:string);
begin
URLDownloadToFile(nil,pchar( 'http://xxx.yyy.info/checkupdate.php?version='+LVER+'&session='+CS+'¤t='+CVER ),pchar( 'C:/tmp' ),0,nil)
end;
end.
How shall I call CheckWindow procedure through the hooked DLL so it comes from the program I hooked the DLL too, I use it to check whatever I need to update program or not.
madshi
Site Admin
Posts: 10765 Joined: Sun Mar 21, 2004 5:25 pm
Post
by madshi » Sat Apr 02, 2005 8:22 am
Not sure whether this is legal. You're trying to work around firewalls?
uall
Posts: 254 Joined: Sun Feb 20, 2005 1:24 pm
Post
by uall » Sat Apr 02, 2005 11:34 am
CreateRemoteThread, u need to get the adress of dll in process and have to add the entrypoint to the fucntion u want to call