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 & provided under license. Copyright(C) 20..

Decoded Output download


require_once('pub.php');
require_once('adodb.php');
header('Content-Type:text/html;charset=GB2312');
global $PHP_SELF;
$textfield1=trim($_POST['textfield1']);
$textfield2=trim($_POST['textfield2']);
$textfield3=trim($_POST['textfield3']);
$textfield4=trim($_POST['textfield4']);
$textfield1_len=strlen($textfield1);
$textfield3_len=strlen($textfield3);
if($textfield1!=""&&$textfield1_len==2){
$textfield2 = sprintf("%02d%02d",ord($textfield1[0])-160,ord($textfield1[1])-160);
}elseif($textfield1!=""&&$textfield1_len==4){
$textfield2_1 = substr($textfield1,0,2);
$textfield2_2 = substr($textfield1,2,2);
$textfield2_1 = sprintf("%02d%02d",ord($textfield2_1[0])-160,ord($textfield2_1[1])-160);
$textfield2_2 = sprintf("%02d%02d",ord($textfield2_2[0])-160,ord($textfield2_2[1])-160);
$textfield2 = $textfield2_1.' '.$textfield2_2;
}elseif($textfield1!=""&&$textfield1_len==6){
$textfield2_1 = substr($textfield1,0,2);
$textfield2_2 = substr($textfield1,2,2);
$textfield2_3 = substr($textfield1,4,2);
$textfield2_1 = sprintf("%02d%02d",ord($textfield2_1[0])-160,ord($textfield2_1[1])-160);
$textfield2_2 = sprintf("%02d%02d",ord($textfield2_2[0])-160,ord($textfield2_2[1])-160);
$textfield2_3 = sprintf("%02d%02d",ord($textfield2_3[0])-160,ord($textfield2_3[1])-160);
$textfield2 = $textfield2_1.' '.$textfield2_2.' '.$textfield2_3;
}elseif($textfield1!=""&&$textfield1_len==8){
$textfield2_1 = substr($textfield1,0,2);
$textfield2_2 = substr($textfield1,2,2);
$textfield2_3 = substr($textfield1,4,2);
$textfield2_4 = substr($textfield1,6,2);
$textfield2_1 = sprintf("%02d%02d",ord($textfield2_1[0])-160,ord($textfield2_1[1])-160);
$textfield2_2 = sprintf("%02d%02d",ord($textfield2_2[0])-160,ord($textfield2_2[1])-160);
$textfield2_3 = sprintf("%02d%02d",ord($textfield2_3[0])-160,ord($textfield2_3[1])-160);
$textfield2_4 = sprintf("%02d%02d",ord($textfield2_4[0])-160,ord($textfield2_4[1])-160);
$textfield2 = $textfield2_1.' '.$textfield2_2.' '.$textfield2_3.' '.$textfield2_4;
}else{
$textfield2 = "";
}
if($textfield3!=""&&$textfield3_len==4){
$textfield4 = chr(substr($textfield3,0,2)+160).chr(substr($textfield3,2,2)+160);
}elseif($textfield3!=""&&$textfield3_len==8){
$textfield3_1 = substr($textfield3,0,4);
$textfield3_2 = substr($textfield3,4,4);
$textfield3_1 = chr(substr($textfield3_1,0,2)+160).chr(substr($textfield3_1,2,2)+160);
$textfield3_2 = chr(substr($textfield3_2,0,2)+160).chr(substr($textfield3_2,2,2)+160);
$textfield4 = $textfield3_1.' '.$textfield3_2;
}elseif($textfield3!=""&&$textfield3_len==12){
$textfield3_1 = substr($textfield3,0,4);
$textfield3_2 = substr($textfield3,4,4);
$textfield3_3 = substr($textfield3,8,4);
$textfield3_1 = chr(substr($textfield3_1,0,2)+160).chr(substr($textfield3_1,2,2)+160);
$textfield3_2 = chr(substr($textfield3_2,0,2)+160).chr(substr($textfield3_2,2,2)+160);
$textfield3_3 = chr(substr($textfield3_3,0,2)+160).chr(substr($textfield3_3,2,2)+160);
$textfield4 = $textfield3_1.' '.$textfield3_2.' '.$textfield3_3;
}elseif($textfield3!=""&&$textfield3_len==16){
$textfield3_1 = substr($textfield3,0,4);
$textfield3_2 = substr($textfield3,4,4);
$textfield3_3 = substr($textfield3,8,4);
$textfield3_4 = substr($textfield3,12,4);
$textfield3_1 = chr(substr($textfield3_1,0,2)+160).chr(substr($textfield3_1,2,2)+160);
$textfield3_2 = chr(substr($textfield3_2,0,2)+160).chr(substr($textfield3_2,2,2)+160);
$textfield3_3 = chr(substr($textfield3_3,0,2)+160).chr(substr($textfield3_3,2,2)+160);
$textfield3_4 = chr(substr($textfield3_4,0,2)+160).chr(substr($textfield3_4,2,2)+160);
$textfield4 = $textfield3_1.' '.$textfield3_2.' '.$textfield3_3.' '.$textfield3_4;
}else{
$textfield4 = "";
}
$smarty->assign('textfield1',$textfield1);
$smarty->assign('textfield2',$textfield2);
$smarty->assign('textfield3',$textfield3);
$smarty->assign('textfield4',$textfield4);
$smarty->display('judge_location_code.html');

Did this file decode correctly?

Original Code

<?php // This file is protected by copyright law & provided under license. Copyright(C) 2005-2017 www.nuohe.cc, All rights reserved.
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72');$OO00O0000=5252;$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};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMjYwKTskT08wME8wME8wPSgkT09PMDAwME8wKCRPTzBPTzAwTzAoJE9PME9PMDAwTygkTzAwME8wTzAwLDM4MCksJ2VmcHREZ1laVE15Y3dYbVBHUjFqSys3MkZ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lJcIC9MJL/uY+LuYWxW7H/w4lAcIC9MJL/uY+LuYWxW7H/w4lUm5Uy37+kCi+stGE/uY+LuYWxW7H/XpezTpTIm5Uy3GUyMZXdF2MUO1U0F2XAv7uBypuUW2qUWraabYGHMJ5/uY+LuYWxW7H/w1/stGE/Ci4qC8RVcjVqCQXxWiLEMQRaOZRrv7+kWtT8cpRUW2qUWraabYGJyjkXpIRAb7gJuZ/dPrgACia8bI98uY+LuYWxW7H/wJCkMZRaOZRrv7+kWtwxm5UyMZXdF2MUO1U0F2XAv7uBypuUW2qUWraabYGUMJ5/uY+LuYWxW7H/Xp/stGE/Ci4qC8RVcjV/v2X5bYgVypuou7R8W+zkbiXquYaNbazhbiRacrqUb758yjkXp9==

Function Calls

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

Variables

$O0O0000O0 OOO0000O0
$OO00O0000 5252
$OO00O00O0 require_once('pub.php'); require_once('adodb.php'); head..
$OO0OO0000 fopen
$OO0OO000O fread
$OO0OO00O0 strtr
$OOO000000 th6sbehqla4co_sadfpnr
$OOO0000O0 base64_decode
$OOO0O0O00 index.php

Stats

MD5 976ec1baa5ff34aa3d880afa6ac762ae
Eval Count 3
Decode Time 152 ms