A simple way of sending messages from the CLI output to your Discord channel with webhook.

discat

A simple way of sending messages from the CLI output to your Discord channel with webhook.

Actually, this is a fork version of slackcat that I made too!

Installation

  • Download a prebuilt binary from releases page, unpack and run! or
  • If you have go1.13+ compiler installed: go get dw1.みんな/discat.

Configuration

Step 1: Get yours Discord channel webhook URL here.

Step 2 (optional): Set DISCORD_WEBHOOK_URL environment variable.

export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/xnxx/xxx-xxx"

Usage

It's very simple!

echo -e "Hello,\nworld!" | discat

Flags

Usage of discat:
  -1    Send message line-by-line
  -u string
        Discord Webhook URL
  -v    Verbose mode

Workaround

The goal is to get automated alerts for interesting stuff!

▶ assetfinder twitter.com | anew | discat -u https://hooks.discord.com/services/xxx/xxx/xxx

The -u flag is optional if you've defined DISCORD_WEBHOOK_URL environment variable.

Discat also strips the ANSI colors from stdin to send messages, so you'll receive a clean message on your Discord!

▶ nuclei -l urls.txt -t cves/ | discat

Proof

Line-by-line

Instead of have to wait for previously executed program to finish, use the -1 flag if you want to send messages on a line by line (default: false).

▶ amass track -d domain.tld | discat -1

License

discat is distributed under MIT License.

Owner
Similar Resources

Go simple progress bar writing to output

Go simple progress bar writing to output

💯 progress-go Go simple progress bar writing to output 📖 ABOUT Contributors: Rafał Lorenz Want to contribute ? Feel free to send pull requests! Have

Oct 30, 2022

(Probably) The easiest way to clone your base Go project repository

GoStrap GoStrap probably will going to be the easiest way for you to create new Go project using your existing project template. This CLI actually onl

Mar 13, 2022

Lightweight CLI tool to programmatically rescale your Hetzner virtual server daily to optimize your budget spending

Lightweight CLI tool to programmatically rescale your Hetzner virtual server daily to optimize your budget spending

Nov 28, 2022

A CLI to replace your git commit command, so your git message can partially follow the Conventional Changelog ecosystem

A CLI to replace your git commit command, so your git message can partially follow the Conventional Changelog ecosystem

COMMIT CLI A CLI to replace your git commit command, so your git message can partially follow the Conventional Changelog ecosystem. And yes, it is bui

Feb 9, 2022

Are you programming and suddenly your stomach is rumbling? No problem, order your Ifood without leaving your favorite text editor ❤️

vim-ifood Você ta programando e de repente bateu aquela fome? Sem problemas, peça seu Ifood sem sair do seu editor de texto favorito ❤️ Are you progra

Jun 2, 2022

News-parser-cli - Simple CLI which allows you to receive news depending on the parameters passed to it

News-parser-cli - Simple CLI which allows you to receive news depending on the parameters passed to it

news-parser-cli Simple CLI which allows you to receive news depending on the par

Jan 4, 2022

GoTTY is a simple command line tool that turns your CLI tools into web applications.

GoTTY is a simple command line tool that turns your CLI tools into web applications.

GoTTY - Share your terminal as a web application

Jan 3, 2023

gon is a simple, no-frills tool for signing and notarizing your CLI binaries for macOS

gon is a simple, no-frills tool for signing and notarizing your CLI binaries for macOS

Sign, notarize, and package macOS CLI tools and applications written in any language. Available as both a CLI and a Go library.

Jan 4, 2023

kcon is a simple CLI tool to switch the context of your Kubeconfig file.

kcon kcon is a simple CLI tool to switch the context of your Kubeconfig file. Scope The code published here is educational only. Usage Usage of kcon:

Oct 14, 2021
Build an interactive CLI application with Go, Cobra and promptui. Video tutorial available on the Div Rhino YouTube channel.

Build an interactive CLI app with Go, Cobra and promptui Text tutorial: https://divrhino.com/articles/build-interactive-cli-app-with-go-cobra-promptui

Dec 8, 2022
Connect to a Twitch channel's chat from your terminal

CLI tool to connect to Twitch chat

Dec 20, 2022
PingMe is a CLI tool which provides the ability to send messages or alerts to multiple messaging platforms & email.
PingMe is a CLI tool which provides the ability to send messages or alerts to multiple messaging platforms & email.

PingMe is a personal project to satisfy my needs of having alerts, most major platforms have integration to send alerts but its not always useful, either you are stuck with one particular platform, or you have to do alot of integrations. I needed a small app which i can just call from my backup scripts, cron jobs, CI/CD pipelines or from anywhere to send a message with particular information. And i can ship it everywhere with ease. Hence, the birth of PingMe.

Dec 28, 2022
CLI for publishing/receiving CloudEvent messages through NATS

cenats CLI for publishing/receiving CloudEvent messages through NATS Use Case cenats is designed to make testing services that generate or consume eve

Nov 5, 2021
A simple way for CLI command to have many subcommands

subcommands This is a modified fork of google/subcommands that uses lucasepe/pflag Subcommands is a Go package that implements a simple way for a sing

Oct 12, 2021
A CLI to turn Go's benchmark output into pictures

benchdraw benchdraw allows you to make easy to read picture plots from data in Go's benchmark format, implemented in pure Go. Benchdraw does not try t

Nov 28, 2022
CLI to output stargazer ⭐️ histogram for a GitHub repository

bestgo bestgo is a CLI that pulls live data from https://api.bestofgo.dev (UI coming soon). This is an application that scrapes GitHub data for Go rep

Jun 30, 2022
A CLI tool for running Go commands with colorized output
A CLI tool for running Go commands with colorized output

Goli Goli is a CLI Tool for running Go commands with colorized output. Note: Goli is still a WIP. It has very basic commands and limitations. Feel fre

Nov 24, 2022
Notification webhook for GoPhish

GoPhish Notifier GoPhish Notifier notifies red team members when their GoPhish campaign status has been updated. It supports both Slack and Email noti

Dec 28, 2022
Small CLI Tool to store test artifacts in a tamperproof way

Small CLI Tool to store test artifacts in a tamperproof way

Oct 3, 2022