Hi Brian,

I had the same problem as well ;) but finally I found that the scan function didn't give a good return code in the scan.pm and I show you:

....

    # Instantiate the new scan object
    my $scan = instantiate_scan_engine($type, %scan_attributes);

    # Start the scan
    my $failed_scan = $scan->startScan();

    # Hum ... somethings wrong in the scan ?
    if ( $failed_scan ) {
        my $cmd = $bin_dir . "/pfcmd manage vclose $host_mac $SCAN_VID";
....

openvas.pm module only returns true (1) if everything is fine, otherwise null return code. $failed_scan will always be 1 when the task has been created successfully, so we need to fix it with:

...
   # Instantiate the new scan object
    my $scan = instantiate_scan_engine($type, %scan_attributes);

    # Start the scan
    # IBB Patch 2014-08-09 - Juan
    my $error_scan = $scan->startScan();

    # Hum ... somethings wrong in the scan ?
    if ( !$error_scan ) {
        my $cmd = $bin_dir . "/pfcmd manage vclose $host_mac $SCAN_VID";
...


Regards,


El 23/08/2014 4:20, Brian Lucas escribió:
First and foremost, I apologize for this being a new thread. I subscribed to the list after the original thread was created and cannot figure out how to reply to an existing thread.

I am VERY interested in this topic. I myself have modified openvas.pm <http://openvas.pm> in a similar fashion in order to get the latest version of OpenVAS functional with PF. I have the alerts, targets, and tasks being created, and the tasks being started properly and without errors. I am running into a problem where the scan starting is immediately triggering the release of the client onto the default vlan before the scan is complete. Can you provide some insight as to how you managed this hurdle?

V/R
Brian Lucas


------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel


No se encontraron virus en este mensaje.
Comprobado por AVG - www.avg.com <http://www.avg.com>
Versión: 2013.0.3485 / Base de datos de virus: 3955/8097 - Fecha de publicación: 08/25/14


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
PacketFence-devel mailing list
PacketFence-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-devel

Reply via email to