Jump to content

Attaching an Extender


Recommended Posts

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.

addj.jpg

 

Now you need to locate your extender and click open.

Once you have done that it should look like the screenshot below.

imported.jpg

 

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.

rebuild.jpg

 

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.)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...

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.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

thanks a lot!

 

just my thoughts to the community that the posts by Anarchy are invaluable resources and is underrated! :D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...