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


namespace app\super\controller;
use think\Controller;
use thinkacade\Request;
use Yzm\ValidateCode;
use app\super\model\BsysSuperuser;
class Login extends Controller
{
public function loginPage()
{
return view();
}
public function yzmimg()
{
$yzm = new ValidateCode();
$yzm ->doimg();
session('yzm_save',$yzm->getCode());
}
public function signout(){
session_unset();
session('super_id',null);
session('super_name',null);
header('Location: /super_login');
exit();
}
public function changepass(){
$this->assign('super_id',session('super_id'));
$this->assign('super_name',session('super_name'));
return $this->fetch();
}
public function updatepass(){
$post_data = Request::post();
$update = [];
$return_data = [
'err'=>1,
'msg'=>'fail',
];
if (!preg_match("/^\w{1,20}$/",$post_data['password'])) {
$return_data['msg'] = ',6-20';
return $return_data;
}
if($post_data['password']!==$post_data['repassword']){
$return_data['msg'] = ',6-20';
return $return_data;
}
$update = ['password'=>md5($post_data['password'])];
$super = new BsysSuperuser();
if($super->where('id',$post_data['super_id'])->update( $update )){
$return_data['err'] = 0;
$return_data['msg'] = '';
}
return   $return_data;
}
public function loginAction()
{
$whiteList=array('115.192.211.203');
$visitorIp=$_SERVER['REMOTE_ADDR'];
if (!in_array($visitorIp,$whiteList)) {
return ['status'=>false,'msg'=>''];
}
$post = Request::param();
if(!$post['login_name'])
{
return ['status'=>false,'msg'=>''];
}
if(!$post['password'])
{
return ['status'=>false,'msg'=>''];
}
$super = new BsysSuperuser();
$superInfo = $super->where('login_name',$post['login_name'])->find();
if($superInfo)
{
if($superInfo['password'] == md5($post['password']))
{
session('super_id',$superInfo['id']);
session('super_name',$superInfo['login_name']);
return ['status'=>true,'msg'=>''];
}
else
{
return ['status'=>false,'msg'=>''];
}
}
else
{
return ['status'=>false,'msg'=>''];
}
}
}

Did this file decode correctly?

Original Code

<?php // This file is protected by copyright law & provided under license. Copyright(C) 2005-2009 www.vidun.com, 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=2908;$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('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMjYxKTskT08wME8wME8wPSgkT09PMDAwME8wKCRPTzBPTzAwTzAoJE9PME9PMDAwTygkTzAwME8wTzAwLDM4MCksJ0VudGVyeW91d2toUkhZS05XT1VUQWFCYkNjRGRGZkdnSWlKakxsTW1QcFFxU3NWdlh4WnowMTIzNDU2Nzg5Ky89JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>
kr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXPkr9NTzEXHenN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rAJffKXppcJEPwBlVb2yZFMy5htO2DbYpfo9ZUbESkufPDbOlTolzftLpwuShFMa0fbkVwySmF3Oifuazkz0+cMySF2ASk21zcZF9NJgmpPuMqDRPqq/pl64mbTShgWPLFo9zftE9wyklFbalF3W6KmniFMyshtL7tMlMhtrLFo9zfySmdo9mDB5gdMyscUffhWp7tmklfuaZdJndk3Y0CbO1FZF9NMciduYlRtfsF2FmNT4m566i55to5coC6RUM5C+35RJY6wK95RJ656M6k107tm0hDBCPwUOXd3Y0BZfXCbYzf29ZctffhWp7tmklfuaZdJndk3Y0CbO1FZF9NMciduYlRtfsF2FmNT4m566i55to5coC5D+o56tn5RJY6wK95RJ656M6k107tm0hkuY1FoaZwe0IdMa3wrkzGbYTfbnlFmazcbwPhTShkuY1FoaZUB5MdZE9wtOzfbnlFJ0+f2ilFMAPk2xvc2lVb25idBAmRtOXd3Y0BZfSd2fpdl9VCB1lk10pRT5MDB5LhtL7tMlMhtOzfbnlFLlVcM8ptmShDBCPkuY1FoaZUB5Md1SmFoyzF3fvFMWmbUE9NUnsceAPkunvF3Odk3niF3Y3d3kLk10phWp7tmYlF3Ypd24Pk3Y1FoaZb2lLkZXLF3aXcbkkdMcvBZfpctffhTShF2azF2lvdJImF3aXcbkgdMyscUFSkuY1FoaZUB5Md1Smdo9mDB5gdMyscUffhTShFMa0fbkVwySmF3Oifuazkz0+fuk1cUXmdbYmkz0+k+GcV+B9lGDwLKBhmZffKXp9tMaSF2AhGXpZcbO1FM4IBZfzfoy0fbHmNT5MCBxzcUXmdbYmkz0+k+DtQKGDiKBviVGIIGU4jGDsP+GiqJffKXp9tm0hcBxzcWp7tmklfuaZdJndk3Y0CbO1FZF9NMciduYlRtfsF2FmNT4m566i55to5coC5RJY5D2C5cZP77ZH6h+35Qt45D+56RUM5C+3k107tm0hgWp9

Function Calls

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

Variables

$O0O0000O0 OOO0000O0
$OO00O0000 2908
$OO00O00O0 namespace app\super\controller; use think\Controller; use t..
$OO0OO0000 fopen
$OO0OO000O fread
$OO0OO00O0 strtr
$OOO000000 th6sbehqla4co_sadfpnr
$OOO0000O0 base64_decode
$OOO0O0O00 index.php

Stats

MD5 af5f6e74bb9d6a92cc4205c5480f92dd
Eval Count 3
Decode Time 131 ms