Rows:
| CHALLENGE | AUTHORS | SOLVES (CURRENT) | SOLVE RATE (AT CONTEST TIME) |
|---|---|---|---|
WelcomeMisc | 1462 solves | - | |
AlpacaHack 2100Misc | 1356 solves | - | |
a fact of CTFCrypto | 774 solves | - | |
Simple LoginWeb | 588 solves | Top 28% = 84/300 users | |
EmojifyWeb | 529 solves | - | |
507 solves | - | ||
455 solves | - | ||
hit-and-missMisc | 352 solves | - | |
super-tomatoCrypto | 347 solves | - | |
echoPwn | 345 solves | Top 32% = 56/174 users | |
Xmas LoginWeb | 311 solves | - | |
307 solves | - | ||
Alpaca BankWeb | 304 solves | - | |
295 solves | - | ||
292 solves | - | ||
size limitCrypto | 289 solves | - | |
🐈Web | 287 solves | - | |
Encoding BasicsMisc Crypto | 287 solves | - | |
108Misc | 269 solves | - | |
266 solves | Top 15% = 71/458 users |
Rows:
ある条件を満たすとフラグが得られるようです
import Fastify from "fastify";
import fastifyCookie from "@fastify/cookie";
const fastify = Fastify();
fastify.register(fastifyCookie);
fastify.get("/", async (req, reply) => {
reply.setCookie('admin', 'false', { path: '/', httpOnly: true });
if (req.cookies.admin === "true")
reply.header("X-Flag", process.env.FLAG);
return "can you get the flag?";
});
fastify.listen({ port: process.env.PORT, host: "0.0.0.0" });
*完全なソースコードは以下からダウンロード可能です。