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

Add resolve_hostname_to_multiple_ips() NASL function. #596

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Sep 8, 2020

What:
Add resolve_hostname_to_multiple_ips() NASL function.

Why*:

How:

Add to /etc/hosts a new line for localhost with a second ip address and run the following script with openvas-nasl.

foreach _ip( resolve_hostname_to_multiple_ips(hostname:'localhost'))
{
        display(_ip);
}

Checklist:

@jjnicola jjnicola changed the title Add resolve_hostnames() NASL function. Add resolve_hostname_to_multiple_ips() NASL function. Sep 9, 2020
CHANGELOG.md Outdated Show resolved Hide resolved
@jjnicola jjnicola merged commit 1800bfc into greenbone:openvas-20.08 Sep 9, 2020
@jjnicola jjnicola deleted the get-hostnames branch September 9, 2020 08:05
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