From 1630e1bcbe19e5c499b2a7714cc1d98fef28c480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 2 Sep 2024 22:42:38 +0200 Subject: napad --- iv/orodja/napad/config | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'iv/orodja/napad/config') 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 ===== -- cgit v1.2.3