diff --git a/canary-keeper-0/Dockerfile b/canary-keeper-0/Dockerfile new file mode 100644 index 0000000..0463ead --- /dev/null +++ b/canary-keeper-0/Dockerfile @@ -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"] + diff --git a/canary-keeper-0/chall.yaml b/canary-keeper-0/chall.yaml index d3ad1bc..00a31b0 100644 --- a/canary-keeper-0/chall.yaml +++ b/canary-keeper-0/chall.yaml @@ -2,15 +2,19 @@ name: Canary Keeper categories: - binex value: 100 -flag: - file: ./flag.txt +flag: bcactf{s1mple_CANaRY_9b36bd9f3fd2f} 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 \ No newline at end of file +hints: [] +deploy: + nc: + build: . + expose: 6896/tcp \ No newline at end of file