GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UserExistsError/DllLoaderShellcode: Shellcode to load an appended Dll

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Extract
Extract
 
 
Loader
Loader
 
 
TestDll
TestDll
 
 
TestExe
TestExe
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Loader.sln
Loader.sln
 
 
README.md
README.md
 
 

Repository files navigation

DLL loading shellcode

This project is based off the Reflective DLL loader used in meterpreter (https://github.com/stephenfewer/ReflectiveDLLInjection). However, instead of searching backwards from the instruction pointer to find and load itself, it searches forward in memory to load an appended DLL. The advantage is that the DLL does not have to have the reflective loader compiled in.

Usage

The solution will output 2 files:

  • loader.x86.bin
  • loader.x64.bin

These are 32 and 64 bit shellcode for loading a DLL. To use:

copy /b loader.x64.bin+MyModule.dll MyModule.bin

This will concatenate the loader shellcode and an arbitrary DLL. Point execution at the beginning and it will load the DLL and call its entry point. Make sure the shellcode and DLL architecture match.

To test the shellcode:

TestExe.exe MyModule.bin

Building TestDll will produce the file TestDll/TestDll.ARCH.CONFIG.bin which is a concatenation of the loader and a test Dll that simply calls MessageBoxA in DllMain.

About

Shellcode to load an appended Dll

Topics

dllpe-loadershellcode

Resources

Readme
MIT license
Activity

Stars

93 stars

Watchers

1 watching

Forks

33 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.