forked from p15670423/monkey
build: do not pull agent helper binaries during appimage build
This commit is contained in:
parent
7910d9be52
commit
5e56257051
|
@ -12,8 +12,6 @@ REPO_MONKEY_SRC=$REPO_MONKEY_HOME/monkey
|
|||
ISLAND_PATH="$INSTALL_DIR/monkey_island"
|
||||
MONGO_PATH="$ISLAND_PATH/bin/mongodb"
|
||||
ISLAND_BINARIES_PATH="$ISLAND_PATH/cc/binaries"
|
||||
INFECTION_MONKEY_DIR="$MONKEY_HOME/monkey/infection_monkey"
|
||||
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
|
||||
|
||||
is_root() {
|
||||
return $(id -u)
|
||||
|
@ -183,28 +181,6 @@ build_appimage() {
|
|||
appimage-builder --recipe monkey_island_builder.yml --log DEBUG --skip-build
|
||||
}
|
||||
|
||||
download_monkey_helper_binaries() {
|
||||
# Making dir for binaries
|
||||
mkdir "${MONKEY_BIN_DIR}"
|
||||
|
||||
download_sambacry_binaries
|
||||
download_tracerout_binaries
|
||||
}
|
||||
|
||||
download_sambacry_binaries() {
|
||||
# Download sambacry binaries
|
||||
log_message "Downloading sambacry binaries"
|
||||
curl -L -o ${MONKEY_BIN_DIR}/sc_monkey_runner64.so ${SAMBACRY_64_BINARY_URL}
|
||||
curl -L -o ${MONKEY_BIN_DIR}/sc_monkey_runner32.so ${SAMBACRY_32_BINARY_URL}
|
||||
}
|
||||
|
||||
download_tracerout_binaries() {
|
||||
# Download traceroute binaries
|
||||
log_message "Downloading traceroute binaries"
|
||||
curl -L -o ${MONKEY_BIN_DIR}/traceroute64 ${TRACEROUTE_64_BINARY_URL}
|
||||
curl -L -o ${MONKEY_BIN_DIR}/traceroute32 ${TRACEROUTE_32_BINARY_URL}
|
||||
}
|
||||
|
||||
if is_root; then
|
||||
log_message "Please don't run this script as root"
|
||||
exit 1
|
||||
|
@ -226,7 +202,6 @@ install_appimage_builder
|
|||
|
||||
load_monkey_binary_config
|
||||
clone_monkey_repo
|
||||
download_monkey_helper_binaries
|
||||
|
||||
copy_monkey_island_to_appdir
|
||||
|
||||
|
|
Loading…
Reference in New Issue