Merge branch 'ent-11594-problemas-con-escaneo-de-so-netscan-e-ipam' into 'develop'
Fix os detection when OS details comes from nmap See merge request artica/pandorafms!6120
This commit is contained in:
commit
5ad38aa0c7
|
@ -432,7 +432,7 @@ sub PandoraFMS::Recon::Base::guess_os($$;$) {
|
|||
my $return = `"$self->{pa_config}->{nmap}" -sSU -T5 -F -O --osscan-limit $device 2>$DEVNULL`;
|
||||
return OS_OTHER if ($? != 0);
|
||||
my $str_os;
|
||||
if ($return =~ /Aggressive OS guesses:(.*?)(?>\(\d+%\),)|^OS details:(.*?)\(.*\)*$/mi) {
|
||||
if ($return =~ /Aggressive OS guesses:(.*?)(?>\(\d+%\),)|^OS details:(.*?)$/mi) {
|
||||
if(defined($1) && $1 ne "") {
|
||||
$str_os = $1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue