Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions Binary Exploitation/BeeChat/challenge.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: "BeeChat"
category: Binary Exploitation
description: |-
I'm making a cli based chatting system called BeeChat :D and yea it's not the same with BitChat.

Author: Lyo

connection_info: nc 31.97.187.222 31346

##### DON'T CHANGE
value: 500
type: dynamic
extra:
initial: 500
decay: 30
minimum: 100
##### DON'T CHANGE

flags:
- BEECTF{0lder_v3rs1on_glibc_1s_eas1er_to_w0rk_wi7h_XD}

tags:
- hard

files:
- dist/chall.zip

state: hidden

version: "0.1"
name: "BeeChat"
category: Binary Exploitation
description: |-
I'm making a cli based chatting system called BeeChat :D and yea it's not the same with BitChat.
Author: Lyo
connection_info: nc 31.97.187.222 31346
##### DON'T CHANGE
value: 500
type: dynamic
extra:
initial: 500
decay: 30
minimum: 100
##### DON'T CHANGE
flags:
- BEECTF{0lder_v3rs1on_glibc_1s_eas1er_to_w0rk_wi7h_XD}
tags:
- hard
files:
- dist/chall.zip
state: hidden
version: "0.1"
66 changes: 33 additions & 33 deletions Binary Exploitation/BeeChat/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Use Ubuntu 18.04 as the base image for glibc 2.27
FROM ubuntu:18.04

# Install the C compiler and build tools
RUN apt-get update && \
apt-get install -y build-essential socat && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Set the working directory inside the container
WORKDIR /home/ctf

# Copy the source code and the compile script
COPY chall.c /home/ctf/chall.c
COPY compile.sh /home/ctf/compile.sh
COPY flag.txt /home/ctf/flag.txt

RUN chmod +x /home/ctf/compile.sh

RUN /home/ctf/compile.sh

RUN rm /home/ctf/compile.sh /home/ctf/chall.c

RUN chmod 755 /home/ctf/chall && \
chmod 444 /home/ctf/flag.txt && \
chown root:root /home/ctf/flag.txt /home/ctf/chall

RUN useradd -m ctf

USER ctf

EXPOSE 3135

ENTRYPOINT ["socat", "TCP-LISTEN:3135,reuseaddr,fork", "EXEC:/home/ctf/chall,stderr"]
# Use Ubuntu 18.04 as the base image for glibc 2.27
FROM ubuntu:18.04
# Install the C compiler and build tools
RUN apt-get update && \
apt-get install -y build-essential socat && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set the working directory inside the container
WORKDIR /home/ctf
# Copy the source code and the compile script
COPY chall.c /home/ctf/chall.c
COPY compile.sh /home/ctf/compile.sh
COPY flag.txt /home/ctf/flag.txt
RUN chmod +x /home/ctf/compile.sh
RUN /home/ctf/compile.sh
RUN rm /home/ctf/compile.sh /home/ctf/chall.c
RUN chmod 755 /home/ctf/chall && \
chmod 444 /home/ctf/flag.txt && \
chown root:root /home/ctf/flag.txt /home/ctf/chall
RUN useradd -m ctf
USER ctf
EXPOSE 3135
ENTRYPOINT ["socat", "TCP-LISTEN:3135,reuseaddr,fork", "EXEC:/home/ctf/chall,stderr"]
Loading
Loading