Logging
Cobalt Strike logs all of its activity on the team server. These logs are located in the logs/ folder in the same directory where you started your team server. All Beacon activity is logged here with a date and timestamp.
Control Date Formatting.
You can control the formatting of some dates and timestamps in the logging output with the following fields in the TeamServer.Prop file.
For additional information on a setting see the README.md in the repository and comments in the TeamServer.prop file.
logfile.timestamp.pattern
- This controls the format of timestamps used in logging.
- The default is "MM/dd HH:mm:ss zzz".
- Text values must comply with rules defined for a Java DateTimeFormatter patterns.
logfile.timezone
- This controls the timezone of timestamps used in logging.
-
This also controls how the date is determined for the file system path used for daily log files.
Example:
.../logs/[date]/events.logExample:
.../logs/[date]/[target-ip]/screenshots.log - The default is UTC.
- A special value of "*default" can be used to inherit the value from the system.
- Text values must comply with standard java TimeZone values.
Example of TeamServer.prop Definitions
logfile.timestamp.pattern=yyyy-MM-dd HH:mm:ss zzz logfile.timezone=America/Los_Angeles # logfile.timezone=*default