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 /* This file is protected by copyright law and provided under license. Reverse engin..

Decoded Output download


include('config.php');
$serverName = $IP;
$uid = $ID;
$pwd = $PW;
$dbName = "RF_World";
$connectionOptions = array(
"Database"=>$dbName,
"Uid"=>$uid,
"PWD"=>$pwd
);
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die("Koneksi gagal: ".sqlsrv_errors());
}
if (isset($_POST['serial'])) {
$nAvatorSerial = $_POST['serial'];
}else {
echo "Nilai serial tidak ditemukan dalam permintaan POST.";
exit();
}
$itemTypes = array(
"weapon",
"armor",
"elemental_ring",
"cloak",
"shield",
"injure"
);
$query = "INSERT INTO tbl_ItemCharge (nAvatorSerial, nItemCode_K, nItemCode_D, nItemCode_U) 
          VALUES (?, ?, ?, ?)";
foreach ($itemTypes as $type) {
if (isset($_POST[$type])) {
$selectedItems = explode(',',$_POST[$type]);
foreach ($selectedItems as $selectedItem) {
list($nItemCode_K,$nItemCode_D,$nItemCode_U) = explode('|',$selectedItem);
$params = array($nAvatorSerial,$nItemCode_K,$nItemCode_D,$nItemCode_U);
$result = sqlsrv_query($conn,$query,$params);
if ($result === false) {
die("Insert gagal untuk $type: ".print_r(sqlsrv_errors(),true));
}
}
}
}
echo "Data berhasil diinsert.";
sqlsrv_close($conn);
;echo '
';
include('config.php');
$serverName = $IP;
$uid = $ID;
$pwd = $PW;
$dbName = "RF_User";
$connectionOptions = array(
"Database"=>$dbName,
"Uid"=>$uid,
"PWD"=>$pwd
);
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die("Koneksi gagal: ".sqlsrv_errors());
}
if (isset($_COOKIE['id'])) {
$userId = $_COOKIE['id'];
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die("Koneksi ke database gagal: ".sqlsrv_errors());
}
$updateQuery = "UPDATE tbl_RFTestAccount SET statusclaim = 1 WHERE id = ?";
$params = array($userId);
$updateResult = sqlsrv_query($conn,$updateQuery,$params);
if ($updateResult === false) {
die("Update statusclaim gagal: ".sqlsrv_errors());
}
sqlsrv_close($conn);
}
header("Location: item.php");
exit;
;

Did this file decode correctly?

Original Code

<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x9e8;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTAwKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdTSk5jcmJkTStpeS9RZkZlMlQzZ1lJMEdxdVhMaGFXbEE2VTdESEtWUG01UnM0Q2pvOW50djhwQnhPWncxRXprPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZX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DqpECLKI7adHjLDEoadHjLVQmFommuUSP+3T7LpOCy3JwNKTmu3AU3pECu04tX3JVq0a6LcPA+UOth09thVuluGinLBityNDmFomENKHK+N6mhBfHaNADGvfegv4iTIsVX02VG3Dm+MsyiMItuGiiuNSE+NTl2vEe3vHb0namuNaaFoPDqpECLUSE+Mf9LMfnaHE7LpOCu0fvyNTtuGipuGiFq08H/NT7LpOCu0fvX0ECgBJvX0EChnDwNKHK+NA6idfjLKxm+MsyudHHyNi/LpOHXBfm+d4H+dT6adbUqGfH+da6upbsFUSU/Vf9LMfnaHEHhVijhVQPy3DwNVvyiMIoudbvuIb8uGiO+cvA+HI2TrbYT3JvqK9lYDuYuGfv20f7LBICaNJgTI2AhBT6aMItqp96X0vAe3S9+ba+TIib+dHD+cvAen+wNUToqGi6LGQAe3J6hVi6W3ADaGfHhDHDygsyiMIoudbvuIiHhBIsaNSE+Mf9LMfnaHE9a0InW3ADqpECLUoDaGJDqGTHYGIHhVDsiMJ6hKb4hnDwNKHK+NADaGJDqGTHYKIta09v+cvEe3JKq09tu3DAWomDX0YP+HIoudbvu3JtadbvaGf7LdbmL3JVq0a6LcPA+UOth09thVuluGinLBityNDmFomENVf9LMfnaHE7LdEtu3ADqpECLUDwNVvyXdI6udInyNiQLpf6adHjL7PAXGTHL3OoXMSUygsyuG6macsyFo==fRfR

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 2536
$OO00O00O0 include('config.php'); $serverName = $IP; $uid = $ID; $pwd ..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 1c33e7b822598ac5c92b02cc41a540bb
Eval Count 3
Decode Time 84 ms