Jump to content
Tuts 4 You

How to add support for PEiD plugins


Blue

Recommended Posts

Posted

Hi all,

I am coding next version of Hash calculator and I am thinking to add support for PEiD plugins.

I know that PEiD plugins have two main calls

LoadDll

DoMyJob

But, what I want to know is that, how to dynamically load the dlls present in the folder of Hash calculator ?

As in PEiD, just copy the plugin into the plugin folder and the plugin will be working.

Same thing I want to do. Just copy the plugin to the Hash calculator folder and the plugin will be working with calculator.

How to do this ?

Oh, one more thing, I am coding in MASM, so codes in assembly will be more useful.

Thanks

Posted

FindFirstFile and FindNextFile for finding all files in the current folder, check if they're DLLs and then load them with LoadLibrary

Posted

Thanks bro,

May you please show me a demo source. :unsure:

I am not sure how to use this.

Thanks

Posted

MSDN shows some examples in C++ if you are able to understand it enough to convert to MASM:
/>http://msdn.microsoft.com/en-us/library/aa365200%28v=vs.85%29.aspx

The jist being that they are like every other enumeration API that can be invoked in a loop. For an MASM example check out:
/>http://win32assembly.online.fr/tut31.html

Once you loop each file just check the extensions first for .dll (or any special extension you plan to use). After that you can either just attempt to load them with LoadLibrary as Kill mentioned, or you can check the headers etc. to ensure they are a DLL and all that fun jazz. Once you have the handle after its loaded you can use GetProcAddress to determine if the export exists.

Posted

Thanks atomOs for your help.

Let me check this out, and so some stuffs :flowers:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...