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 eval(str_rot13(gzinflate(str_rot13(base64_decode('LUrHru24EfyawYxqygFeVjrKOYeNoZxm1..

Decoded Output download

require_once('fiberhome.php');
	
	$Fiber = new FiberHome();
	
	if (isset($_POST['insert']) && !empty($_POST['insert']))
	{
		if ($_POST['insert'] == 'yes')
		{
			if (!isset($_POST['nome']) || !isset($_POST['ftth']) || !isset($_POST['pon']) || !isset($_POST['vlan']) || !isset($_POST['dt']))
			{
				if (empty($_POST['nome']) || empty($_POST['ftth']) || empty($_POST['pon']) || empty($_POST['vlan']) || empty($_POST['dt']))
				{
					exit("ERRO");
				}
			}
			else
			{
				$Fiber->ONU_Add($_POST['pon'], $_POST['ftth'], $_POST['nome'], 'MAC', $_POST['dt']);
				$configuracoes = array ("CVLAN" => $_POST['vlan'], "CCOS" => 0);
				$Fiber->ONU_LAN_VLAN_ADD($_POST['pon'], $_POST['ftth'], "NA-NA-NA-1", $configuracoes);
			}
		}
	}
	
	
	$protocolo;
    $host;
	$finalBase;
	
    function Host()
    {
        $host = $_SERVER['HTTP_HOST'];
        return $host;
    }
	
	function Protocolo()
    {
        if (strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === false) {
            $protocolo = 'http://';
        } else {
            $protocolo = 'https://';
        }
        return $protocolo;
    }
	
    function base($request_url = '')
    {
        $finalBase = Protocolo() . Host();
        return empty($request_url) ? $finalBase . '/' : $finalBase . '/' . $request_url;
    }

Did this file decode correctly?

Original Code

<?php
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUrHru24EfyawYxqygFeVjrKOYeNoZxm1tdbbfbFAa7YDN0kq6uaWD3c/3n9Ea/3Qy7/jFCxYMh/5nJX5uWffHWq/P5/42JMHe284AtGROoU/gvSUpbdHUyAlIefUlErbwsbZRyMcg6Jiu4vyA5CG+1Iwm3HLqOiHa/prgzkXoz1NeXw4+UrHZAb9GkgNXa8xlp+XM+lsEG+HUO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tTo6K3Ogqo8ENSu2KuZSl4XUfgVF2pDVcOvY1bOnLsm4i6W80gKiFQ0I8WkfMk6zeTO4OyNUA7HtXIwsnYcxWNIlqbd+g7NVHFWbdPttrKBp2OUvw1ztFVjxMlCtL9UTSRxHQ18mFCVJJQsCHPVm65P7eQBrsR9gEGZ730jpDHJ4L2PyQsG1Nnd7CINDfUFm0JdD5SdhT1COBJKzg39TljoWML66BVLoK7y0qAdRu5E8wl29lJMuA/zZEGRlSEliVCQv70djllqyzgY8/grCHXezx2T6jXnlQ79K8OCyEtc5+IubAk10PzkozeLrwR3ZvjPA8KG5P89JPTmL9h8f3//6/37938B')))));
?>

Function Calls

strrev 3
gzinflate 11
str_rot13 11
gzuncompress 4
rawurldecode 1
base64_decode 18

Variables

None

Stats

MD5 83536094b42e47a85cfb0f50b76f7801
Eval Count 16
Decode Time 121 ms