|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 58
Members: 0
Total: 58
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
please decode file PHP |
|
Posted: Wed Jun 22, 2011 3:37 pm |
|
|
bakham |
Regular user |
|
|
Joined: Jan 13, 2011 |
Posts: 8 |
|
|
|
|
|
|
|
I have a file PHP :
<?php
$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=4620;$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('JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09PMDAwMDAwezEyfS4kT09PMDAwMDAwezE4fS4kT09PMDAwMDAwezV9LiRPT08wMDAwMDB7MTl9O2lmKCEwKSRPMDAwTzBPMDA9JE9PME9PMDAwMCgkT09PME8wTzAwLCdyYicpOyRPTzBPTzAwME89JE9PTzAwMDAwMHsxN30uJE9PTzAwMDAwMHsyMH0uJE9PTzAwMDAwMHs1fS4kT09PMDAwMDAwezl9LiRPT08wMDAwMDB7MTZ9OyRPTzBPTzAwTzA9JE9PTzAwMDAwMHsxNH0uJE9PTzAwMDAwMHswfS4kT09PMDAwMDAwezIwfS4kT09PMDAwMDAwezB9LiRPT08wMDAwMDB7MjB9OyRPTzBPTzAwME8oJE8wMDBPME8wMCwxMjYzKTskT08wME8wME8wPSgkT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plC3WINUnEdblzFBxgcMa0C2igd2kQcBY0htO0DolzRT5gFmHStJOjdoyzF19VCB1lRtOXCbkidbHphUn7tJOvCMplC3OzB10INUELd2kQcBY0KXp9tm0hgWpZcbO1FM4Iko9JDMajfuH7tm0hFuaJdoljwoc1dMY0DB9VwtcMcbOjDr9JDMajftILC2xiF3YgdMyscUE9wociduYlRtOXCbkidbHINUnMCBxzcULIGXppcJEPwUOjdoyzF19VCB1lhUn7tJOvCMplC3WINUnEdblzFBxgcMa0C2igd2kQcBY0htO0DolzRT5gFmHpKXp9cBxzcUn7tMlMwtIikuniFMysFZLIGXPLd2kQcBY0we0IWo15F3ySb2clfoYPb29JDMajftILfoipFZ0+b3kzRtOjdoyzF19VCB1lhTShgBaSF2AIGXPLd2kQcBY0we0IWo15F3ySb2clfoYPb29JDMajftILfoipFZ0+b3kzREPLC2xiF3YgdMyscUXLFoyZCB1zhTShgWp9tmklfuaZdJELd2kQcBY0KXp9tmn1CMxpCZnMfB5jfolvdJnmcbOUcBYvFMOKfB0PhUn7tmklfuaZdJnEdblzFBxgdmasb3kvf3HPkuOPDbHsNl9ZFZL7tm0hFuaJdoljwoc1dMY0DB9VwocZcBAPhUn7tLnsGbYxdy9MFMalb3klF3aSftILfoipFZ0+b3kzhTShgWpXfBkSDBHIcmaVC3Opd24IFMazcbWPhUn7tLnsGbYxdy9LCbOib3YlcBSPkuOPDbHsNl9ZFZXXhTShgWp9tMYSCbYzwr15F3ySObijcbn0DB9Vwoa4foaVcuHIObijcbn0DB9VwuShgWP=
I do not know what file the user tools for encoding, please guide me
Email: bakham1987@gmail.com
Thanks a lot |
|
|
|
|
|
|
|
|
Posted: Sat Sep 01, 2012 6:41 pm |
|
|
demon |
Moderator |
|
|
Joined: Sep 22, 2010 |
Posts: 485 |
|
|
|
|
|
|
|
Code: | <?php
if (!defined('IN_CONTEXT')) die('access violation error!');
define('RSTYPE_ASSOC',MYSQL_ASSOC);
define('RSTYPE_NUM',MYSQL_NUM);
define('RSTYPE_BOTH',MYSQL_BOTH);
$GLOBALS['_DB_CONNECTION'] = null;
class MysqlConnection {
private $_db_ref;
public $debug;
public function __construct($db_host,$db_user,$db_pwd,$db_name) {
$db_host .= ":".(Config::$port);
$this->_db_ref = @mysql_connect($db_host,$db_user,$db_pwd);
if (!$this->_db_ref) {
die('database server '.$db_host.' connect error!<br />'
.mysql_error());
}
@mysql_query("SET NAMES ".Config::$mysqli_charset ,$this->_db_ref);
$select_db_rs = @mysql_select_db($db_name,$this->_db_ref);
if (!$select_db_rs) {
$error = 'error '.mysql_errno($this->_db_ref).': '
.mysql_error($this->_db_ref);
die($error);
}
$this->debug = false;
global $_DB_CONNECTION;
$_DB_CONNECTION = $this;
}
public static function &get() {
global $_DB_CONNECTION;
if ($_DB_CONNECTION == null) {
die('record database connection not set!');
}
return $_DB_CONNECTION;
}
private function _getParamHolder() {
return '?';
}
private function _rebuildSql($sql,&$params) {
if (!$params) {
return $sql;
}else {
$sql_part = explode($this->_getParamHolder(),$sql);
$sql = $sql_part[0];
for ($i = 1;$i <sizeof($sql_part);$i++) {
$sql .= "'"
.mysql_real_escape_string($params[$i -1],$this->_db_ref)
."'".$sql_part[$i];
}
return $sql;
}
}
public function &query($sql,$params = false)
{
$error = '';
$sql = $this->_rebuildSql($sql,$params);
if ($this->debug === true) {
echo $sql."\n========\n";
}
if(Memorycache::$clear_flag != true) Memorycache::UpdateMemTable($sql);
$rs = @mysql_query($sql,$this->_db_ref);
if (!$rs) {
if ($this->debug === true) {
$error = 'error '.mysql_errno($this->_db_ref).': '
.mysql_error($this->_db_ref)."\n";
}
$error .= 'sql execution failed!'."\n";
throw new MysqlException($error);
}
if (is_resource($rs)) {
$mysql_rs = new MysqlRecordset($rs);
Memorycache::$clear_flag = false;
return $mysql_rs;
}else {
Memorycache::$clear_flag = false;
return $rs;
}
}
public function getInsertId() {
return @mysql_insert_id($this->_db_ref);
}
public function close() {
@mysql_close($this->_db_ref);
}
}
class MysqlRecordset {
private $_rs;
public function __construct(&$rs) {
$this->_rs = $rs;
}
public function &fetchRows($rs_type = RSTYPE_ASSOC) {
$rows = array();
while ($row = @mysql_fetch_array($this->_rs,$rs_type)) {
$rows[] = $row;
}
return $rows;
}
public function &fetchRow($rs_type = RSTYPE_ASSOC) {
$row = @mysql_fetch_array($this->_rs,$rs_type);
return $row;
}
public function &fetchObjects($class_name = false,$params = false) {
$objects = array();
if (!$class_name) {
while ($object = @mysql_fetch_object($this->_rs)) {
$objects[] = $object;
}
}else {
if (!$params) {
while ($object = @mysql_fetch_object($this->_rs,
$class_name)) {
$objects[] = $object;
}
}else {
while ($object = @mysql_fetch_object($this->_rs,
$class_name,$params)) {
$objects[] = $object;
}
}
}
return $objects;
}
public function &fetchObject($class_name = false,$params = false) {
if (!$class_name) {
$object = @mysql_fetch_object($this->_rs);
}else {
if (!$params) {
$object = @mysql_fetch_object($this->_rs,$class_name);
}else {
$object = @mysql_fetch_object($this->_rs,
$class_name,$params);
}
}
return $object;
}
public function getRecordNum() {
return @mysql_num_rows($this->_rs);
}
public function free() {
@mysql_free_result($this->_rs);
}
public function reset() {
@mysql_data_seek($this->_rs,0);
}
}
class MysqlException extends Exception {
}
|
|
|
_________________ Go BIG or go HOME ! |
|
|
|
|
www.waraxe.us Forum Index -> All other hashes
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|