Using exported Functions of a dll wich i can´t see directly?

Everything else that doesn't fall into one of the other PB categories.
User avatar
N_Gnom
User
User
Posts: 76
Joined: Fri Sep 13, 2013 3:20 pm
Location: Germany

Using exported Functions of a dll wich i can´t see directly?

Post by N_Gnom »

I have a dll and there are not all exported functions visible.
I have one exported mainfunction and it is possible that all the functions are inside a class.

I know how to use exported functions of a dll, but thats now a problem.

I know the names of the exported functions but how i have to call them?

Or is there a way to show all functions inside the dll?(i´m not sure if the names are all correct)
PE Explorer and so on doesn´t let me show all.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Using exported Functions of a dll wich i can´t see direc

Post by IdeasVacuum »

If PE Explorer can't see the functions, then the DLL has most likely been encrypted in some way. Your best bet is to contact the author of the DLL.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
N_Gnom
User
User
Posts: 76
Joined: Fri Sep 13, 2013 3:20 pm
Location: Germany

Re: Using exported Functions of a dll wich i can´t see direc

Post by N_Gnom »

I can see functions...but only a few.
I think in the main function are all the other functions inside.
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Using exported Functions of a dll wich i can´t see direc

Post by Shield »

N_Gnom wrote:I have one exported mainfunction and it is possible that all the functions are inside a class.
If the functions are defined in a class, they won't be visible to the outside (i.e. your program).

Instead, these are virtual methods that will be called based on an object. The methods are stored in a virtual
table and will be called by address. The exported functions are most likely the constructors.
In order to access them, you need to know the exact structure. Do you have some header file?.

If, however, these classes are not pure-virtual, you will be pretty much out of luck calling them with PB,
it will be a pain in the rear not worth the time dealing with. Maybe you could give some more information
about the DLL in question.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
N_Gnom
User
User
Posts: 76
Joined: Fri Sep 13, 2013 3:20 pm
Location: Germany

Re: Using exported Functions of a dll wich i can´t see direc

Post by N_Gnom »

Yes i have the header file for the .lib.
But only for the .lib.
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Using exported Functions of a dll wich i can´t see direc

Post by Shield »

If it is an object oriented library, you'll be much better off writing a procedural wrapper in C++.
There are some examples in the forums on how to do that, it is not that difficult but it requires some
knowledge to get started.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
N_Gnom
User
User
Posts: 76
Joined: Fri Sep 13, 2013 3:20 pm
Location: Germany

Re: Using exported Functions of a dll wich i can´t see direc

Post by N_Gnom »

In wich way the structure should be?
so i can take a look at the header files and post snippets of that.
i don´t wanna post all the header files here.
Post Reply