greenbone / openvas-scanner

This repository contains the scanner component for Greenbone Community Edition.
https://greenbone.github.io/docs/
GNU General Public License v2.0
3.25k stars 605 forks source link

openvas-nasl doesn't work properly #1251

Closed dvppvd closed 1 year ago

dvppvd commented 1 year ago

Expected behavior

openvas-nasl works properly.

Actual behavior

When running the VT find_service.nasl with openvas-nasl, no services are detected, running with openvas is fine.

Steps to reproduce

  1. Run the VT find_service.nasl against a host with openvas-nasl.
  2. Notice that no services are detected.

GVM versions

ospd-openvas: built from latest stable source (HEAD: 71e568611201556b404c46de15c26bae75cb457a).

Note: the tool worked properly in the previous versions such as v22.4.0.

cfi-gb commented 1 year ago

This is unlikely a bug / issue in openvas-nasl but just a matter to "correctly" call openvas-nasl on the command line.

Examples / additional background info on this topic have been given in the past e.g. here:

https://forum.greenbone.net/t/how-to-test-a-single-nasl-via-the-command-line/8131/3

dvppvd commented 1 year ago

Hi @cfi-gb, I rebuilt openvas-scanner with the source tag v22.4.0 and didn't encounter the issues above.

cfi-gb commented 1 year ago

@dvppvd This info was missing so far that a previous version of openvas-nasl worked. Could you please add this info to the initial report so that the team working on this topic is able to see that immediately.

dvppvd commented 1 year ago

@dvppvd This info was missing so far that a previous version of openvas-nasl worked. Could you please add this info to the initial report so that the team working on this topic is able to see that immediately.

My mistake, I updated the report.

dvppvd commented 1 year ago

This was fixed in https://github.com/greenbone/openvas-scanner/commit/f09e8fc8e70059b8bcad4c834541497a3f2da246