Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
webex/duck-finder
Browse files Browse the repository at this point in the history
  • Loading branch information
gltchitm committed May 28, 2024
1 parent cdb5880 commit 0caac4d
Show file tree
Hide file tree
Showing 13 changed files with 1,012 additions and 0 deletions.
1 change: 1 addition & 0 deletions duck-finder/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!server.zip
24 changes: 24 additions & 0 deletions duck-finder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:20-bookworm

RUN useradd -m -d /home/ctf ctf

USER ctf

RUN bash -c "curl -fsSL https://deno.land/x/install/install.sh | sh"

WORKDIR /home/ctf/app

COPY --chown=ctf:ctf ./entrypoint ./entrypoint
COPY --chown=ctf:ctf ./server ./server
COPY --chown=ctf:ctf ./flag.txt .

WORKDIR /home/ctf/app/entrypoint

RUN npm ci

ENV PATH "${PATH}:/home/ctf/.deno/bin"
ENV NODE_ENV production

EXPOSE 3000

ENTRYPOINT ["npm", "start"]
18 changes: 18 additions & 0 deletions duck-finder/chall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Duck Finder
categories:
- webex
value: 75
flag:
file: ./flag.txt
description: |-
This old service lets you make some interesting queries.
It hasn't been updated in a while, though.
files:
- src: ./server.zip
deploy:
web:
build: .
expose: 3000/tcp
authors:
- Thomas
visible: true
Loading

0 comments on commit 0caac4d

Please sign in to comment.