Getprocaddress in external processes

Asked

Viewed 187 times

1

I wonder if there is any alternative to GetProcAddress to be used in external processes?

Something like:

GetProcAddress(handle,GetModuleHandle('user32.dll'),PChar('MessageBox'));

Does anyone know?

  • Why would you need something different? What is your goal? Without giving more information about why you want something other than GetProcAddress to find a symbol in any executable there is no way to give a response.

  • @Viníciusgobboa.deOliveira Thank you for your reply. Well actually I don’t exactly need something different, I need to get the Address and the Modulehandle from an external process, you know? with Getprocaddress I can only get the data from myself, and what I want is to take from another process, the Notepad for example.

  • 1

    You would have to inject a dll into the external process and use Getprocaddres in your uploaded dll in the external process. See this article

  • So @Eprogrammernotfound that’s the question of me wanting to use it in external process, I don’t want to inject it in the process. Why? because I need to do this in all processes, and injecting dll would not suit me in this case. I thank you again for the answer.

  • The other alternative would be to inject the code via remote thread. This article also describes this option

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.