diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/Dockerfile b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/Dockerfile new file mode 100644 index 0000000..8133782 --- /dev/null +++ b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:latest +RUN apk add --no-cache socat dash && ln -sf /usr/bin/dash /bin/sh +EXPOSE 1337 +RUN addgroup -S ctf && adduser -S ctf -G ctf +COPY challenge/ /home/ctf/ +WORKDIR /home/ctf +USER ctf +CMD ["socat", "tcp-l:1337,reuseaddr,fork", "EXEC:./sound_of_silence"] diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/build-docker.sh b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/build-docker.sh new file mode 100755 index 0000000..6f567d7 --- /dev/null +++ b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/build-docker.sh @@ -0,0 +1,3 @@ +#!/bin/sh +docker build --tag=sound_of_silence . +docker run -it -p 1337:1337 --rm --name=sound_of_silence sound_of_silence \ No newline at end of file diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/flag.txt b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/flag.txt new file mode 100644 index 0000000..8c8ec32 --- /dev/null +++ b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/flag.txt @@ -0,0 +1 @@ +HTB{f4k3_fl4g_4_t35t1ng} diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/ld-linux-x86-64.so.2 b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/ld-linux-x86-64.so.2 new file mode 100755 index 0000000..3f5c75a Binary files /dev/null and b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/ld-linux-x86-64.so.2 differ diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/libc.so.6 b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/libc.so.6 new file mode 100755 index 0000000..8538e7a Binary files /dev/null and b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/glibc/libc.so.6 differ diff --git a/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/sound_of_silence b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/sound_of_silence new file mode 100755 index 0000000..b508934 Binary files /dev/null and b/htb/cyber_apocalypse_2024/pwn/pwn_sound_of_silence/challenge/sound_of_silence differ