403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/software/Services/PHP/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/software/Services//PHP/pushonesignal.php
<?PHP
    function sendMessage($message,$header,$url,$app_id,$player_id){
        $content = array(
            "en" => $message
            );
        $headings = array(
                "en" => $header
                );

        $large_icon =$url;
      
        if ($url != ""){

            $fields = array(
                'app_id' => $app_id,
                'include_player_ids' => array($player_id),
                'headings' => $headings,
                'large_icon' => $large_icon,
                'contents' => $content
            );

        }else{

            $fields = array(
                'app_id' => $app_id,
                'include_player_ids' => array($player_id),
                'headings' => $headings,
                'contents' => $content
            );

        }
      
  
        $fields = json_encode($fields);
        print("\nJSON sent:\n");
        print($fields);
        
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/notifications");
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8'));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
        curl_setopt($ch, CURLOPT_HEADER, FALSE);
        curl_setopt($ch, CURLOPT_POST, TRUE);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

        $response = curl_exec($ch);
        curl_close($ch);
        
        return $response;
    }
    

    $message= "Nosa is online, you can chat with him now";
    $header = "Penpal America";
    $url="https://chatme24.com/penpalamerica/upload/php/upload/1636794584_9731618f80d821661641363838.jpg";
    $app_id="1bdd80c5-cabb-4296-9e59-ef5fa8638eed";
    $player_id="16b26988-0afb-44e0-be9b-0defb28af7db";

    $response = sendMessage($message,$header,$url,$app_id,$player_id);
    $return["allresponses"] = $response;
    $return = json_encode( $return);
    
    print("\n\nJSON received:\n");
    print($return);
    print("\n");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit