<filename>spraycharles/utils/notify.py<gh_stars>0
import pymsteams
from discord_webhook import DiscordWebhook
from notifiers import get_notifier


def slack(webhook, host):
    slack = get_notifier("slack")
    slack.notify(message=f"Credentials guessed for host: {host}", webhook_url=webhook)


def teams(webhook, host):
    notify = pymsteams.connectorcard(webhook)
    notify.text(f"Credentials guessed for host: {host}")
    notify.send()


def discord(webhook, host):
    notify = DiscordWebhook(
        url=webhook, content=f"Credentials guessed for host: {host}"
    )
    response = webhook.execute()

<filename>spraycharles/utils/notify.py<gh_stars>0
import pymsteams
from discord_webhook import DiscordWebhook
from notifiers import get_notifier


def slack(webhook, host):
    slack = get_notifier("slack")
    slack.notify(message=f"Credentials guessed for host: {host}", webhook_url=webhook)


def teams(webhook, host):
    notify = pymsteams.connectorcard(webhook)
    notify.text(f"Credentials guessed for host: {host}")
    notify.send()


def discord(webhook, host):
    notify = DiscordWebhook(
        url=webhook, content=f"Credentials guessed for host: {host}"
    )
    response = webhook.execute()
