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

Commit

Permalink
wip deployment (doesnt work)
Browse files Browse the repository at this point in the history
  • Loading branch information
mud-ali committed Jun 6, 2024
1 parent 6a3a04e commit 6f79799
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
18 changes: 18 additions & 0 deletions canary-keeper-0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ubuntu:latest

WORKDIR /app

COPY chall.c .

RUN apt-get update && apt-get install -y wget gcc \
&& wget -O ynetd.c https://raw.githubusercontent.com/johnsonjh/ynetd/master/ynetd.c \
&& gcc -o ynetd ynetd.c \
&& gcc -o chall chall.c -fno-stack-protector -Wno-deprecated-declarations -no-pie -z,relro \
&& rm ynetd.c \
&& chmod +x chall && chmod +x ynetd \
&& rm -rf /var/lib/apt/lists/*

EXPOSE 6896

ENTRYPOINT ["./ynetd", "-p", "6896", "/app/chall"]

10 changes: 7 additions & 3 deletions canary-keeper-0/chall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ description: |-
My friend gave me this executable, but it keeps giving me errors.
Can you get the flag?
files:
- src: ./a.out # TODO COMPILED VERSION OF PROVIDED.C
- src: /app/chall
dest: canary-keeper
container: nc
authors:
- Jack
visible: true

#Todo Deployment
deploy:
nc:
build: .
expose: 6896/tcp

0 comments on commit 6f79799

Please sign in to comment.