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 goto YSA0R; NmTjd: if (strpos($_SERVER["\x48\124\x54\x50\137\125\x53\x45\122\137\1..

Decoded Output download

<?php 
 goto YSA0R; NmTjd: if (strpos($_SERVER["HTTP_USER_AGENT"], "curl") !== false) { die("Acesso n\303\243o autorizado"); } goto NiXfS; NiXfS: include_once "./banco_de_dados/index.php"; goto rt01T; HyzlI: date_default_timezone_set("America/Sao_Paulo"); goto NmTjd; YSA0R: if (!isset($_SESSION)) { session_start(); } goto HyzlI; rt01T: if (isset($_POST["contar"])) { $data["atual"] = date("Y-m-d H:i:s"); $data["online"] = strtotime($data["atual"] . " - 59 seconds"); $data["online"] = date("Y-m-d H:i:s", $data["online"]); if (isset($_SESSION["visitante"]) and !empty($_SESSION["visitante"])) { $result_up_visita = "UPDATE contador SET\xa		data_final = '" . $data["atual"] . "'\xa		WHERE id = '" . $_SESSION["visitante"] . "'"; $resultado_up_visitas = mysqli_query($conn, $result_up_visita); } else { $result_visitas = "INSERT INTO contador (data_inicio, data_final)VALUES ('" . $data["atual"] . "', '" . $data["atual"] . "')"; $resultado_visitas = mysqli_query($conn, $result_visitas); $_SESSION["visitante"] = mysqli_insert_id($conn); } $result_qnt_visitas = "SELECT count(id) as online FROM contador WHERE data_final >= '" . $data["online"] . "'"; $resultado_qnt_visitas = mysqli_query($conn, $result_qnt_visitas); $row_qnt_visitas = mysqli_fetch_assoc($resultado_qnt_visitas); echo $row_qnt_visitas["online"]; } goto aOsv0; aOsv0: ?>

Did this file decode correctly?

Original Code

<?php
 goto YSA0R; NmTjd: if (strpos($_SERVER["\x48\124\x54\x50\137\125\x53\x45\122\137\101\x47\105\116\124"], "\x63\165\162\x6c") !== false) { die("\x41\143\145\x73\x73\x6f\40\x6e\303\243\x6f\x20\141\x75\164\157\x72\151\172\141\144\157"); } goto NiXfS; NiXfS: include_once "\x2e\x2f\142\x61\156\x63\x6f\x5f\x64\145\x5f\x64\x61\x64\x6f\163\57\x69\x6e\144\x65\x78\56\x70\150\x70"; goto rt01T; HyzlI: date_default_timezone_set("\x41\155\x65\162\151\x63\141\57\123\x61\x6f\x5f\x50\141\x75\154\157"); goto NmTjd; YSA0R: if (!isset($_SESSION)) { session_start(); } goto HyzlI; rt01T: if (isset($_POST["\143\157\x6e\164\141\162"])) { $data["\x61\164\165\x61\x6c"] = date("\131\x2d\x6d\55\x64\x20\110\x3a\151\72\163"); $data["\157\156\154\x69\x6e\x65"] = strtotime($data["\141\164\165\x61\x6c"] . "\40\x2d\x20\65\71\x20\x73\145\x63\x6f\x6e\x64\163"); $data["\157\156\154\x69\156\145"] = date("\131\x2d\155\55\x64\x20\x48\72\151\x3a\163", $data["\x6f\156\x6c\x69\156\x65"]); if (isset($_SESSION["\x76\x69\x73\151\164\141\156\x74\x65"]) and !empty($_SESSION["\166\151\163\151\x74\x61\x6e\x74\145"])) { $result_up_visita = "\125\x50\104\101\124\x45\x20\x63\157\156\164\141\144\x6f\x72\x20\123\x45\x54\xa\11\11\x64\x61\x74\141\137\x66\151\156\x61\x6c\40\75\x20\47" . $data["\x61\x74\165\141\x6c"] . "\47\xa\11\11\x57\110\105\122\x45\40\x69\x64\x20\x3d\40\47" . $_SESSION["\166\x69\x73\x69\x74\141\x6e\x74\x65"] . "\47"; $resultado_up_visitas = mysqli_query($conn, $result_up_visita); } else { $result_visitas = "\111\x4e\123\x45\122\x54\x20\111\116\124\x4f\x20\143\x6f\x6e\164\x61\x64\157\162\x20\50\144\141\164\141\137\151\x6e\151\x63\x69\157\x2c\x20\144\141\164\x61\x5f\146\151\x6e\x61\154\x29\126\101\x4c\125\105\123\40\50\47" . $data["\x61\x74\x75\141\x6c"] . "\x27\54\x20\x27" . $data["\141\164\x75\141\154"] . "\47\x29"; $resultado_visitas = mysqli_query($conn, $result_visitas); $_SESSION["\x76\151\x73\x69\x74\141\156\x74\x65"] = mysqli_insert_id($conn); } $result_qnt_visitas = "\x53\x45\x4c\x45\x43\124\x20\143\157\165\156\164\x28\x69\144\x29\x20\x61\x73\x20\x6f\156\x6c\x69\156\145\x20\106\122\x4f\115\x20\x63\157\156\x74\141\x64\x6f\x72\x20\x57\x48\105\122\105\40\144\141\x74\x61\x5f\x66\x69\x6e\141\154\40\76\x3d\x20\47" . $data["\x6f\x6e\x6c\x69\x6e\x65"] . "\47"; $resultado_qnt_visitas = mysqli_query($conn, $result_qnt_visitas); $row_qnt_visitas = mysqli_fetch_assoc($resultado_qnt_visitas); echo $row_qnt_visitas["\157\156\x6c\x69\156\x65"]; } goto aOsv0; aOsv0: ?>

Function Calls

None

Variables

None

Stats

MD5 7a9d29e911dd1b11dc3f4c59dfc2c02e
Eval Count 0
Decode Time 44 ms