dissect.cobaltstrike.c_c2
Structure definitions and classes for dealing with Cobalt Strike C2 packets.
Mainly used by dissect.cobaltstrike.c2
.
Attributes
Classes
Enum where members are also (and must be) ints |
|
Enum where members are also (and must be) ints |
Functions
|
Return C compatible typedef string for enum_class. |
Module Contents
- class dissect.cobaltstrike.c_c2.BeaconCommand[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- class dissect.cobaltstrike.c_c2.BeaconCallback[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- dissect.cobaltstrike.c_c2.C2_DEF = Multiline-String[source]
Show Value
""" // Callback data from: Beacon -> Team Server typedef struct CallbackPacket { uint32 counter; uint32 size; BeaconCallback callback; char data[size]; }; // Task from: Team Server -> Beacon typedef struct TaskPacket { uint32 epoch; uint32 total_size; BeaconCommand command; uint32 size; char data[size]; }; struct BeaconMetadata { uint32 magic; uint32 size; char aes_rand[16]; uint16 ansi_cp; // GetACP uint16 oem_cp; // GetOEMCP uint32 bid; uint32 pid; uint16 port; uint8 flag; uint8 ver_major; uint8 ver_minor; uint16 ver_build; uint32 ptr_x64; // for x64 addressing uint32 ptr_gmh; // GetModuleHandle uint32 ptr_gpa; // GetProcAddress uint32 ip; char info[size - 51]; }; """