A simple way of sending messages from the CLI output to your Webex space with webhook.
Actually, this is a fork version of discat which is a fork of slackcat.
- Download a prebuilt binary from releases page, unpack and run! or
- If you have go1.13+ compiler installed:
go get github.com/eforbus/webexcat
.
Step 1: Get your Webex space webhook URL here
Step 2 (optional): Set WEBEX_WEBHOOK_URL
environment variable.
export WEBEX_WEBHOOK_URL="https://webexapis.com/v1/webhooks/incoming/XXX"
It's very simple!
▶ echo -e "Hello,\nworld!" | webexcat
Usage of webexcat:
-1 Send message line-by-line
-u string
Webex Webhook URL
-v Verbose mode
The goal is to get automated alerts for interesting stuff!
▶ assetfinder twitter.com | anew | webexcat -u https://webexapis.com/v1/webhooks/incoming/XXX
The -u
flag is optional if you've defined WEBEX_WEBHOOK_URL
environment variable.
webexcat also strips the ANSI colors from stdin to send messages, so you'll receive a clean message on your space!
▶ nuclei -l urls.txt -t cves/ | webexcat
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 | webexcat -1
webexcat
is distributed under MIT License.