timwhitez starred CelestialSpark
2024-5-17 11:24:18 Author: github.com(查看原文) 阅读量:6 收藏

A modern 64-bit position independent meterpreter and Sliver compatible reverse_TCP Staging Shellcode based on Cracked5piders Stardust

#include <Common.h>
#include <Constexpr.h>
#pragma comment(lib, "ws2_32.lib")

LPWSTR* arglist;
// Define IP Adress of your C2 Stager (!)
#define IP_STR  "10.10.10.10"
// Define PORT 443 of your TCP Stager
#define PORT 443
...

Why

I wanted to improve my understanding of position independent Shellcode, plus... My Meterpreter reverse_TCP Stager gets caught by a lot of AV/EDRs and I was hoping to somehow get around the IoCs the 15 year old Meterpreter reverse_TCP Shellcode generated by msfvenom. Inspirations were:

How does it work

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

Usage


文章来源: https://github.com/Karkas66/CelestialSpark
如有侵权请联系:admin#unsafe.sh