cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

entrypoint.sh (247B)


      1#!/bin/sh
      2# Write part 1 flag
      3echo $FLAG_PART1 > /flag.txt
      4
      5# Write part 2 flag
      6chmod +x /opt/flagtool
      7chmod u+s /opt/flagtool
      8/opt/flagtool writeflag
      9unset FLAG
     10su guacd -s /bin/sh -c "/opt/guacamole/sbin/guacd -b 0.0.0.0 -L $GUACD_LOG_LEVEL -f"