Skip to content

Fast Conversion Windows Dynamic Link Library To ShellCode

Notifications You must be signed in to change notification settings

moxiaolongx0/DllToShellCode

 
 

Repository files navigation

DllToShellCode

Fast Conversion Windows Dynamic Link Library To ShellCode

Features

  • Support 32-bits and 64-bits
  • Support Compression(using ntdll RtlCompressBuffer function or aplib)
  • Support two modes
    • Direct invoke dllmain(lpReserved as parameter),if you don't want using the dll internal functions
    • Invoke the shellcode will return the address of export function, so you can use it in anywhere

OverView

Few Assembly used, almost all code are developed in C language(only use assembly language in 32-bits self-delta) Develop by Visual Studio 2013

Usage

    BinToHex:         DllToShellCode b <in_file> <out_file>
    Compress File:    DllToShellCode c mode <in_file> <out_file>
    Dll To ShellCode: DllToShellCode d shellcode_mode <param> compress_mode
    Compress File mode
            0 = compress with ntdll
            1 = compress with aplib
    DllToShellCode shellcode_mode
            0 = only call dllmain, <param> is the dllmain param lpReserved
            1 = return export address, <param> is the export name
    DllToShellCode compress_mode
            0 = no compress
            1 = compress with ntdll
            2 = compress with aplib

About

Fast Conversion Windows Dynamic Link Library To ShellCode

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 95.0%
  • Assembly 4.1%
  • Batchfile 0.9%