Skip to content

A Python wrapper for modern position-independent Meterpreter and Sliver compatible reverse_tcp shellcode, by CelestialSpark inspired from Stardust.

Notifications You must be signed in to change notification settings

v4resk/MeterDust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

MeterDust

A Python wrapper for modern position-independent Meterpreter and Sliver compatible reverse_TCP shellcode, inspired by CelestialSpark and Stardust.

Overview

MeterDust is a Python utility that simplifies the generation and deployment of position-independent shellcode for Meterpreter and Sliver C2 frameworks. It builds upon the foundation laid by CelestialSpark and Stardust to provide a more user-friendly interface.

Features

  • Generate position-independent Meterpreter and Sliver compatible reverse_TCP shellcode
  • Customize IP and port for the C2 server
  • Support for x86 and x64 architectures
  • Output shellcode to file for easy use in various C2 frameworks
  • Evade common detection mechanisms used by EDR/AV solutions
  • Compile-time hashing with FNV1A for function and module resolving

Installation

# Install dependencies
apt install mingw-w64, gcc, make

# Clone the repository
git clone https://github.com/v4resk/MeterDust.git
cd MeterDust

Usage

# Generate shellcode for x64 architecture
python meterdust.py -l <C2_IP> -p <C2_PORT> -a <ARCH> -o <OUTPUT_FILE>

Command-line Arguments

  • -l, --lhost: IP address of your C2 server
  • -p, --port: Port of your C2 server
  • -a, --arch: Target architecture (x86 or x64)
  • -o, --output: Output file name for generated shellcode
  • -h, --help: Show help message and exit

How does it work

  • not existing HTONS and HTONL functions have been hardcoded
  • custom inet_addr function was rewritten and implemented in main.cc
  • Socket creation and interaction functions have been imported from ws2_32.dll
  • Meterpreter Staging Logic hase been copied from the original project and TinyMet

Credits

This project stands on the shoulders of giants:

  • CelestialSpark by Karkas66 - A modern 64-bit position independent meterpreter and Sliver compatible reverse_TCP Staging Shellcode
  • Stardust by Cracked5pider - A modern 32/64-bit position independent implant template

Disclaimer

This tool is intended for legal security testing, educational purposes, and authorized penetration testing only. Usage of MeterDust for attacking targets without prior mutual consent is illegal and not recommended. The developers assume no liability and are not responsible for any misuse or damage caused by this program.

License

MIT License

About

A Python wrapper for modern position-independent Meterpreter and Sliver compatible reverse_tcp shellcode, by CelestialSpark inspired from Stardust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published