Jump to content
Tuts 4 You

[NASM][Help] Compile nasm to DLL importing another DLL


opc0d3

Recommended Posts

Posted

Hello, folks!

Here me again.. I'm trying to implement PEB hooking, but as you may know we have first to export the same symbol as the other dll exports... 
So i'm trying to do this with nasm. I dind't find yet a way to create a dll with def files on alink..

The idea is to import the dll inside the nasm.. define all the symbols my_OriginalDlllSymbol... inside all these fake symbols JMP to the original.
I couldn't find a way to do this. NASM doesn't offer even any type of aliases to the imported symbol.

ALINK seem doesn't support def files.

EXPORTS
my_OriginalDlllSymbol = OriginalDlllSymbol

Any ideas ? Thanks in advance...

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...