> For the complete documentation index, see [llms.txt](https://codex-7.gitbook.io/codexs-terminal-window/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codex-7.gitbook.io/codexs-terminal-window/red-team/cobalt-strike/discord-beacon-notifications.md).

# Discord Beacon Notifications

This post is a short easy guide to setting up discord notifications using a small github project I posted recently.

Clone my git repo: <https://github.com/CodeXTF2/beacon_notify_discordhook>

```
git clone https://github.com/CodeXTF2/beacon_notify_discordhook.git
```

Get a discord webhook in Server Settings -> Integrations -> Webhooks -> New webhook

![](/files/AUIyqa8do8R7BsrRT00U)

Copy the webhook url and paste it in alert.py in the webhookurl variable

![](/files/UQevPwZG33RRLwLYQpYa)

![](/files/csox72zGYuRqwEaE1SBf)

Get your userid by right clicking your discord name and clicking "Copy id"

![](/files/o9YM6rC4OnpR2YDYDleQ)

Paste the id in alert.py in the "ping\_id" variable (as a str)

![](/files/r59Nn3e3jjZHzrvFKUFL)

Edit discord\_notify.cna and replace the "path\_to\_py" variable with the path to the alert.py file

![](/files/IpMgOCqgCkT1KQZZqTnN)

Load the .cna file in the teamserver via the headless AggressorScript console ./agscript

![](/files/MRq0GZDI1xKo4bdiwURV)

You can use linux utilities like "screen" to leave the agscript client running in the background after you terminate your shell session.

Now, spawn a beacon and you should get a ping in discord!

![](/files/y3CifVGC2OnzA8VPXyd7)
