|
Revision 397, 0.6 kB
(checked in by kindlund, 2 years ago)
|
Added run script; included syslog support on Agent side.
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/bash |
|---|
| 2 |
|
|---|
| 3 |
echo "Starting up Agent - (Hit CTRL-C multiple times to exit.)" |
|---|
| 4 |
|
|---|
| 5 |
IP=$(/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -get) |
|---|
| 6 |
echo "IP = $IP" |
|---|
| 7 |
|
|---|
| 8 |
while [ $IP = "0.0.0.0" ] ; do |
|---|
| 9 |
/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -release |
|---|
| 10 |
/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -renew |
|---|
| 11 |
IP=$(/cygdrive/c/Program\ Files/VMware/VMware\ Tools/VMip.exe -get) |
|---|
| 12 |
echo "IP = $IP" |
|---|
| 13 |
sleep 1 |
|---|
| 14 |
done |
|---|
| 15 |
|
|---|
| 16 |
ping www.honeyclient.org |
|---|
| 17 |
cd ~/honeyclient && svn update |
|---|
| 18 |
|
|---|
| 19 |
while [ true ] ; do |
|---|
| 20 |
sleep 5 && \ |
|---|
| 21 |
perl -Ilib bin/StartAgent.pl |
|---|
| 22 |
done |
|---|