Skip to content

Slack API Integration

xer0dayz edited this page Apr 3, 2020 · 8 revisions

To integrate Slack API notifications into Sn1per, edit your ~/.sniper.conf file and enter the appropriate values for the following:

# SLACK API
SLACK_API_KEY="YOUR_KEY_HERE"
SLACK_NOTIFICATIONS="1"
SLACK_NOTIFICATIONS_THEHARVESTER="1"
SLACK_NOTIFICATIONS_EMAIL_SECURITY="1"
SLACK_NOTIFICATIONS_DOMAINS_NEW="1"
SLACK_NOTIFICATIONS_TAKEOVERS_NEW="1"
SLACK_NOTIFICATIONS_SUBOVER_NEW="1"
SLACK_NOTIFICATIONS_SUBJACK_NEW="1"
SLACK_NOTIFICATIONS_S3_BUCKETS="1"
SLACK_NOTIFICATIONS_SUBNETS="1"
SLACK_NOTIFICATIONS_DIRSEARCH_NEW="1"
SLACK_NOTIFICATIONS_SPIDER_NEW="1"
SLACK_NOTIFICATIONS_WHATWEB="1"
SLACK_NOTIFICATIONS_NMAP="1"
SLACK_NOTIFICATIONS_BRUTEFORCE="1"
SLACK_NOTIFICATIONS_WHOIS="1"
SLACK_NOTIFICATIONS_METAGOOFIL="1"
SLACK_NOTIFICATIONS_ARACHNI_SCAN="1"

If you don't already have a Slack API key, you can generate one here: https://api.slack.com/custom-integrations/legacy-tokens

You will also need to create a Slack account and channel to send your notifications to. The default channel is 'sn1per-professional', but you can update this by editing the 'SLACK_CHANNEL' variable in your /usr/share/sniper/bin/slack.sh file.

After that's done, all you need to is run your Sn1per scans as normal to start receiving command output via your custom Slack channel.