CodeX's Terminal Window
  • root@codex
  • 🐙Red Team
    • Red Team OPSEC
      • Initial Recon
      • Weaponization
      • Infrastructure
        • Example Red Team Infra
        • Cobalt Strike Redirectors
        • Using SSH Tunneling to secure C2 infra
      • Phishing
      • Internal Recon
      • Lateral Movement
      • Post-Exploitation
      • Exfiltration
      • Cleanup
    • Red Team TTPs
      • Active Directory
      • Persistence
      • Exfiltration
      • Phishing
      • Windows Bypasses
    • Red Team Dev
      • Extending Havoc C2
        • Third Party Agents
          • 1: Understanding the interface
          • 2: Writing the agent
          • 3: Writing the agent handler
          • 4: Testing the agent
      • Loader Dev
        • In Memory OPSEC
          • PE Structures
          • Memory Permissions and Allocation Types
          • In Memory Signatures
          • Thread Stack
          • Windows Events
          • Userland Hooks
          • AMSI & ETW
        • Evasion Adventures
        • Loader basics
        • Sleep masking
        • Mimikatz vs Windows Defender
        • Indirect syscalls
    • Cobalt Strike
      • Modifying the Sleep Mask Kit
      • Discord Beacon Notifications
      • Evading Hunt-Sleeping-Beacons
      • Beacon Object Files
    • Misc. Interesting Stuff
  • 🛡️Blue Team
    • Detecting Cobalt Strike
      • Sleep Mask Kit IOCs
      • Hunting Beacon in the heap
      • Decrypting C2 traffic with known key
  • 🚩CTF Solutions
    • Cyber Defenders Discovery Camp 2021
      • 👁️‍🗨️Lets Go Hunting
      • 🐧Linux Rules The World!
      • 📻Going active
      • 🗄️File it away
      • 😷Behind the mask
  • Box challenges
    • 📦Box Writeups
  • Me myself and I
    • root@codex #
Powered by GitBook
On this page
  1. Red Team
  2. Cobalt Strike

Discord Beacon Notifications

:ping:

PreviousModifying the Sleep Mask KitNextEvading Hunt-Sleeping-Beacons

Last updated 3 years ago

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

Clone my git repo:

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

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

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

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

Paste the id in alert.py in the "ping_id" variable (as a str)

Edit discord_notify.cna and replace the "path_to_py" variable with the path to the alert.py file

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

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!

🐙
https://github.com/CodeXTF2/beacon_notify_discordhook