Anarchy Posted June 17, 2010 Posted June 17, 2010 This is a guide for attaching an extender to your L2Server.exe using NTCore's Explorer Suit. First, download and install NTCore's Explorer Suit. You can download it from NTCore's website here. Once you have done that, the tool from Explorer Suit we are going to use is the CFF Explorer, which is located usually in C:\Program Files\NTCore\Explorer Suite\CFF Explorer.exe or Start -> Programs -> Explorer Suit -> CFF Explorer. Now go to File -> Open, and locate your L2Server.exe Now you need to click on "Import Adder" on the left side of the window, and then click the "Add" button, as shown below. Now you need to locate your extender and click open. Once you have done that it should look like the screenshot below. Now you click on the function you wish to import, in my case "DllMain", and click the button "Import By Name" and then click the large button "Rebuild Import Table". This next step is important, you must now click "Rebuilder" on the left side, then check the box named "Build Import Table" and then click "Rebuild", as shown below. Now you can go to File->Save and save your L2Server.exe and your extender is now attached. (If you got an error saying that it cannot find any exported functions, that means you haven't exported your function in your extender correctly, or if the extender is not one you have created, then the creator is most likely using a LoadLibrary method to import that extender, and the above method will not work for attaching it.) Quote
GoodT Posted June 17, 2010 Posted June 17, 2010 Good tutorial... can be used with all type of attaching dlll. Quote
segfault Posted June 25, 2010 Posted June 25, 2010 What is the difference between 'Rebuild by name' and 'Rebuild by ordinal'? Quote
Anarchy Posted June 25, 2010 Author Posted June 25, 2010 Extender.dll is just an example of the DLL to be imported, it can be named anything you want and the exported function can also be named anything you want. Importing by ordinal imports the function using its address on the export table within the DLL, if you then make changes and compile that DLL and the address changes then you will need to import it to the L2Server.exe again otherwise it may not load it correctly, whereas if you import by name, it doesn't matter if the address changes as long as the exported function name is the same. Quote
segfault Posted June 25, 2010 Posted June 25, 2010 thanks a lot! just my thoughts to the community that the posts by Anarchy are invaluable resources and is underrated! :D Quote
rtoservers Posted January 17, 2011 Posted January 17, 2011 and how remove a dll in l2server or change for other? Quote
Anarchy Posted January 18, 2011 Author Posted January 18, 2011 and how remove a dll in l2server or change for other? Go into 'Import Directory'. Find the dll you want to remove. Right click on it and click delete. Follow the last step of this guide to rebuild the import table. Save. Quote
CryStaliN Posted March 11, 2011 Posted March 11, 2011 thanks a lot! just my thoughts to the community that the posts by Anarchy are invaluable resources and is underrated! :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.