Merge branch 'fix/pandora_enterprise#2355-compatibilidad-windows' into 'develop'

Quote the fping binary before calling it.

See merge request artica/pandorafms!1915
This commit is contained in:
vgilc 2018-10-30 14:43:21 +01:00
commit e1fdd5692b
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ sub scan_subnet($) {
if (-x $self->{'fping'} && $net_addr->num() > 1) {
$self->call('message', "Calling fping...", 5);
my @hosts = `$self->{'fping'} -ga "$subnet" 2>DEVNULL`;
my @hosts = `"$self->{'fping'}" -ga "$subnet" 2>DEVNULL`;
next if (scalar(@hosts) == 0);
my $step = 50.0 / scalar(@subnets) / scalar(@hosts); # The first 50% of the recon task approx.