[Openvas-discuss] Tasks Autostart plugin for openvas ?

Louis Bohm louis at systemgeek.net
Wed Apr 25 15:23:09 CEST 2018


If you want do it in a bash script.  Its a bit harder but its totally possible.

Louis
:::::
Louis Bohm - Sr. Systems Engineer
	Dell TechDirect Certified

> On Apr 25, 2018, at 9:21 AM, tatooin <tatooin at free.fr> wrote:
> 
> OK, but unfortunately I cannot upgrade to 9 yet, as gvm-tools no longer works with my existing scripts.. 
> 
> Too bad. Thanks anyway !
> 
> On Wed, 2018-04-25 at 13:44 +0100, Roger Davies wrote:
>> Hi
>> 
>> Ah, OpenVAS 8, I don't think so, sorry. I'm on OpenVAS 9. 
>> 
>> You'll have to script it, or upgrade to 9. 
>> 
>> Roger
>> 
>> 
>> 
>> On 25 April 2018 at 13:34, tatooin <tatooin at free.fr <mailto:tatooin at free.fr>> wrote:
>>> Hi Roger,
>>> 
>>> Is this feature available in openvas 8 ? In my alerts setup, the only available methods I have are:
>>> 
>>> - Email
>>> - System logger
>>> - HTTP Get
>>> - Sourcefire/Verinice connectors
>>> - Send to host / SCP / SNMP
>>> 
>>> There is nowhere a "Start Task" option which would allow me to to start the next one. Is this a plugin or something not bundled by default in openvas 8 ? 
>>> 
>>> Thanks
>>> 
>>> On Wed, 2018-04-25 at 13:23 +0100, Roger Davies wrote:
>>>> Hi
>>>> 
>>>> It's not the nicest solution, but it does work. 
>>>> 
>>>> In the 'Alerts' setup, you can use the 'Start Task' method, which then gives you the option to select a task name, 'Start Task'. 
>>>> 
>>>> You have one task, task1, that operates on a schedule, This task1 has an alert which is setup to call another task, task2, when the original task1 is 'done'. Then in task2, you have an alert that calls task3 etc.etc. 
>>>> 
>>>> Obviously, you can have many alerts for tasks, so an email to say it's started and an email to say it's finished and an alert that copies a report somewhere, or whatever. 
>>>> 
>>>> It's not as nice as having them on a schedule, but if you comment the structure in your task names or something, it should explain itself. 
>>>> 
>>>> Roger 
>>>> 
>>>> 
>>>> On 25 April 2018 at 12:58, Thijs Stuurman <Thijs.Stuurman at internedservices.nl <mailto:Thijs.Stuurman at internedservices.nl>> wrote:
>>>>> Sounds like a horrible solution to me even if it works.
>>>>> 
>>>>>  
>>>>> 
>>>>>  
>>>>> 
>>>>> Thijs Stuurman
>>>>> 
>>>>> Security Operations Center | KPN Internedservices B.V.
>>>>> 
>>>>> thijs.stuurman at internedservices.nl <mailto:thijs.stuurman at internedservices.nl> | thijs.stuurman at kpn.com <mailto:thijs.stuurman at kpn.com>
>>>>> T: +31(0)299476185 | M: +31(0)624366778
>>>>> 
>>>>> PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/ <https://pgp.surfnet.nl/>)
>>>>> 
>>>>> Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048
>>>>> 
>>>>>  
>>>>> 
>>>>> W: https://www.internedservices.nl <https://www.internedservices.nl/> | L: https://nl.linkedin.com/in/thijsstuurman <https://nl.linkedin.com/in/thijsstuurman>
>>>>>  
>>>>> 
>>>>> Van: tatooin <tatooin at free.fr <mailto:tatooin at free.fr>> 
>>>>> Verzonden: woensdag 25 april 2018 13:55
>>>>> Aan: Roger Davies <rog.davies at gmail.com <mailto:rog.davies at gmail.com>>
>>>>> CC: Thijs Stuurman <Thijs.Stuurman at internedservices.nl <mailto:Thijs.Stuurman at internedservices.nl>>; openvas-discuss at wald.intevation.org <mailto:openvas-discuss at wald.intevation.org>
>>>>> Onderwerp: Re: [Openvas-discuss] Tasks Autostart plugin for openvas ?
>>>>> 
>>>>>  
>>>>> 
>>>>> Hi Roger,
>>>>> 
>>>>>  
>>>>> 
>>>>> I don't get it. Adding an alert to the first task will only log when the task is done, it won't start the next task automatically. Or am I missing something here ?
>>>>> 
>>>>>  
>>>>> 
>>>>> Thanks
>>>>> 
>>>>>  
>>>>> 
>>>>> On Wed, 2018-04-25 at 11:30 +0100, Roger Davies wrote:
>>>>> 
>>>>> Hi
>>>>> 
>>>>> You can daisy-chain one task after another using the alerts bit. So, setup an alert which uses the 'Start Task' method on "Task run status changed (to Done)", then add that alert to the first task.
>>>>> 
>>>>> Roger
>>>>> 
>>>>>  
>>>>> 
>>>>> On 18 April 2018 at 08:27, tatooin <tatooin at free.fr <mailto:tatooin at free.fr>> wrote:
>>>>> 
>>>>> 
>>>>> Thanks Thijs,
>>>>> 
>>>>>  
>>>>> 
>>>>> I will have a look at your script.
>>>>> 
>>>>>  
>>>>> 
>>>>> Best,
>>>>> 
>>>>>  
>>>>> 
>>>>> On Tue, 2018-04-17 at 12:14 +0000, Thijs Stuurman wrote:
>>>>> 
>>>>> I use gvm-tools and a python script to schedule my jobs, perhaps this can serve as inspriration for your own solution:
>>>>> 
>>>>>  
>>>>> 
>>>>> https://github.com/Thijssss/openvas_scheduler <https://github.com/Thijssss/openvas_scheduler>
>>>>>  
>>>>> 
>>>>> Thijs Stuurman
>>>>> 
>>>>> Security Operations Center | KPN Internedservices B.V.
>>>>> 
>>>>> thijs.stuurman at internedservices.nl <mailto:thijs.stuurman at internedservices.nl> | thijs.stuurman at kpn.com <mailto:thijs.stuurman at kpn.com>
>>>>> T: +31(0)299476185 | M: +31(0)624366778
>>>>> 
>>>>> PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/ <https://pgp.surfnet.nl/>)
>>>>> 
>>>>> Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048
>>>>> 
>>>>>  
>>>>> 
>>>>> W: https://www.internedservices.nl <https://www.internedservices.nl/> | L: https://nl.linkedin.com/in/thijsstuurman <https://nl.linkedin.com/in/thijsstuurman>
>>>>>  
>>>>> 
>>>>> Van: Openvas-discuss <openvas-discuss-bounces at wald.intevation.org <mailto:openvas-discuss-bounces at wald.intevation.org>> Namens tatooin
>>>>> Verzonden: dinsdag 17 april 2018 09:09
>>>>> Aan: openvas-discuss at wald.intevation.org <mailto:openvas-discuss at wald.intevation.org>
>>>>> Onderwerp: [Openvas-discuss] Tasks Autostart plugin for openvas ?
>>>>> 
>>>>>  
>>>>> 
>>>>> Hi,
>>>>> 
>>>>>  
>>>>> 
>>>>> I was wondering if there was a plugin to automatically start tasks in order.  I have ordered my tasks by groups, and on a regular basis I'm running all tasks on a given group. But this remain a manual step, as I have to login to the console and start tasks one after the other (or not more than 2 or 3 tasks simultaneously to avoid overwhelming the Openvas manager) so I was wondering if there was any plugins or something close to it to allow automatic starts of tasks once the first in list is finished ?
>>>>> 
>>>>>  
>>>>> 
>>>>> The scheduling feature cannot do this unfortunately.
>>>>> 
>>>>>  
>>>>> 
>>>>> Thanks !
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Openvas-discuss mailing list
>>>>> Openvas-discuss at wald.intevation.org <mailto:Openvas-discuss at wald.intevation.org>
>>>>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss <https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss>
>>>>>  
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
> _______________________________________________
> Openvas-discuss mailing list
> Openvas-discuss at wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20180425/5aea8237/attachment.html>


More information about the Openvas-discuss mailing list