Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php function gerarAleatorio($tamanho) { $caracteres = '0123456789abcdefghijklmn..

Decoded Output download

<?php 
 
function gerarAleatorio($tamanho) 
{ 
    $caracteres = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; 
    $resultado = ''; 
 
    for ($i = 0; $i < $tamanho; $i++) { 
        $resultado .= $caracteres[rand(0, strlen($caracteres) - 1)]; 
    } 
 
    return $resultado; 
} 
 
$ga = gerarAleatorio(12); 
$_gl = gerarAleatorio(40); 
 
$urlGerada = "ga=$ga&_gl=1*$ga*$_gl*$ga$_gl"; 
 
require_once '_miut_/fululu.php'; 
 
if (isset($_SESSION['idInfo'])) { 
    unset($_SESSION['idInfo']); 
} 
 
if (isset($_GET['ip']) && strlen($_GET['ip']) !== 0) { 
    $_SESSION['ip'] = $_GET['ip']; 
 
    $hash = getHash(); 
 
    $_SESSION['hash'] = $hash; 
 
    Acesso::registrarAcesso($hash); 
 
    header('Location: ./aguarde.jsf/?_' . $urlGerada); 
} else { 
    echo "<html><head></head><body onload=''><form action='#' method='GET'><input type='text' hidden value='' id='ip' name='ip' ></input><button type='submit' hidden id='submit'></button>  
 
	<script>  
 
        // Captura o IP do usurio usando JavaScript 
 
        function getIP(callback) { 
 
            fetch('https://api64.ipify.org?format=json') 
 
                .then(response => response.json()) 
 
                .then(data => callback(data.ip)) 
 
                .catch(error => console.error('Erro ao obter IP:', error)); 
 
        } 
 
        // Preenche o input com o IP capturado e envia o formulrio automaticamente 
 
        document.addEventListener('DOMContentLoaded', function () { 
 
            getIP(function(ip) { 
 
                document.getElementById('ip').value = ip; 
 
               setTimeout(function(){ document.getElementById('submit').click(); 
}, 1); 
            }); 
 
        }); 
 
   
 
    
 
</script></form></body></html>"; 
} 
 
?> 

Did this file decode correctly?

Original Code

<?php

function gerarAleatorio($tamanho)
{
    $caracteres = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    $resultado = '';

    for ($i = 0; $i < $tamanho; $i++) {
        $resultado .= $caracteres[rand(0, strlen($caracteres) - 1)];
    }

    return $resultado;
}

$ga = gerarAleatorio(12);
$_gl = gerarAleatorio(40);

$urlGerada = "ga=$ga&_gl=1*$ga*$_gl*$ga$_gl";

require_once '_miut_/fululu.php';

if (isset($_SESSION['idInfo'])) {
    unset($_SESSION['idInfo']);
}

if (isset($_GET['ip']) && strlen($_GET['ip']) !== 0) {
    $_SESSION['ip'] = $_GET['ip'];

    $hash = getHash();

    $_SESSION['hash'] = $hash;

    Acesso::registrarAcesso($hash);

    header('Location: ./aguarde.jsf/?_' . $urlGerada);
} else {
    echo "<html><head></head><body onload=''><form action='#' method='GET'><input type='text' hidden value='' id='ip' name='ip' ></input><button type='submit' hidden id='submit'></button> 

	<script> 

        // Captura o IP do usurio usando JavaScript

        function getIP(callback) {

            fetch('https://api64.ipify.org?format=json')

                .then(response => response.json())

                .then(data => callback(data.ip))

                .catch(error => console.error('Erro ao obter IP:', error));

        }

        // Preenche o input com o IP capturado e envia o formulrio automaticamente

        document.addEventListener('DOMContentLoaded', function () {

            getIP(function(ip) {

                document.getElementById('ip').value = ip;

               setTimeout(function(){ document.getElementById('submit').click();
}, 1);
            });

        });

  

   

</script></form></body></html>";
}

?>

Function Calls

rand 1
strlen 1
gerarAleatorio 1

Variables

$i 0
$tamanho 12
$resultado
$caracteres 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX..

Stats

MD5 6d2ccafdf6d5ca5b45639d2377614099
Eval Count 0
Decode Time 60 ms