monkey/monkey_island/linux/monkey.sh

15 lines
262 B
Bash
Raw Normal View History

2016-01-14 20:05:27 +08:00
#!/bin/bash
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
# 64-bit stuff here
ARCH=64
else
# 32-bit stuff here
ARCH=32
fi
MONKEY_FILE=monkey-linux-$ARCH
2016-01-19 23:52:02 +08:00
cp -f /var/monkey_island/cc/binaries/$MONKEY_FILE /tmp
2016-01-14 20:05:27 +08:00
/tmp/$MONKEY_FILE m0nk3y