root/honeyclient/tags/exp/DOWN1-stephenson-link_scoring/bin/StartManager.pl

Revision 153, 1.0 kB (checked in by kindlund, 2 years ago)

Merged trunk changes back into exp branch, in order to prepare for final merge back into trunk.

  • Property svn:executable set to *
  • Property svn:keywords set to Id "$file"
Line 
1 #!perl -w -Ilib
2
3 # $Id$
4
5 use strict;
6 use warnings;
7 use Carp ();
8
9 use Data::Dumper;
10
11 # Include Hash Serialization Utility Libraries
12 use Storable qw(nfreeze thaw);
13
14 # Include Base64 Libraries
15 use MIME::Base64 qw(encode_base64 decode_base64);
16
17 use HoneyClient::Manager;
18
19 # We expect that the user will supply a single argument to this script.
20 # Namely, the initial URL that they want the Agent to use.
21
22 my $agentState = HoneyClient::Manager->run(
23                     driver           => 'IE', # Change to 'IE' or 'FF'
24                     master_vm_config => '/vm/Agent.Master-7/winXPPro.cfg',
25                     agent_state      => encode_base64(nfreeze({
26                         IE => { # Change to 'IE' or 'FF'
27                             next_link_to_visit => $ARGV[0],
28                             # Enable this line, if you want to only go to the
29                             # first 5 links for each domain.
30                             max_relative_links_to_visit => 5,
31                          },
32                     })),
33                  );
34
Note: See TracBrowser for help on using the browser.