Skip to main content

Modern Shellcode Template

Build position-independent implants for 32/64-bit Windows with compile-time string hashing, dynamic API resolution, and modern C++20 features.

Quick Start

Get up and running with Stardust in minutes

1

Clone the repository

Get the Stardust template and navigate to the directory.
git clone https://github.com/Cracked5pider/Stardust.git
cd Stardust
2

Build the shellcode

Compile both 32-bit and 64-bit versions of the shellcode.
make
This produces bin/stardust.x64.bin and bin/stardust.x86.bin.
3

Test your shellcode

Use the included module stomping test utility to execute your shellcode.
make stomper
./test/stomper.x64.exe bin/stardust.x64.bin
You should see a MessageBox appear with “Hello world”.

Core Features

Everything you need to build modern implants

Position Independence

Write shellcode that runs from any memory address with full PIC support.

API Resolution

Dynamically resolve Windows APIs from PEB at runtime using hash-based lookup.

String Obfuscation

Compile-time FNV1a hashing to hide strings from static analysis.

Debug Support

Built-in debug mode with DbgPrint for development and testing.

Explore the Documentation

Learn how to customize and extend Stardust for your needs

Architecture

Understand how Stardust components work together.

Adding APIs

Extend your implant with custom Windows APIs.

Module Stomping

Learn the module stomping injection technique.

Basic Example

Walk through the default MessageBox implementation.

API Reference

Complete reference for all Stardust APIs.

Building

Build options, compiler flags, and optimization.

Ready to build your first implant?

Follow our quickstart guide to compile and test Stardust shellcode in under 5 minutes.

Get Started Now