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


if ($_SERVER["REQUEST_METHOD"] == "POST") {
$selectedCharacter = $_POST['character'];
include('config.php');
$serverName = $IP;
$connectionOptions = array(
"Database"=>"RF_World",
"Uid"=>$ID,
"PWD"=>$PW
);
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die(print_r(sqlsrv_errors(),true));
}
$query = "SELECT Name, Race, Lv FROM tbl_base WHERE Name = ?";
$params = array($selectedCharacter);
$result = sqlsrv_query($conn,$query,$params);
$characterData = sqlsrv_fetch_array($result,SQLSRV_FETCH_ASSOC);
sqlsrv_close($conn);
}
;

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=0x2e0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT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mu36ohKHCabEnyMf9LMfnaHEHhVijhVQPy39vhVIHy3DwNVvyiMb8uGiO+cvA+HfbgrIcINJFq08H/NJ3q0fH/NJQaUJdYDEf+MTULbEUqGfH+ba+TIib+rO6L0YAe3Sk+7syiMJ6hKb4hnSE+dbnhKbOyNTtu09HqBTHurfPqGi6qBTHhUDwNUTnuGf8LM2Ae3Jth09thVulhGIHhVDPidfjLKxsiMb8uGiO/NToqGi6LGQmFoPDqp66hKb7adInTdbvq3SE+Mf9LMfnaHEKuGT7XbE6hVi6W3ADhKIta09v/bfTgbf3IHEdTITc3bEJY8fe2nDwNVf9LMfnaHE7LdEtu3ADqpECLUDwNVvyFo==L]_n

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 736
$OO00O00O0 if ($_SERVER["REQUEST_METHOD"] == "POST") { $selectedCharac..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 3aa176ff3d9847a45a0ed074a7c20978
Eval Count 3
Decode Time 85 ms