Home

Awesome

CS-Aggressor-Scripts

Aggressor script for easier team collaboration with Cobalt Strike.

Description

:information_source: This project contains CNA files for Cobalt Strike, parsers for automated editing of the CNA files, and guides to set up webhooks on the Slack application.

These CNA files will notify you via the Slack application when:

:information_source: The scripts are compatible with both the Windows and Linux operating systems.

The following table illustrates the CNA files included in this project:

NameOSAppDescription
slack-alerts_linux.cnaLinuxSlackSlack CNA file for Linux CS client
slack-alerts_windows.cnaWindowsSlackSlack CNA file for Windows CS client

Acknowledgement

The official author of this project is @sec_groundzero.

Special thanks to my friend @nickvourd for his contributions.

This aggressor script was inspired by @bluescreenofjeff's projects.

Table of Contents

Webhooks

Setup Slack and Webhooks

:information_source: To set up a Slack server and webhook, you can follow these guides provided on the Slack website.

Parsers

In this project, there are two parsers that automate the editing of CNA file according to your personal preferences.

:information_source: However, you can manually edit the CNA files without using the parsers.

In the following table, the parsers of this project are presented:

NameLanguageOSAppDescription
slack-cna-parser_linux.shBashLinuxSlackSlack CNA Parser for Linux systems
slack-cna-parser_windows.ps1PowerShellWindowsSlackSlack CNA Parser for Windows systems

Linux Parser for Slack

The Linux parser for Slack uses three mandatory arguments:

To run the linux parser, you should use the following usage:

./slack-cna-parser_linux.sh --channel "#XXXX" --hostname "XXXX" --webhook "https://hooks.slack.com/services/XXXX"

Example:

linux-parser-example

Windows Parser for Slack

The Windows parser for Slack uses three mandatory arguments:

To run the windows parser, you should use the following usage:

.\slack-cna-parser_windows.ps1  -hostname "XXXX" -channel "#XXXX" -webhook "https://hooks.slack.com/services/XXXX"

Example:

windows-parser-example

References