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


error_reporting(0);
require_once('pub.php');
require_once('adodb.php');
require_once('ckauth.php');
require_once('pub_unit.php');
include_once('adodb/cloud/pclzip.lib.php');
header('Content-Type:text/html;charset=GB2312');
mysql_select_db("dbback");
date_default_timezone_set("PRC");
if($_GET['job'] == 'back'){
$dbname=sqls($_POST['dbname']);
$title=sqls($_POST['title']);
$remark=sqls($_POST['remark']);
$backuptime=$getnow_str;
$backtime=date("Y-m-d H:i:s");
$j_account=$_SESSION['j_account'];
$usertype=$_SESSION['usertype'];
$can_rar=sqls($_POST['can_rar']);
$rand=sqls($_POST['rand']);
if($dbname != ''){
xCopy("../data/".$dbname."","../data/NuoHe_".$backuptime."_".$rand."",1);
$n_dbname="NuoHe_".$backuptime."_".$rand."";
$count_file = scandir("../data/".$n_dbname."");
$whole = count($count_file)-3;
$sql="insert into data_back (dbname,title,remark,backuptime,whole,username,usertype,unit_id) values('".$n_dbname."','".$title."','".$remark."','".$backtime."','".$whole."','".$j_account."','".$usertype."','".$g_unit_id."')";
if ($conn->Execute($sql)){
$archive = new PclZip('adodb/data/'.$n_dbname.'.bak');
$v_list = $archive->create('../data/'.$n_dbname.'/');
if ($v_list == 0) {
die("Error : ".$archive->errorInfo(true));
}
write_log($conn,$_SESSION['j_account'],'',$_SESSION['usertype']);
alert('!','judge_admin_recovery.php');
exit;
}
else{
alert('','judge_admin_recovery.php');
}
}
}elseif($_GET['job'] == 'detail'){
$id=sqls(intval($_GET['id']));
if ($id != ''){
$sql="select * from data_back where id=".$id;
$result=$conn->Execute($sql);
$backup=array(
'id'=>sqlv($result->fields['id']),
'title'=>sqlv($result->fields['title']),
'remark'=>sqlv($result->fields['remark']),
'backuptime'=>sqlv($result->fields['backuptime']));
}
$conn->Close();
$smarty->assign('backup',$backup);
$smarty->display('judge_admin_backup_detail.html');
}elseif($_GET['job'] == 'edit'){
$id=sqls(intval($_GET['id']));
if ($id != ''){
$sql="select * from data_back where id=".$id;
$result=$conn->Execute($sql);
$backup=array(
'id'=>sqlv($result->fields['id']),
'title'=>sqlv($result->fields['title']),
'remark'=>sqlv($result->fields['remark']));
}
$conn->Close();
$smarty->assign('backup',$backup);
$smarty->display('judge_admin_backup_edit.html');
}elseif($_GET['active'] == 'edit'){
$id=sqli(intval($_POST['id']));
$title=sqli($_POST['title']);
$remark=sqli($_POST['remark']);
if ($id != ''){
$sql="select * from data_back where id=".$id;
$rs=$conn->Execute($sql);
$result=array();
$result['title']=$title;
$result['remark']=$remark;
$updatesql=$conn->GetUpdateSQL($rs,$result);
$conn->Execute($updatesql);
write_log($conn,$_SESSION['j_account'],'');
alert('','judge_admin_recovery.php');
}
}else{
$sql="select * from data_back where current=1";
$result=$conn->Execute($sql);
$backup=array(
'id'=>sqlv($result->fields['id']),
'title'=>sqlv($result->fields['title']),
'dbname'=>sqlv($result->fields['dbname']));
$conn->Close();
$rand = rand_string(4,'','');
$smarty->assign('backup',$backup);
$smarty->assign('rand',$rand);
$smarty->display('judge_admin_backup.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=4312;$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('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMD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64_decode 2

Variables

$O0O0000O0 OOO0000O0
$OO00O0000 4312
$OO00O00O0 error_reporting(0); require_once('pub.php'); require_onc..
$OO0OO0000 fopen
$OO0OO000O fread
$OO0OO00O0 strtr
$OOO000000 th6sbehqla4co_sadfpnr
$OOO0000O0 base64_decode
$OOO0O0O00 index.php

Stats

MD5 eb5153111c4816c79e5a3447c2dff3c0
Eval Count 3
Decode Time 105 ms