SkillAgentSearch skills...

DllToShellCode

Fast Conversion Windows Dynamic Link Library To ShellCode

Install / Use

/learn @killeven/DllToShellCode
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars420
CategoryDevelopment
Updated9d ago
Forks139

Languages

C

Security Score

80/100

Audited on Mar 19, 2026

No findings