Changeset 333
- Timestamp:
- 05/06/07 22:00:59 (2 years ago)
- Files:
-
- honeyclient/trunk/bin/StartAgent.pl (modified) (1 diff)
- honeyclient/trunk/lib/HoneyClient/Agent.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/bin/StartAgent.pl
r332 r333 37 37 print "Watchdog fault detected, recovering Agent daemon.\n"; 38 38 # XXX: Reenable this, eventually. 39 Carp::carp __PACKAGE__ . "->_watchdogFaultHandler(): Error occurred during processing.\n" . $errMsg;39 #Carp::carp __PACKAGE__ . "->_watchdogFaultHandler(): Error occurred during processing.\n" . $errMsg; 40 40 41 41 honeyclient/trunk/lib/HoneyClient/Agent.pm
r332 r333 243 243 # initialized integrity state of the VM -- ready to be checked 244 244 # against, at any time. 245 our $integrity = undef;245 #our $integrity = undef; 246 246 our $integrityState : shared = undef; 247 247 … … 371 371 # Perform initial integrity baseline check. 372 372 #my $integrity = undef; 373 if ($PERFORM_INTEGRITY_CHECKS) {374 $integrity = HoneyClient::Agent::Integrity->new();375 $integrity->closeFiles();376 $integrityState = freeze($integrity);377 }373 #if ($PERFORM_INTEGRITY_CHECKS) { 374 # $integrity = HoneyClient::Agent::Integrity->new(); 375 # $integrity->closeFiles(); 376 # $integrityState = freeze($integrity); 377 #} 378 378 # XXX: Check to make sure this doesn't destroy the integrity 379 379 # object prematurely. … … 653 653 # Temporary variable, used to hold thread objects. 654 654 my $thread = undef; 655 656 # XXX: Delete this, maybe?657 my $integrity = undef;658 655 659 656 # TODO: Eventually, use the globally defined array … … 723 720 724 721 # Initially set local integrity object to undef. 725 my $integrity 2= undef;722 my $integrity = undef; 726 723 727 724 # Initially set all driver objects to undef. … … 736 733 # As such, do NOT try to call integrity checks on multiple, simultaneous 737 734 # asynchronous threaded drivers. 738 $integrity2= thaw($integrityState);735 #$integrity = thaw($integrityState); 739 736 # Perform initial integrity baseline check. 740 737 #print "Initializing Integrity Check...\n"; 741 738 # TODO: Initialize Integrity Checks 742 #$integrity = HoneyClient::Agent::Integrity->new();739 $integrity = HoneyClient::Agent::Integrity->new(); 743 740 } 744 741 … … 847 844 848 845 # TODO: Perform Integrity Check 849 if (defined($integrity 2)) {846 if (defined($integrity)) { 850 847 # For now, we update a scalar called 'is_compromised' within 851 848 # the $data->{$driverName}->{'status'} sub-hashtable. 852 849 print "Performing Integrity Checks...\n"; 853 my $changes = $integrity 2->check();850 my $changes = $integrity->check(); 854 851 if (scalar(@{$changes->{registry}}) || 855 852 scalar(@{$changes->{filesystem}})) {
