disable access or uninstall lib libwww-perl

MaRiOsGR used Ask the Experts™
I have found traces that there is some script in my server (1200 domains) doing some request in some other server using libwww-perl , the log file of the attacked web server is this :
> HTTP/1.1" 404 7616 "-" "libwww-perl/5.79"

so they use libwww-perl to do this, my question is , how can I disable any access to libwww-perl for all users? or even uninstall this library ?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2009

If the users have perl installed, you can't.  You could remove it, but they could just re-install it.


how do I remove it ?
Top Expert 2009

If they are windows computes, use "ppm uninstall <package>"


its linux, im sorry i didnt mention it earlier its Red Hat
Top Expert 2009
From http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules

Create this script, call it remove_cpan_package (or something similiar)
Execute like:  remove_cpan_package <packagename>

#!/usr/local/bin/perl -w

use ExtUtils::Packlist;
use ExtUtils::Installed;

$ARGV[0] or die "Usage: $0 Module::Name\n";

my $mod = $ARGV[0];

my $inst = ExtUtils::Installed->new();

foreach my $item (sort($inst->files($mod))) {
    print "removing $item\n";
    unlink $item;

my $packfile = $inst->packlist($mod)->packlist_file();
print "removing $packfile\n";
unlink $packfile;

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial