|
Revision 1499, 0.7 kB
(checked in by kindlund, 9 months ago)
|
Merging simpler_agent branch into trunk.
|
- Property svn:executable set to
*
- Property svn:keywords set to
Id "$file"
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
use strict; |
|---|
| 6 |
use warnings; |
|---|
| 7 |
use Carp (); |
|---|
| 8 |
|
|---|
| 9 |
use Term::ReadKey; |
|---|
| 10 |
use HoneyClient::Util::Config qw(getVar); |
|---|
| 11 |
use HoneyClient::Agent; |
|---|
| 12 |
use HoneyClient::Util::SOAP qw(getClientHandle); |
|---|
| 13 |
use Data::Dumper; |
|---|
| 14 |
use MIME::Base64 qw(decode_base64 encode_base64); |
|---|
| 15 |
use Storable qw(thaw nfreeze); |
|---|
| 16 |
use Log::Log4perl qw(:easy); |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
our $LOG = get_logger(); |
|---|
| 20 |
|
|---|
| 21 |
our ($stub, $som); |
|---|
| 22 |
our $URL = HoneyClient::Agent->init(); |
|---|
| 23 |
|
|---|
| 24 |
print "URL: " . $URL. "\n"; |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
my $key; |
|---|
| 28 |
ReadMode 4; |
|---|
| 29 |
while (not defined ($key = ReadKey(-1))) { |
|---|
| 30 |
|
|---|
| 31 |
} |
|---|
| 32 |
ReadMode 0; |
|---|
| 33 |
|
|---|
| 34 |
HoneyClient::Agent->destroy(); |
|---|