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 /* MegaShare Plus Programmed By Khaled Gad - 01014144910 - 01001148305 - leroi1990@g..

Decoded Output download


class messages
{
public function __construct()
{
if(md5_file("../libs/SmartyBc.class.php") != '3fa203a001b3ca410e2933f817e5de12'){
@header('Location:http://'.$_SERVER['SERVER_ADDR'].'/megashare/install/activate.php');
exit;
}
}
public function showMessages($i){
require_once '../includes/db.php';
$sql = $db ->query("select * from messages order by id desc limit $i,20 ");
return $sql;
}
public function delMessages($ids){
require '../includes/db.php';
$ids = explode(',',$ids);
for($i=0;$i<count($ids);$i++){
$id = $ids[$i];
$db->query("delete from messages where id='$id'");
}
}
public function readMessage($id){
require '../includes/db.php';
$db->query("update messages set stat='0' where id='$id' ");
}
};

Did this file decode correctly?

Original Code

<?php /* MegaShare Plus Programmed By Khaled Gad - 01014144910 - 01001148305 - [email protected] */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x3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7YaY7FTszd2X/FzNqYGsaV28qd2sz4uLkvSQTdyE7rmEu4GhFd6Y7JmLjVxtnWmSup+cHXuZ0B6Fml0rml0j08aB2EqB2E6CmUmb08SZ0X6iqr3yuVyyue2cnrRN3dBOjA6y7MmL3eBSqbRvnWKhQFOaAelxnJTwpTL6pTL6pJC87esL7XCe3rRY3dEcj4CNnd6MFrlNuVBhqJz+0dPLkvSQuels3rEXql6cjeaE9AuZH46LjeaO3rmEuX6P74RvnWKh/vSQ0WasjAK69AmP74KifhB8qJ0RQA0NqrsE7MTGQ4Ceue6i9d8EuMayqVlN9d6XqdlX9d0R9dEP9dmEuVzGjdEinJTG0dPOzYKG94PwpTLXqJm8uexG0WasjpOaAhSaAhC87esL7XCe3rRY3dEcj4CPqrsaqJaN7r3EuXGPnrmNQJOaAh0EuJlLue2G0XxZHVEZ7Vs8qdlNHVm4HhC+uAuwpT+PnrmN9pSGqJyvjd6PqbGhHAuO0dEPuXPwpTLejM9+0dP6zpOPnFsYjMlZ3AGPnrmNQFOPnbO5QJOaA4mLqAK69AmLqWaj0dE3/vSQ0dm4HFRs3rlXkbG4qdlOqJmE9dqXjVSGjrlNuVBhqJzG3VyEue2GnrT60XmLqAu4QFOaAhSaAhSaAhC87esL7XCe3rRY3dEcj4CXqrBPFrlNuVBhqbGPnrTLkv8XqJB8nJ0E9AuZH46LjeaO3rmEuX6P74RvnWKh/vSQ0dm4HFRs3rlXkbG43JCP7JmE9d8EuMayqVlN9WaE3ACN3dBSfbuv0XCMndlXqbCLqpSh0dEP0XK4QFOaAhSaAhSwxdGWp

Function Calls

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

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O00OO00 fread
$OO00O0000 980
$OO00O00O0 class messages { public function __construct() { if(md..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 00c2c3114e5da4e5627c93fe134d749a
Eval Count 3
Decode Time 159 ms