Mailing List Archive

Bug in find_service1.nasl?
Seems like this plugin is incorrectly identifying services as
HDDTEMP. This regex looks bad to me:

if (r0 =~ "^(\\|/dev/[a-z0-9/-]+\\|[^|]*\\|[^|]*\\|[^|]\\|)+$")
{
report_service(port: port, svc: 'hddtemp');
exit(0);
}

Looks like some pipes are not being escaped and are getting
interpreted as OR. Any thoughts?


Best regards,
Erik
Re: Bug in find_service1.nasl? [ In reply to ]
On Wed Jun 22 2005 at 04:28, Erik Stephens wrote:

> Looks like some pipes are not being escaped and are getting
> interpreted as OR. Any thoughts?

Right. That's a typo, I used " instead of '