|Op. System:||Windows Vista/2003/XP/2000/98|
|File size:||30 KB|
Publisher description for DarkInjector
This is a tool to inject your own code into a darkbasic professional exe. The code is executed soon after the exe begins running. This is only of use on exes produced by darkbasic professional, if you arrived via search engine looking for a generic dll injector this is not what you want. Some info on How It Works. Dbpro exes consist of a normal exe with data appended on the end. The exe part is very Similar between all dbpro exes. The same exe handles the three different typesof dbpro exes, normal, compressed and exe with .pck file. With a compressed exe the exe SEES that the first appended file is "compress.dll".It then extracts "compress.dll" and then calls the decompress_block function within the dll. To this function it passes a pointer to the rest of the appended data and its size. The "compress.dll" then decompresses the data and returns a pointer to thedecompressed data back to the dbpro exe. If we inject our own "compress.dll" as the first attached file then the dbpro exe will Extract our dll and call the compress_block function it contains passing a pointer tothe rest of the appended data and its size. We can then just pass back the already decompressed appended data and the dbpro exe will start as normal. We can also return 0 which will tell the dbpro exe an error occurred and it will silently exit. This is mainly useful if used to inject a user friendly DirectX version check but it could be used to do anything that you can be done in a dll and needs to be done as soon as possible after the exe starts.