We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e5116a commit 1bbd748Copy full SHA for 1bbd748
setup_wargame.sh
@@ -7,8 +7,11 @@
7
# Warn the user about running this on their host machine
8
# (because it makes various invasive settings-changes, and runs a ton of vulnerable services)
9
echo -e "\x1b[31;1mDON'T RUN THIS ON YOUR REAL COMPUTER\x1b[0m"
10
-echo -e "If you're running this on your real computer, \x1b[31;1mpress control-c NOW\x1b[0m to stop this script."
11
-sleep 10
+echo "Are you running this inside a VM? (If you don't know what that means, don't run the script.)"
+read -p "(yes/no)> "
12
+if [ "$REPLY" != 'yes' ]; then
13
+ exit
14
+fi
15
16
if [ "$USER" != 'root' ]; then
17
echo "ERROR: Script must be run using root!"
0 commit comments