Changeset 1463
- Timestamp:
- 04/04/08 22:49:58 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-simpler_agent/lib/HoneyClient/Manager/VM/Clone.pm
r1461 r1463 788 788 # Output: The updated Clone $object, reflecting the status change 789 789 # of the clone VM. Will croak if this operation fails. 790 # XXX: Should this be made public?791 790 sub _changeStatus { 792 791 … … 840 839 } 841 840 842 # TODO: Need to implement this properly.843 841 $LOG->info("(" . $self->{'name'} . ") - Inserting Fingerprint Into Database."); 844 842 # Make sure the fingerprint contains a client_id. … … 866 864 } 867 865 868 # XXX: Comment this. 866 # If specified, dumps the supplied fingerprint information to 867 # a corresponding file. 869 868 sub _dumpFingerprint { 870 869 … … 879 878 my $dump_file = new IO::File($COMPROMISE_FILE, "a"); 880 879 881 # XXX: Delete this block, eventually.882 880 $Data::Dumper::Terse = 0; 883 881 $Data::Dumper::Indent = 2; 884 print $dump_file "\$vm Name = \"" . $self->{'name'} . "\";\n";882 print $dump_file "\$vm_name = \"" . $self->{'name'} . "\";\n"; 885 883 print $dump_file Dumper($fingerprint); 886 884 $dump_file->close(); … … 1354 1352 my $cloneConfig = $clone->{config}; 1355 1353 1356 # TODO: Fix this.1357 1354 $clone = $clone->drive(work => { 'http://www.google.com/' => 1 }); 1358 1355 isa_ok($clone, 'HoneyClient::Manager::VM::Clone', "drive(work => { 'http://www.google.com/' => 1})") or diag("The drive() call failed."); … … 1411 1408 } 1412 1409 1413 # TODO: Add more.1414 1410 my $som; 1415 1411 my $result; … … 1436 1432 1437 1433 # XXX: Delete this, eventually. 1438 print Dumper($result) ;1434 print Dumper($result) . "\n"; 1439 1435 1440 1436 # Figure out if there was a compromise found. 1441 1437 if (scalar(@{$result->{'fingerprint'}->{os_processes}})) { 1442 1438 $LOG->warn("(" . $self->{'name'} . ") - " . $self->{'driver_name'} . " - Integrity Check: FAILED"); 1443 # XXX: Test this.1444 1439 1445 1440 # Dump the fingerprint to a file, if need be.
