WIP cscg24

This commit is contained in:
2024-03-02 02:46:14 +01:00
parent 4993c1ff1d
commit cd68823bf5
41 changed files with 22825 additions and 0 deletions

BIN
cscg24/rev/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,17 @@
# run via docker compose :)
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get -y install socat
RUN useradd -d /home/ctf/ -m -p ctf -s /bin/bash ctf
RUN echo "ctf:ctf" | chpasswd
WORKDIR /home/ctf
COPY rev1 .
COPY flag.txt .
USER ctf
CMD socat -ddd TCP4-LISTEN:1024,fork,reuseaddr exec:./rev1,pty,echo=0,raw,iexten=0

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
CSCG{testflag}

Binary file not shown.

BIN
cscg24/rev/intro_rev_1/rev1 Executable file

Binary file not shown.

View File

@@ -0,0 +1,18 @@
# run via docker compose :)
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get -y install socat
RUN useradd -d /home/ctf/ -m -p ctf -s /bin/bash ctf
RUN echo "ctf:ctf" | chpasswd
WORKDIR /home/ctf
COPY rev2 .
COPY flag.txt .
USER ctf
CMD socat -ddd TCP4-LISTEN:1024,fork,reuseaddr exec:./rev2,pty,echo=0,raw,iexten=0

View File

@@ -0,0 +1,9 @@
encoded_passwd = b"\x02\xea\x02\xe8\xfc\xfd\xbd\xfd\xf2\xec\xe8\xfd\xfb\xea\xf7\xfc\xef\xb9\xfb\xf6\xea\xfd\xf2\xf8\xf7\x00"
def decode(char: int):
return char + 0x77
for char in encoded_passwd:
print(chr(decode(char)), end="")

View File

@@ -0,0 +1 @@
CSCG{testflag}

BIN
cscg24/rev/intro_rev_2/rev2 Executable file

Binary file not shown.