changed repo structure
This commit is contained in:
18
2025/cscg/rev/intro2/Dockerfile
Normal file
18
2025/cscg/rev/intro2/Dockerfile
Normal 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
|
||||
1
2025/cscg/rev/intro2/flag.txt
Normal file
1
2025/cscg/rev/intro2/flag.txt
Normal file
@@ -0,0 +1 @@
|
||||
CSCG{testflag}
|
||||
6
2025/cscg/rev/intro2/genPassword.py
Normal file
6
2025/cscg/rev/intro2/genPassword.py
Normal file
@@ -0,0 +1,6 @@
|
||||
password = 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"
|
||||
|
||||
input = bytes((byte + 0x77) % 256 for byte in password)
|
||||
|
||||
with open("password.bin", "wb") as f:
|
||||
f.write(input)
|
||||
1
2025/cscg/rev/intro2/password.bin
Normal file
1
2025/cscg/rev/intro2/password.bin
Normal file
@@ -0,0 +1 @@
|
||||
yay_st4tic_transf0rmationw
|
||||
BIN
2025/cscg/rev/intro2/rev2
Executable file
BIN
2025/cscg/rev/intro2/rev2
Executable file
Binary file not shown.
BIN
2025/cscg/rev/intro2/rev2.bndb
Normal file
BIN
2025/cscg/rev/intro2/rev2.bndb
Normal file
Binary file not shown.
Reference in New Issue
Block a user