Files
MaorSabag-NaX/src_loader/include/Constexpr.h
T
MaorSabag c0fc8d878b Initial commit: NoNameAx public release
Position-independent C2 beacon for Adaptix Framework with:
- PIC shellcode beacon (PEB walk, FNV1a hashing)
- BeaconGate API proxy + WFSO PoC sleepmask (extensible)
- BOF execution with module stomping
- Malleable C2 profiles with runtime switching
- WinHTTP transport (proxy-aware)
- Token manipulation (steal, impersonate, create)
- TCP tunneling (SOCKS, lportfwd, rportfwd)
- SMB pivoting
- Stardust UDRL loader with module stomping
2026-06-28 09:44:19 -04:00

33 lines
528 B
C

#ifndef STARDUST_CONSTEXPR_H
#define STARDUST_CONSTEXPR_H
#include <Common.h>
#define HASH_STR( x ) ExprHashStringA( ( x ) )
CONSTEXPR ULONG ExprHashStringA(
_In_ PCHAR String
) {
ULONG Hash = { 0 };
CHAR Char = { 0 };
Hash = H_MAGIC_KEY;
if ( ! String ) {
return 0;
}
while ( ( Char = *String++ ) ) {
if ( Char >= 'a' ) {
Char -= 0x20;
}
Hash ^= (UCHAR)Char;
Hash *= H_MAGIC_PRIME;
}
return Hash;
}
#endif //STARDUST_CONSTEXPR_H