Code Monkey home page Code Monkey logo

stinkyloader's Introduction

StinkyLoader

This project is my WIP implementation of a reflective loader written in C++ based on the works from:

Except mine stinks.

Features:

  • PE/Rich/NT headers overwritten with random data
  • Custom XOR key for payload-module encoding
  • Hash-based API resolving
  • Native API only

Description:

StinkyLoader - C++ implementation of a reflective loader.

LoaderTester - C++ project to aid in testing the loader during development.

Build steps:

Build project in release mode in VS (I use 2019).

Run the provided python script to extract the loader shellcode and prepend to your target dll.

python .\Python\generate.py -o <OUTPUT_FILE> -f <TARGET_DLL>.dll -pe .\x64\Release\StinkyLoader.exe -sct .shlc -xor <YOUR_HEX_XOR_KEY_HERE> --dump-shellcode <SHELLCODE_BLOB_OUTPUT_HERE>

To debug / test your own reflective loader, you can run the LoaderTester with one of the following arguments:

xload <PAYLOAD_DLL>.dll - reflectively load the payload by executing the PIC loader

rload <PAYLOAD_DLL>.dll - reflectively load the dll by testing the load function in StinkyLoader

Todos:

  • Add API unhooking
    • Implement with SysWhyspers
    • Uh, I was supposed to finish this before pushing to github and making the repo public but uh....
    • Uh......

stinkyloader's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.