Git Product home page Git Product logo

maraca's Introduction

Maraca

Simple D/Invoke Process Hollower that I ported over from my P/Invoke one written in OSEP as practice for the CRTO2 course.

Usage

Usage is simple. Clone the repository and generate some shellcode using msfvenom or your chosen provider. Some example calc shellcode has been placed in the repository already.

msfvenom -p windows/x64/exec CMD=calc.exe -f raw -o shellcode.bin

Encrypt the shellcode with your chosen key.

python3 encryption.py flareon shellcode.bin

Open the DInvokeHollow Solution file (.sln) in Visual Studio and add references in the Solution Explorer to the two .dll files included.

Add References

Also add the dnMerge NuGet package to the solution so that we can use the exe without having the transport the .dll files with it. Go to References -> Manage NuGet Packages and add it from there.

Add NuGet

Copy the encrypted shellcode output into the Program.cs file by replacing the placeholder shellcode and then build!

Caveat

Don't expect this to beat defender or anything. It's very simple and just uses dynamic invocation of APIs at runtime and the stock minified D/Invoke from Rastamouse.

TODO

  • Modify D/Invoke with standard dynamic invocation to use NT calls rather than calls from Kernel32.
  • Add an option to use manual mapping of NTDLL into memory rather than dynamic invocation
  • Add an option to use direct syscalls via GetSyscallStub as further practice
  • Update README when done to include all the necessary D/Invoke DLLs
  • Clean up Win32.cs and remove unnecessary structs and declarations

My next step is to modify it to use lower level APIs and manual mapping of ntdll into a virtual address space to try and push evasion knowledge further!

FAQ

  • Why's it called Maraca?

Everyone manages to think of some shit hot name for their tool and I just couldn't so I just googled hollow things and saw a Maraca, now here we are

maraca's People

Contributors

heartburn-dev avatar

Stargazers

Zer061 avatar

Watchers

 avatar

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.