Skip to content

0xflux/Basic-C-Reflective-DLL-Injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reflective DLL Injector

This is a simple C fully reflective DLL injector, designed to inject a DLL packed into the executable. I have open sourced the very basic injector here, but in my private repo there are a great many more features, including build pipelines & automation, fetching resources from URLs and advanced packing / encryption.

Releasing this one open source as a basic POC, to be rewritten in Rust hopefully soon if have time. This is not designed to work 'out the box', an important config file is held back to prevent misuse. If you'd love to chat about it, or to use the POC yourself (LEGALLY) for learning or research purposes, reach out to me on Twitter: 0xfluxsec.

In this project we have a custom bootstrap loader, as evidenced here copying the sections of our implant DLL into a target process memory:

image

LEGAL NOTICE

This project, including all associated source code and documentation, is developed and shared solely for educational, research, and defensive purposes in the field of cybersecurity. It is intended to be used exclusively by cybersecurity professionals, researchers, and educators to enhance understanding, develop defensive strategies, and improve security postures.

Under no circumstances shall this project be used for criminal, unethical, or any other unauthorized activities. This is meant to serve as a resource for learning and should not be employed for offensive operations or actions that infringe upon any individual's or organization's rights or privacy.

The author of this project disclaims any responsibility for misuse or illegal application of the material provided herein. By accessing, studying, or using this project, you acknowledge and agree to use the information contained within strictly for lawful purposes and in a manner that is consistent with ethical guidelines and applicable laws and regulations.

USE AT YOUR OWN RISK. If you decide to use this software CONDUCT A THOROUGH INDEPENDENT CODE REVIEW to ensure it meets your standards. No unofficial third party dependencies are included to minimise attack surface of a supply chain risk. I cannot be held responsible for any problems that arise as a result of executing this, the burden is on the user of the software to validate its safety & integrity. All care has been taken to write safe code.

It is the user's responsibility to comply with all relevant local, state, national, and international laws and regulations related to cybersecurity and the use of such tools and information. If you are unsure about the legal implications of using or studying the material provided in this project, please consult with a legal professional before proceeding. Remember, responsible and ethical behavior is paramount in cybersecurity research and practice. The knowledge and tools shared in this project are provided in good faith to contribute positively to the cybersecurity community, and I trust they will be used with the utmost integrity.

About

A C based reflective DLL injector which will inject a DLL packed into the very same executable.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages