Files
ctf/2026/cscg/pwn/string-saas/run.sh
2026-04-15 01:05:54 +02:00

9 lines
192 B
Bash
Executable File

#!/bin/bash
unzip -qnd tmp "$1"
for f in $(zipinfo -1 "$1"); do
[ -L "tmp/$f" ] && continue
file "tmp/$f" | grep -q ELF && \
sudo -u nobody strings "tmp/$f" | grep -v CSCG # no fleg
done