Changeset 1409

Show
Ignore:
Timestamp:
04/01/08 14:59:21 (6 months ago)
Author:
kindlund
Message:

Updated set_client_suspicious call within Manager.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/trunk/lib/HoneyClient/Manager.pm

    r1408 r1409  
    893893        } 
    894894        if ($globalAgentErrorCount >= getVar(name => "max_agent_error_count")) { 
    895             # TODO: Need to update the API first. 
    896             #if ($DB_ENABLE && ($vm->database_id > 0)) { 
    897             #    # Mark the VM as suspended within the database. 
    898             #    HoneyClient::Manager::Database::set_client_suspicious($vm->database_id); 
    899             #} 
     895            if ($DB_ENABLE && ($vm->database_id > 0)) { 
     896                # Mark the VM as suspended within the database. 
     897                my $dt = DateTime::HiRes->now(time_zone => "local"); 
     898                HoneyClient::Manager::Database::set_client_suspicious({ 
     899                    client_id => $vm->database_id, 
     900                    compromise => $dt->ymd('-').'T'.$dt->hms(':'), 
     901                }); 
     902            } 
    900903            $globalAgentErrorCount = 0; 
    901904            # Reset the FW state table.