> 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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codex-7.gitbook.io/codexs-terminal-window/red-team/cobalt-strike/discord-beacon-notifications.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
