Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize the the kb to store results for openvas-nasl. #735

Merged
merged 1 commit into from
May 17, 2021

Conversation

jjnicola
Copy link
Member

What:
Initialize the the kb to store results for openvas-nasl.

Why:
If not initialized, openvas-nasl can not store results

How:
run a script with openvas-nasl

openvas-nasl -X -B -d -i /home/juan/install/var/lib/openvas/plugins -t www.google.com find_service.nasl --kb="Ports/tcp/443=1"

without the patch you should see an assertion error:

$ openvas-nasl -X -B -d -i /home/juan/install/var/lib/openvas/plugins -t www.google.com find_service.nasl --kb="Ports/tcp/443=1"
lib  misc-Message: 02:41:50.701: replace key FindService/CnxTime1000/443 -> 95
lib  misc-Message: 02:41:50.701: set key Transports/TCP/443 -> 9
openvas-nasl: /home/juan/install/include/gvm/util/kb.h:395: kb_item_push_str: Assertion `kb' failed.

Checklist:

@jjnicola jjnicola requested a review from a team as a code owner May 17, 2021 07:43
@ArnoStiefvater ArnoStiefvater merged commit 76c220a into greenbone:openvas-21.04 May 17, 2021
ArnoStiefvater added a commit that referenced this pull request May 17, 2021
Initialize the the kb to store results for openvas-nasl. (backport #735)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants