diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-01 00:15:18 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-09-01 00:15:18 +0200 |
commit | b94bef6e820fec0ffde7971d3134d5738c1521d1 (patch) | |
tree | 2ae275e51629ae9979a7303f5605bb4988b30234 /iv/orodja/napad/config | |
parent | hacker gets hacked, double fdput vuln (diff) | |
download | r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar.gz r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar.bz2 r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar.lz r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar.xz r-b94bef6e820fec0ffde7971d3134d5738c1521d1.tar.zst r-b94bef6e820fec0ffde7971d3134d5738c1521d1.zip |
Diffstat (limited to 'iv/orodja/napad/config')
-rw-r--r-- | iv/orodja/napad/config | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/iv/orodja/napad/config b/iv/orodja/napad/config new file mode 100644 index 0000000..371faed --- /dev/null +++ b/iv/orodja/napad/config @@ -0,0 +1,44 @@ +# Common config for exploit.sh and submission.py. +# It is to be sourced. It only sets environment variables. + +# ========================== +# ========= COMMON ========= + +export FLAG_REGEX="^[A-Z0-9]{31}=$" +export SUBMISSION_PORT=21502 + +# ========================== +# ======= EXPLOIT.SH ======= + +# Where can exploit.sh find submission.py. Port is a common setting. +export SUBMISSION_HOST=k.4a.si + +# Must be precise, not less than round duration. Used to calculate round id. +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 + +# ========================== +# ====== SUBMISSION.PY ===== + +export SUBMISSION_DB=flags.db + +# How much flags to send in one request. +# With 2560, if it takes 37 bytes per flag, 2560*37=94720 +# Ostane nam torej še dobrih 5280 za headerje, +# če je request limited na 100 kB +export SUBMISSION_MAX_FLAGS=2560 + +# PUT request, ECSC 2024 AD style +export SUBMISSION_URL=http://10.10.0.1:8080/flags + +# How many seconds to delay after a successful submission. +# With 15, we send at most 4 requests per minute out of 15 allowed. +export SUBMISSION_DELAY=15 + +# This is sent in X-Team-Token in requests to SUBMISSION_URL +export SUBMISSION_TEAM_TOKEN=e5152d70a4d18093cae8844f4e959cf1 + +# Where to bind to. Use SUBMISSION_PORT in common settings for port. +export SUBMISSION_BIND=:: |