Bug#862748: libnmap-parser-perl: not all service fields are parsed

Peter Gervai grin at grin.hu
Tue May 16 15:18:14 UTC 2017


Package: libnmap-parser-perl
Version: 1.33-1
Severity: normal
Tags: patch

You should parse more ;)
(Generally you should parse all other fields, known or else.)


--- Parser.pm.orig      2017-05-16 17:13:54.717701138 +0200
+++ Parser.pm   2017-05-16 17:13:58.997635383 +0200
@@ -434,6 +434,9 @@
         $service_hashref->{method}      = $service->{att}->{method};
         $service_hashref->{confidence}  = $service->{att}->{conf};
         $service_hashref->{fingerprint} = $service->{att}->{servicefp};
+       # more
+       $service_hashref->{hostname}    = $service->{att}->{hostname};
+       $service_hashref->{ostype}      = $service->{att}->{ostype};
     }
 
     return $service_hashref;



More information about the pkg-perl-maintainers mailing list