CobaltStrikeParser: Python parser for CobaltStrike Beacon’s configuration
CobaltStrikeParser
Python parser for CobaltStrike Beacon’s configuration
Description
Use parse_beacon_config.py for stageless beacons, memory dumps, or C2 urls with Metasploit compatibility mode (default true).
Many stageless beacons are PEs where the beacon code itself is stored in the .data section and XORed with a 4-byte key.
The script tries to find the xor key and data heuristically, decrypt the data and parse the configuration from it.
This is designed so it can be used as a library too.
The repo now also includes a small communication module (comm.py) that can help with communicating to a C2 server as a beacon.
Install
git clone https://github.com/Sentinel-One/CobaltStrikeParser.git
cd CobaltStrikeParser
pip install -r requirements.txt
Use
Extra
To use the communication poc copy it to the main folder and run it from there. For installing the M2Crypto library (a requirement for the poc) on Windows, it’s easiest with installers found online, and not through pip.
Source: https://github.com/Sentinel-One/