Page 1 of 1

CodeNapper - API hooking for free!

Posted: Thu May 18, 2006 9:55 pm
by thefool
I got in touch with good old PolyVector who still is alive, and doing well :)

Several people has asked for this library, including myself.
I finally got the CodeNapper package (without source, though).
Its consisting of a DLL, a reference and some examples..

CodeNapper is an API hooking library, also supporting trampoline functions, and a simple way of injecting DLL's (wich you need for API hooking in other app's!)

It can easly let you replace an api function with a procedure of your own :)


NOTE:
As you initialize the lib, you need to call the function "CodeNapperRegister".
Like the reference says, the command need 2 parameters, User and Key (both strings!). He did a small change, so whatever you put in there it will get registered and you will have the full functionality. You MUST call this before anything else!

Apart from that, have fun. And thanks to polyvector for sharing this :)


File:1->CodeNapper.zip
Image

edit: All examples are now updated for pb 4.0.

Posted: Thu May 18, 2006 9:57 pm
by Bonne_den_kule
Nice...

Posted: Thu May 18, 2006 11:00 pm
by SFSxOI
Very Nice! Thank You very much :)

Posted: Fri May 19, 2006 8:07 am
by Edwin Knoppert
Support for w95/98?
I don't think so..

?

Posted: Fri May 19, 2006 12:01 pm
by Maxus
And it is possible to find out how functions API directly in most DLL or in current process are intercepted.

Posted: Fri May 19, 2006 12:39 pm
by thefool
Edwin Knoppert wrote:Support for w95/98?
I don't think so..

?
why don't you test it. My computer isn't 5 years old :P
(But i can't really remember. ITS POSSIBLE that the support is there!)

maxus, what do you mean? Its not made to be "crackproof", it has other things to do. If you want that, you gotta code for it. It has nummerous of other uses.. see the examples!

no problem, SFSxOI

Posted: Fri May 19, 2006 1:03 pm
by Maxus
I was going to use it for protection of the programs on Blitz3D.
And thus planned to start EXE from memory, not keeping on HDD.

Posted: Fri May 19, 2006 2:56 pm
by thefool
And why would api hooking be needed there? Its not what you need.

You need to throw the exe and smack the addr. pointer to the correct place, and more than that.