Code Monkey home page Code Monkey logo

slackcat's Introduction

slackcat

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

See discat for Discord version.

Installation

  • Download a prebuilt binary from releases page, unpack and run! or
  • If you have go1.13+ compiler installed: go get github.com/dwisiswant0/slackcat
    • for go1.18+: go install github.com/dwisiswant0/slackcat@latest

Configuration

Step 1: Get yours Slack incoming webhook URL here.

Step 2 (optional): Set SLACK_WEBHOOK_URL environment variable.

export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/xxx/xxx/xxx"

Usage

It's very simple!

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

Flags

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

Workaround

The goal is to get automated alerts for interesting stuff!

▶ assetfinder dw1.io | anew | slackcat -u https://hooks.slack.com/services/xxx/xxx/xxx

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

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

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

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 | slackcat -1

Thanks

slackcat's People

Contributors

dwisiswant0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

slackcat's Issues

Suggestion

Great tool ❤❤

Can you introduce a silent flag that doesn't spit out output but just posts to slack.

Markdown

I hope that we can send a markdown in this tool :)

Upcoming breaking slack API changes

I bit ago I got an email saying slackcat will stop working in 2025, and that nobody can add slackcat to a workspace as of a month ago

Your usage of files.upload requires attention for: Slackcat

Hello $name,

We want to inform you of two important dates related to upcoming changes to support for the files.upload web API method that affect your Slackcat app.

May 8, 2024
Any new applications created on or after this date will be prevented from invoking the files.upload API.

March 11, 2025
Support for the files.upload API will be discontinued.

To prepare for this change, we recommend migrating away from files.upload and instead using the combination of files.getUploadURLExternal and files.completeUploadExternal. More information on how to use these two APIs together can be found on our Uploading files documentation. You can also leverage Slack’s SDKs to help you transition to this new way of uploading files by visiting our api.slack page.

I don't know go at all, but if nobody fixes this before it breaks, I may take a stab at it

installation command is not working

`
kali@kali:~$ go version
go version go1.21.5 linux/amd64

kali@kali:~$ sudo apt-get install python3-pip
[sudo] password for kali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (23.3+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

kali@kali:~$ go get github.com/dwisiswant0/slackcat
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

kali@kali:~$ go install github.com/dwisiswant0/slackcat
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/dwisiswant0/slackcat@latest' to install the latest version

kali@kali:~$ go install github.com/dwisiswant0/slackcat@latest
go: downloading github.com/dwisiswant0/slackcat v0.0.2

kali@kali:~$ cd go/bin

kali@kali:~/go/bin$ ls
slackcat

kali@kali:~/go/bin$
`
change the installation command

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.