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 (#57)
Browse files Browse the repository at this point in the history
* webex/duck-finder

* yaml fix

---------

Co-authored-by: mudasir <96320211+mud-ali@users.noreply.github.com>
  • Loading branch information
gltchitm and mud-ali authored Jun 7, 2024
1 parent 3ef8067 commit e7f6baa
Show file tree
Hide file tree
Showing 13 changed files with 1,013 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"]
19 changes: 19 additions & 0 deletions duck-finder/chall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Duck Finder
categories:
- webex
value: 100
flag:
file: ./flag.txt
description: |-
This old service lets you make some interesting queries.
It hasn't been updated in a while, though.
hints: []
files:
- src: ./server.zip
deploy:
web:
build: .
expose: 3000/tcp
authors:
- Thomas
visible: true
Loading

0 comments on commit e7f6baa

Please sign in to comment.