summaryrefslogtreecommitdiffstats
path: root/iv/orodja/napad/config
diff options
context:
space:
mode:
Diffstat (limited to 'iv/orodja/napad/config')
-rw-r--r--iv/orodja/napad/config33
1 files changed, 33 insertions, 0 deletions
diff --git a/iv/orodja/napad/config b/iv/orodja/napad/config
index 371faed..c71c9bd 100644
--- a/iv/orodja/napad/config
+++ b/iv/orodja/napad/config
@@ -19,6 +19,39 @@ export ROUND_DURATION=120
# When does the game start (in UTC). Used to calculate current round id.
export GAME_START=2024-09-01T07:00:00
+# Team numbers to attack
+export GAME_TEAMS={0..42}
+
+# Flag IDs URL
+export game_flag_ids_url()
+{
+ echo http://10.10.0.1:8081/flagIds?service=$1&team=$2&round=$3
+}
+export -f game_flag_ids_url
+
+# Target IP from ID
+export game_target_ip()
+{
+ echo 10.60.$1.1
+}
+export -f game_target_ip
+
+# NOP TEAM ID
+export GAME_NOP_TEAM=0
+
+# For how many rounds are flags valid at a time?
+# It doesn't make sense for this to be less than 1.
+export GAME_VALID_ROUNDS=5
+
+# Function exploit.sh should call on errors.
+# Args: service team pwd usr@pc message
+# 1 2 3 4 5
+export exploit_error_handler()
+{
+ echo "[exploit.sh] ERROR $1"
+ notify-send "exploit.sh ERROR" "$5" --urgency critical
+}
+
# ==========================
# ====== SUBMISSION.PY =====