execute procedure is foreign process
execute procedure is foreign process
Hi!
I see examples on how to CreateRemoteThreadEx and then tell the remote thread to use function loadlibrary that lays in kernel32.dll (loaded inside process).
But there arent just LoadLibrary that lays in kernel32.dll.
There are alot of interesting stuff.
What I want to do is simple, I want to beep(1000,1000) from the remote process (kernel32.dll contains this function).
Many of you will tell me to make a dll witt Beep and then inject it. But I want the kernel32.dll inside any other process to do it.[/code]
I see examples on how to CreateRemoteThreadEx and then tell the remote thread to use function loadlibrary that lays in kernel32.dll (loaded inside process).
But there arent just LoadLibrary that lays in kernel32.dll.
There are alot of interesting stuff.
What I want to do is simple, I want to beep(1000,1000) from the remote process (kernel32.dll contains this function).
Many of you will tell me to make a dll witt Beep and then inject it. But I want the kernel32.dll inside any other process to do it.[/code]
Okey.. i just read through my post again. It might be abit unclear.
What I want to do is:
Tell a foreign process to beep(1000,1000);
Beep function is included in kernel32.dll, which is included in all processes.
Note: I don't want a dll injection here .
NEJI, I will take a look at it when I get home from training.
What I want to do is:
Tell a foreign process to beep(1000,1000);
Beep function is included in kernel32.dll, which is included in all processes.
Note: I don't want a dll injection here .
NEJI, I will take a look at it when I get home from training.
iprocess.ExecuteFunction doesn't need DLL injection and works just finessivagna wrote:Okey.. i just read through my post again. It might be abit unclear.
What I want to do is:
Tell a foreign process to beep(1000,1000);
Beep function is included in kernel32.dll, which is included in all processes.
Note: I don't want a dll injection here .
NEJI, I will take a look at it when I get home from training.
doesnt work
how come this doesnt work
Code: Select all
procedure ShowMessageBox();
begin
LoadLibrary('E:\jeroen\Delphi\IPROCESS\dllfile.dll');
END;
procedure TForm1.Button1Click(Sender: TObject);
begin
Process('notepad.exe').ExecuteFunction(ShowMessageBox, INFINITE, nil, 5);
end;