www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - API hooking in Dlang?

reply "Dirk" <theman riseup.net> writes:
I am wondering if there is any libraries I have missed for API 
hooking? Preferably on windows, and linux, although just windows 
is fine. I found one named 
kong(http://www.dsource.org/projects/kong), although it has been 
abandoned and only supports xp on windows. Or if there is any 
detours bindings anywhere that would be great.

Im a little surprised there isn`t much on Dll Injection/API 
hooking on Dlang. I figure people must be doing it as it is very 
common. Could anyone point me in the right direction?
Nov 02 2014
parent reply "Dirk" <theman riseup.net> writes:
On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
 I am wondering if there is any libraries I have missed for API 
 hooking? Preferably on windows, and linux, although just 
 windows is fine. I found one named 
 kong(http://www.dsource.org/projects/kong), although it has 
 been abandoned and only supports xp on windows. Or if there is 
 any detours bindings anywhere that would be great.

 Im a little surprised there isn`t much on Dll Injection/API 
 hooking on Dlang. I figure people must be doing it as it is 
 very common. Could anyone point me in the right direction?
I should of mentioned that I have also seen the MadCodeHook Library bindings, which is great but the MCH library is very expensive.
Nov 02 2014
next sibling parent reply "Dirk" <theman riseup.net> writes:
On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
 On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
 I am wondering if there is any libraries I have missed for API 
 hooking? Preferably on windows, and linux, although just 
 windows is fine. I found one named 
 kong(http://www.dsource.org/projects/kong), although it has 
 been abandoned and only supports xp on windows. Or if there is 
 any detours bindings anywhere that would be great.

 Im a little surprised there isn`t much on Dll Injection/API 
 hooking on Dlang. I figure people must be doing it as it is 
 very common. Could anyone point me in the right direction?
I should of mentioned that I have also seen the MadCodeHook Library bindings, which is great but the MCH library is very expensive.
I ended up finding an example on github(https://github.com/Trass3r/hooksample), not sure how I missed it. With that said it is alot easier than I thought. I am beginning to love D :).
Nov 02 2014
parent reply "Jack" <Jackoz530 gmail.com> writes:
On Monday, 3 November 2014 at 06:51:11 UTC, Dirk wrote:
 On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
 On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
 I am wondering if there is any libraries I have missed for 
 API hooking? Preferably on windows, and linux, although just 
 windows is fine. I found one named 
 kong(http://www.dsource.org/projects/kong), although it has 
 been abandoned and only supports xp on windows. Or if there 
 is any detours bindings anywhere that would be great.

 Im a little surprised there isn`t much on Dll Injection/API 
 hooking on Dlang. I figure people must be doing it as it is 
 very common. Could anyone point me in the right direction?
I should of mentioned that I have also seen the MadCodeHook Library bindings, which is great but the MCH library is very expensive.
I ended up finding an example on github(https://github.com/Trass3r/hooksample), not sure how I missed it. With that said it is alot easier than I thought. I am beginning to love D :).
You should find some at code.dlang.org
Nov 02 2014
parent "Dirk" <theman riseup.net> writes:
On Monday, 3 November 2014 at 07:46:57 UTC, Jack wrote:
 On Monday, 3 November 2014 at 06:51:11 UTC, Dirk wrote:
 On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
 On Monday, 3 November 2014 at 03:41:19 UTC, Dirk wrote:
 I am wondering if there is any libraries I have missed for 
 API hooking? Preferably on windows, and linux, although just 
 windows is fine. I found one named 
 kong(http://www.dsource.org/projects/kong), although it has 
 been abandoned and only supports xp on windows. Or if there 
 is any detours bindings anywhere that would be great.

 Im a little surprised there isn`t much on Dll Injection/API 
 hooking on Dlang. I figure people must be doing it as it is 
 very common. Could anyone point me in the right direction?
I should of mentioned that I have also seen the MadCodeHook Library bindings, which is great but the MCH library is very expensive.
I ended up finding an example on github(https://github.com/Trass3r/hooksample), not sure how I missed it. With that said it is alot easier than I thought. I am beginning to love D :).
You should find some at code.dlang.org
That was actually the first place I checked. The only example was dmadhook which is a wrapper of the MadCodeHook paid library. Thanks for helping though.
Nov 03 2014
prev sibling parent reply "Sean Kelly" <sean invisibleduck.org> writes:
On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
 I should of mentioned that I have also seen the MadCodeHook 
 Library bindings, which is great but the MCH library is very 
 expensive.
Weird, it used to be open source and free.
Nov 03 2014
parent "Dirk" <theman riseup.net> writes:
On Monday, 3 November 2014 at 14:32:05 UTC, Sean Kelly wrote:
 On Monday, 3 November 2014 at 04:31:40 UTC, Dirk wrote:
 I should of mentioned that I have also seen the MadCodeHook 
 Library bindings, which is great but the MCH library is very 
 expensive.
Weird, it used to be open source and free.
Apparently you can still download it, but you need to have a nag scree running in the background. Their reasoning behind making it premium, from what I gather is that it was being used in Malware which was causing AV's to give a false positive for any legitimate applications using the MCH lib.
Nov 03 2014