This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
generated from BCACTF/chall-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,012 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!server.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.