LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2014, 07:57 AM   #1
Nefri
LQ Newbie
 
Registered: Jul 2014
Posts: 6

Rep: Reputation: Disabled
openVAS create new tasks from omp


Hi all!

I am trying to create new task from omp, but the documentations of the commands are not always perfect, so I run into an issue:
I am able to create new tasks if I use the command:
Code:
# omp -u user -w openvas -C -n New_task -c 74db13d6-7489-11df-91b9-002264764cea -t 5267d906-756d-4ed0-b749-6c34371dec65
but the tasks created this way, don't have "Network Source Interface" (eth0) and "Order for target hosts" assigned so the scans instantly finish with N/A result. Is there any way to add this parameter when I am creating the new task or set them to be "eth0" and "sequental" by default? If I use the greenbone I can set it very easily, but I have to make it to be fully automated so that is not an option for me. Looks like the older versions of the openVAS didn't needed this parameter from the user to set up a new task, and I can't find any clue about it.

I am using omp 1.3, openvas 7.

Thanks you very much for any advice!

Solved:
I figured out there is an option to use xml commands. I thought my omp version is 1.3, but that was the openVas-cli version, and the omp was 5.0 so I checked the older documentation, where the needed xml command didn't exist yet. So finaly the command:
Code:
# omp -u user -w openvas -X '<create_task><name>ScanWebserver</name><preferences><preference><scanner_name>source_iface</scanner_name><value>eth0</value></preference></preferences><config id="74db13d6-7489-11df-91b9-002264764cea"/><target id="5267d906-756d-4ed0-b749-6c34371dec65"/></create_task>'
worked. Sry for takeing your time.

Last edited by Nefri; 07-15-2014 at 03:14 AM. Reason: Solved
 
Old 07-15-2014, 06:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Nefri View Post
Sry for takeing your time.
No problem. Thanks for posting your solution.
 
Old 07-26-2017, 08:00 AM   #3
doctorstrange
LQ Newbie
 
Registered: Jul 2017
Posts: 9

Rep: Reputation: Disabled
I'm trying to create tasks from omp as well and I'm curious where you got these hexadecimal numbers:

-c 74db13d6-7489-11df-91b9-002264764cea -t 5267d906-756d-4ed0-b749-6c34371dec65

When I create tasks in Greenbone SA, it just generates those ID's for me. Are you just randomly making them up? And if so, are there any particular parameters to pay attention to? Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openvas librairies iby Linux - Newbie 4 08-01-2012 11:31 AM
LXer: Google Tasks Indicator: Quick Access To Your Google Tasks From The Ubuntu Panel LXer Syndicated Linux News 0 03-06-2012 11:40 PM
openvas-scanner szboardstretcher Linux - Software 3 08-10-2011 12:11 PM
OpenVas j0eh4x Linux - Software 1 02-16-2011 01:17 AM
Openvas-manager & openvas-cli Minky Linux - Software 1 04-26-2010 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration