From ca4ad65bcb032ded36610054c59182599d39360f Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Mon, 16 Oct 2023 19:09:29 +0200 Subject: Initial commit --- tulip/0001-restart-always.patch | 48 +++++++++++++++++++++++++++++++++++++++++ tulip/tulip.env | 13 +++++++++++ 2 files changed, 61 insertions(+) create mode 100644 tulip/0001-restart-always.patch create mode 100644 tulip/tulip.env (limited to 'tulip') diff --git a/tulip/0001-restart-always.patch b/tulip/0001-restart-always.patch new file mode 100644 index 0000000..9ffe376 --- /dev/null +++ b/tulip/0001-restart-always.patch @@ -0,0 +1,48 @@ +From d04f8047c2a521bda684039f82d88e961f555dde Mon Sep 17 00:00:00 2001 +From: Aleksa Vuckovic +Date: Mon, 16 Oct 2023 16:38:57 +0200 +Subject: [PATCH] restart: always + +--- + docker-compose.yml | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/docker-compose.yml b/docker-compose.yml +index b3ffe58..8d43a6b 100644 +--- a/docker-compose.yml ++++ b/docker-compose.yml +@@ -19,6 +19,7 @@ services: + - mongo + networks: + - internal ++ restart: always + environment: + API_SERVER_ENDPOINT: http://api:5000/ + +@@ -33,6 +34,7 @@ services: + - mongo + networks: + - internal ++ restart: always + volumes: + - ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro + environment: +@@ -51,6 +53,7 @@ services: + - mongo + networks: + - internal ++ restart: always + volumes: + - ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro + command: "./assembler -dir ${TRAFFIC_DIR_DOCKER}" +@@ -67,6 +70,7 @@ services: + - mongo + networks: + - internal ++ restart: always + volumes: + - ${TRAFFIC_DIR_HOST}:${TRAFFIC_DIR_DOCKER}:ro + command: "./enricher -eve ${TRAFFIC_DIR_DOCKER}/eve.json" +-- +2.42.0 + diff --git a/tulip/tulip.env b/tulip/tulip.env new file mode 100644 index 0000000..619c9e7 --- /dev/null +++ b/tulip/tulip.env @@ -0,0 +1,13 @@ +FLAG_REGEX="[A-Z0-9]{31}=" +TULIP_MONGO="mongo:27017" + +# The location of your pcaps as seen by the host +TRAFFIC_DIR_HOST=./services/test_pcap + +# The location of your pcaps (and eve.json), as seen by the container +TRAFFIC_DIR_DOCKER=/traffic + +# Start time of the CTF (or network open if you prefer) +TICK_START="2018-06-27T13:00+02:00" +# Tick length in ms +TICK_LENGTH=180000 -- cgit v1.2.3