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

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

Initialized public repository with 0.9 release.

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