summaryrefslogtreecommitdiffstats
path: root/iv/orodja/napad/config
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-09-02 22:42:38 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-09-02 22:42:38 +0200
commit1630e1bcbe19e5c499b2a7714cc1d98fef28c480 (patch)
tree1d2006b4393b669dfe1a6130b183e9b5de7bafff /iv/orodja/napad/config
parentiv (diff)
downloadr-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar.gz
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar.bz2
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar.lz
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar.xz
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.tar.zst
r-1630e1bcbe19e5c499b2a7714cc1d98fef28c480.zip
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 =====