Dynamic Loader System by Nemesis

XV-CEO
Self Deleted
Joined
Oct 29, 2007
Messages
1,342
Reaction score
1,458
The system is already engaged in a main.exe version: 1.04d, but you can use it with any version they want (the name of process of: Loader.dll is: Init), just need to remember to name the dll's, who want to carry their respective main.exe as PluginX.dll where "X "is the ID number for each dll loaded, and of course putting on: "1" in the file: Loader.ini


Code:
For example:


LoadPlugin1 = 1 this charge: Plugin1.dll in: Data\Plugin folder.



PS: The libraries should not have process names, only works with dll's normal.
 
sorry, i dont understand what is the function of this, with this you can load many dll's you want ? with only hooking 1 dll to main?
 
yes, I only test in: 1.04d Season 6 Episode 3 English Protocol, but.. must work in all. you only must hook: Loader.dll using: Init like: ProcessName in your main.exe and you must create a folder called: "Plugin" in: Data, and too you must put: Loader.ini file in your client folder.

PS: This loader can load up: 10 dll files, no more for the moment.
 
Ultimate.dll is a library with: "ProcessName", this loader can only charge normal DLL's, not with processnames.
 
I've coded a more advanced system that is able to load an undefined number of dlls, any name, any function name.

To hook this dll to your main use this code:
Code:
push dllname
call LoadLibraryA
jmp OEP
and change the EP to "push dllname" offset.

Plugins.ini
Code:
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ShadowKing @ RaGEZONE 2012
// 
// Dynamic Dll Loader
// 
// File Name:         Plugins.ini
// File Structure:    "path"
// File Structure:    "DllName.dll"     "DllProcName"     Vitality
// Details:        MAX 100 CHARS    MAX 100 CHARS    [0/1]
// 
// If dll can't be loaded and vitality is set to 1 then main will
// not start.
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

"Data\\Plugins"

"Test1.dll"     "Function1"     1    // It will close main if can't load dll+function
"Test2.dll"     "Function2"     0    // It will run even if can't load dll+function
"Test2.dll"     ""              1    // It will load dll without function
end

Exported function by dll should be defined like this:
Code:
extern "C" __declspec (dllexport) void __cdecl FunctionName()
NOTE THERE ARE NOT ANY PARAMS!

After you hook my dll you'll just need to make the config file and put the dlls you need in the path you specified(in example "Data\\Plugins").

Downloads:

Config+DLL -
Source Code -

Enjoy!

@mauro07: loops are your friends, I've looked into your dll's code and I was like o.0 when I saw 10 functions doing same thing only 1 BYTE changed in the string. Make the computer work for you.
 
I've coded a more advanced system that is able to load an undefined number of dlls, any name, any function name.

To hook this dll to your main use this code:
Code:
push dllname
call LoadLibraryA
jmp OEP
and change the EP to "push dllname" offset.

Plugins.ini
Code:
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ShadowKing @ RaGEZONE 2012
// 
// Dynamic Dll Loader
// 
// File Name:         Plugins.ini
// File Structure:    "path"
// File Structure:    "DllName.dll"     "DllProcName"     Vitality
// Details:        MAX 100 CHARS    MAX 100 CHARS    [0/1]
// 
// If dll can't be loaded and vitality is set to 1 then main will
// not start.
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

"Data\\Plugins"

"Test1.dll"     "Function1"     1    // It will close main if can't load dll+function
"Test2.dll"     "Function2"     0    // It will run even if can't load dll+function
"Test2.dll"     ""              1    // It will load dll without function
end

Exported function by dll should be defined like this:
Code:
extern "C" __declspec (dllexport) void __cdecl FunctionName()
NOTE THERE ARE NOT ANY PARAMS!

After you hook my dll you'll just need to make the config file and put the dlls you need in the path you specified(in example "Data\\Plugins").

Downloads:

Config+DLL -
Source Code -

Enjoy!

@mauro07: loops are your friends, I've looked into your dll's code and I was like o.0 when I saw 10 functions doing same thing only 1 BYTE changed in the string. Make the computer work for you.

yes my friend... my job is very simple and well I can't made better.. but your new system is very cool, I see that also provided the source code, I know to be theirs is not necessary because your system is apparently better and more advanced than mine, but for anyone to say that I keep things here also provided the source code me: Loader.dll, for those who want to have too.



PS: My system is of a level: Beginner, compared to yours ... Congratulations, very well thought out... and if.. from now on I will try to make me more a friend of the loops. xD
 
Last edited:
Sorry, but this just f... fail, lol :D

PHP:
extern "C" _declspec(dllexport) void Init()
{
	DWORD OldProtect;
	
	if (VirtualProtect(LPVOID(0x401000), VirtualProtectOffset, PAGE_EXECUTE_READWRITE, &OldProtect))
	{
		if (LoaderOpt1 == 1)
		{
			LoadLibraryA(".\\Data\\Plugin\\Plugin1.dll");
		}
...
}
}

i didnt mean to spam/flame but this is just epic!
 
Sorry, but this just f... fail, lol :D

PHP:
extern "C" _declspec(dllexport) void Init()
{
    DWORD OldProtect;
    
    if (VirtualProtect(LPVOID(0x401000), VirtualProtectOffset, PAGE_EXECUTE_READWRITE, &OldProtect))
    {
        if (LoaderOpt1 == 1)
        {
            LoadLibraryA(".\\Data\\Plugin\\Plugin1.dll");
        }
...
}
}

i didnt mean to spam/flame but this is just epic!

Why?, Just because something is not complex, does not mean it's useless ... after all the system originally designed and created by me, fulfills the function for which it was developed, and I think that's what matters right?
 
I've coded a more advanced system that is able to load an undefined number of dlls, any name, any function name.

To hook this dll to your main use this code:
Code:
push dllname
call LoadLibraryA
jmp OEP
and change the EP to "push dllname" offset.

Plugins.ini
Code:
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ShadowKing @ RaGEZONE 2012
// 
// Dynamic Dll Loader
// 
// File Name:         Plugins.ini
// File Structure:    "path"
// File Structure:    "DllName.dll"     "DllProcName"     Vitality
// Details:        MAX 100 CHARS    MAX 100 CHARS    [0/1]
// 
// If dll can't be loaded and vitality is set to 1 then main will
// not start.
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

"Data\\Plugins"

"Test1.dll"     "Function1"     1    // It will close main if can't load dll+function
"Test2.dll"     "Function2"     0    // It will run even if can't load dll+function
"Test2.dll"     ""              1    // It will load dll without function
end

Exported function by dll should be defined like this:
Code:
extern "C" __declspec (dllexport) void __cdecl FunctionName()
NOTE THERE ARE NOT ANY PARAMS!

After you hook my dll you'll just need to make the config file and put the dlls you need in the path you specified(in example "Data\\Plugins").

Downloads:

Config+DLL -
Source Code -

Enjoy!

@mauro07: loops are your friends, I've looked into your dll's code and I was like o.0 when I saw 10 functions doing same thing only 1 BYTE changed in the string. Make the computer work for you.

Mirror =)

 
Back