Skip to content

Commit

Permalink
Update BlacklistBypassTemplate.php
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbraz authored Apr 12, 2024
1 parent 77a21a2 commit 8ed44db
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions html/BlacklistBypassTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,26 +83,23 @@
$message = ">".$url." was visited by ".$ip.". ".$allowed." (`".$org."`)";
}

// Set Slack Information Here ************** MAKE SURE YOU SET THIS ****************
if($jedi == 1){$webhookurl = "https://hooks.slack.com/services/BLOCKED_CHANNEL_WEBHOOK_HERE";}else{$webhookurl = "https://hooks.slack.com/services/ALLOWED_CHANNEL_WEBHOOK_HERE";}
// Don't alert slack when I visit the page
if($ip != $myip){

// Use a Slack webhook for a #blocked channel you can mute (first) and a #phishing one (second)
if($jedi == 1){$webhookurl = "https://hooks.slack.com/services/UPDATE_WEBHOOK_FOR_BLOCKED_CHANNEL_BOT"; $icon = ":no_entry:";}else{$webhookurl = "https://hooks.slack.com/services/UPDATE_WEBHOOK_FOR_PHISHING_CHANNEL_BOT"; $icon = ":fishing_pole_and_fish:";}

$cmd = 'curl -s -X POST --data-urlencode \'payload={"channel": "'.$channel.'", "username": "PhishBot", "text": "'.$message.'", "icon_emoji": ":bell:"}\' '.$webhookurl;
// Set Slack Information Here ************** MAKE SURE YOU SET THIS ****************
$cmd = 'curl -s -X POST --data-urlencode \'payload={"channel": "'.$channel.'", "username": "PhishBot", "text": "'.$message.'", "'.$icon.'": ":bell:"}\' '.$webhookurl;
//echo $cmd;
exec($cmd);

// You Can Uncomment If You Want to Use a Database to Capture Requests (ask me for stored procedure)
//$conn = mysqli_connect('127.0.0.1', 'USERNAME', 'PASSWORD', 'phishbypass');
//// Check connection
//if ($conn->connect_error) {
// die("Connection failed: " . $conn->connect_error);
//}

//$sql = "CALL InsertData('$ip','$id','$org','$jedi','$url');";
//$result = $conn->query($sql);

//printf($conn->error);
//$conn->close();
}

// Send Analytics to API
$cmdanalytics = 'curl -s -k -X POST -d \'IP='.$ip.'&URL='.$url.'&Org='.$org.'&Status='.$allowed.'&ExtraID='.$id.'\' https://api.xolatam.us/receiveanalytics.php';
//echo $cmdanalytics;
exec($cmdanalytics,$result);

?>

Expand All @@ -119,6 +116,3 @@






0 comments on commit 8ed44db

Please sign in to comment.