cscg ist super

This commit is contained in:
2026-04-10 03:31:12 +02:00
parent 7a9dfeda60
commit db0324c43d
99 changed files with 92358 additions and 0 deletions

Binary file not shown.

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}

BIN
2026/cscg/rev/intro1/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,20 @@
import ida_bytes
def calc_flag(start_ea, length):
raw_data = ida_bytes.get_bytes(start_ea, length)
if not raw_data:
return None
data = bytearray(raw_data)
for i in range(len(data)):
data[i] = (data[i] + 119) & 0xFF
return data
result = calc_flag(0x2020, 25)
if result:
print(f"Result (hex): {result.hex()}")
print(f"Result (string): {''.join(chr(b) for b in result if 32 <= b <= 126)}")

View File

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

BIN
2026/cscg/rev/intro2/rev2 Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.