Skip to content

Commit

Permalink
(web): Add public files
Browse files Browse the repository at this point in the history
  • Loading branch information
saintbarber committed Jun 30, 2024
1 parent c4aa542 commit 7daa913
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion web/wheres_the_sauce/challenge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ extra:
redirect_type: http
compose_stack: !filecontents docker-compose.yml


flags:
- CTF{r34d_th3_50urc3_und3r57and_th3_5auc3}

tags:
- beginner

files:
- "public/wheres_the_sauce.zip"

state: visible
version: "0.1"
Empty file.
Binary file added web/wheres_the_sauce/public/wheres_the_sauce.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions web/wheres_the_sauce/setup/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const express = require('express')
const router = express.Router({ caseSensitive: true });

const response = data => ({ message: data });
flag = process.env.flag
flag = process.env.flag || "CTF{fake_flag_for_testing}"

const flag_part_1 = flag.slice(0, flag.length / 2)
const flag_part_2 = flag.slice(flag.length / 2, flag.length)
Expand Down

0 comments on commit 7daa913

Please sign in to comment.