Changeset 382
- Timestamp:
- 05/25/07 19:15:53 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Manager.pm
r344 r382 610 610 611 611 # Initialize the firewall. 612 $stubFW->fwInit();612 # $stubFW->fwInit(); 613 613 614 614 # Add new chain, per cloned VM. 615 $stubFW->addChain($vmStateTable);615 # $stubFW->addChain($vmStateTable); 616 616 617 617 sleep (2); … … 643 643 # Check to see if Agent::run() thread has stopped 644 644 # and that a compromise was detected. 645 if (! defined($ret->{$args{'driver'}}->{thread_id})) {645 if (!$ret->{$args{'driver'}}->{status}->{is_running}) { 646 646 if ($ret->{$args{'driver'}}->{status}->{is_compromised}) { 647 647 print "Calling getState()...\n"; … … 696 696 # of firewall mods, or if the Agent is completely finished 697 697 # and needs more input to continue. 698 if (! defined($ret->{$args{'driver'}}->{thread_id})) {698 if (!$ret->{$args{'driver'}}->{status}->{is_running}) { 699 699 700 700 701 701 # Delete the old firewall rules, based upon existing 702 702 # targets. 703 $stubFW->deleteRules($vmStateTable);703 # $stubFW->deleteRules($vmStateTable); 704 704 705 705 # Get the new targets from the Agent. … … 713 713 714 714 # Add the new targets from the Agent. 715 $stubFW->addRules($vmStateTable);715 # $stubFW->addRules($vmStateTable); 716 716 717 717 print "Calling run()...\n"; … … 728 728 # the daemon, in which case, we indefinately try to reset the 729 729 # firewall accordingly. 730 $stubFW->fwInit();731 $stubFW->addChain($vmStateTable);732 $stubFW->addRules($vmStateTable);730 # $stubFW->fwInit(); 731 # $stubFW->addChain($vmStateTable); 732 # $stubFW->addRules($vmStateTable); 733 733 }; 734 734 if (!$@) { … … 742 742 return $args{'agent_state'}; 743 743 } 744 print "Sleeping for 2 mins...\n";745 sleep (1 20);744 print "Sleeping for 10s...\n"; 745 sleep (10); 746 746 } 747 747 }
