Changeset 1407

Show
Ignore:
Timestamp:
04/01/08 11:28:35 (6 months ago)
Author:
kindlund
Message:

Updated Agent handling logic slightly — marked clones that do not respond as 'suspicious'.

Files:

Legend:

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

    r1368 r1407  
    532532 
    533533    if ($DB_ENABLE && ($clientDbId > 0)) { 
    534        if (defined($globalAgentState)) { 
    535            $LOG->info("Saving URL History to Database."); 
    536            insert_url_history(agent_state => $globalAgentState, 
     534        if (defined($globalAgentState)) { 
     535            $LOG->info("Saving URL History to Database."); 
     536            insert_url_history(agent_state => $globalAgentState, 
    537537                               client_id   => $clientDbId); 
    538538        } 
     
    552552END { 
    553553    # TODO: Make sure this works correctly. 
    554    # Make sure all processes in our process group our dead. 
    555    kill("KILL", -$$); 
     554    # Make sure all processes in our process group our dead. 
     555    kill("KILL", -$$); 
    556556} 
    557557 
     
    893893        } 
    894894        if ($globalAgentErrorCount >= getVar(name => "max_agent_error_count")) { 
     895            if ($DB_ENABLE && ($vm->database_id > 0)) { 
     896                # Mark the VM as suspended within the database. 
     897                HoneyClient::Manager::Database::set_client_suspicious($vm->database_id); 
     898            } 
    895899            $globalAgentErrorCount = 0; 
    896900            # Reset the FW state table.