OpenVas - Host from xml file

Support/Development for OpenVAS
Safejack
New Forum User
New Forum User
Posts: 3
Joined: Tue Mar 28, 2017 6:11 am
Location: South Africa

OpenVas - Host from xml file

Unread post by Safejack »

Hi

Hope all is well, not sure if this is the correct section to ask this question i recently installed OpenVAS on CentOS
while using the web interface i saw there is a option to import a file where you can add host to, so instead of adding the
IPs one by one, you can put them in a file and run them all together.

My question is this: how do i setup up the xml file with 50+ IPs in the correct format ?
I have tried many ways and google to no avail, one of the ways i have tried is below :

146.232.xxx.xxx, 146.232.xxx.xxx, 146.232.xxx.xxx, 146.232.xxx.xxx, 146.232.xxx.xxx,

i get the following error when i try to create :
---------------------------------------------------------------------
Operation: Create Target
Status code: 400
Status message: Error in host specification
---------------------------------------------------------------------

Thank you in advance for the assistance.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: OpenVas - Host from xml file

Unread post by scott »

Have you tried a file with one network or IP per line?
Safejack
New Forum User
New Forum User
Posts: 3
Joined: Tue Mar 28, 2017 6:11 am
Location: South Africa

Re: OpenVas - Host from xml file

Unread post by Safejack »

Hi

Yes i have, can you give me a example of what you mean, to confirm i tried it correctly.

Thank you
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: OpenVas - Host from xml file

Unread post by scott »

Sure, I made this file that looked like this:

10.10.10.0/24
10.10.11.1
10.10.11.5

and created a new target, with a "From File" option
Post Reply