Jump to content

Recommended Posts

Posted

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

Posted

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.

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

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.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...