Log in

View Full Version : export any functions from a DLL


oyang2002
May 13th, 2002, 14:57
I wrote a progarm several months ago which can add a
section to a DLL,my purpose is to move the export directory
into this section and add as much entries as you like in
it.so you can any interesting functions from the DLL.
(Maybe I will modify it to work on EXE file too...)

Although I am a newbie and my tool is very simple,I think
it is useful indeed and I haven't notice any tool like that.
I have cracked some programs using it.

IMOP it is useful to write a serial number or license
generator.

Anybody interested?

amois
May 15th, 2002, 05:00
Firstly, I have to say, "I am not good programmer". I could'nt understand exactly.

push x
push y
call z
cmp eax, ????

You mean, we can call "call z" which is not exported function from DLL file. I am trying to call "z" from DLL with little ASM code. Result is different from original DLL. But, this DLL is working under 3dmax (I mean it's plugin), therefor maybe I could'nt get result.

Anyway, I want to know details about your utility. If you can reply some examples, it will be nice.

regards
amois

oyang2002
May 15th, 2002, 14:19
I have modified my program to make it operate on other
PE file such as EXE etc.

The point is to add a section and build a new export
directory where you can add entries into it. The original
function entries were kept there to make the program
run correctly. (By now the size of new section is 32KB
maybe it is enough:-)

Of course it is not always safe to call those functions
because maybe there are some variables need to be
initialized or some function need to be called first.
You know what you are doing.

I wrote a lilttle EXE and export a function from it,
the result is OK. BUT when I call a function from
a commercial software it crashed!

If you are interested we can talk about it;-)

Good luck! (To run it you need MFC42.dll)