Description
The example you had defined in your documentation is not working
#!/usr/bin/perl
runav.pl
Copyright (c) 2004-2011 Trustwave
This script is an interface between ModSecurity and its
ability to intercept files being uploaded through the
web server, and ClamAV
$CLAMSCAN = "clamscan";
if ($#ARGV != 0) {
print "Usage: runav.pl \n";
exit;
}
my ($FILE) = shift @argv;
$cmd = "$CLAMSCAN --stdout --no-summary $FILE";
$input = $cmd
;
$input =~ m/^(.+)/;
$error_message = $1;
$output = "0 Unable to parse clamscan output [$1]";
if (
$output = "1 empty file";
}
elsif (
$output = "0 clamscan: $1";
}
elsif (
$output = "0 clamscan: $1";
}
elsif (
$output = "1 clamscan: OK";
}
print "$output\n";
Here you had put a condition that is not taking any parameter so please update your documentation
if ($#ARGV != 0) {
print "Usage: runav.pl \n";
exit;
}