Blue Posted July 21, 2011 Posted July 21, 2011 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 LoadDllDoMyJobBut, 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
Killboy Posted July 21, 2011 Posted July 21, 2011 FindFirstFile and FindNextFile for finding all files in the current folder, check if they're DLLs and then load them with LoadLibrary
Blue Posted July 22, 2011 Author Posted July 22, 2011 Thanks bro, May you please show me a demo source. I am not sure how to use this. Thanks
atom0s Posted July 22, 2011 Posted July 22, 2011 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.aspxThe 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.htmlOnce 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.
Blue Posted July 23, 2011 Author Posted July 23, 2011 Thanks atomOs for your help. Let me check this out, and so some stuffs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now