WIP cscg24
This commit is contained in:
BIN
cscg24/rev/.DS_Store
vendored
Normal file
BIN
cscg24/rev/.DS_Store
vendored
Normal file
Binary file not shown.
17
cscg24/rev/intro_rev_1/Dockerfile
Normal file
17
cscg24/rev/intro_rev_1/Dockerfile
Normal 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
|
||||
BIN
cscg24/rev/intro_rev_1/README.pdf
Normal file
BIN
cscg24/rev/intro_rev_1/README.pdf
Normal file
Binary file not shown.
BIN
cscg24/rev/intro_rev_1/README_german.pdf
Normal file
BIN
cscg24/rev/intro_rev_1/README_german.pdf
Normal file
Binary file not shown.
1
cscg24/rev/intro_rev_1/flag.txt
Normal file
1
cscg24/rev/intro_rev_1/flag.txt
Normal file
@@ -0,0 +1 @@
|
||||
CSCG{testflag}
|
||||
BIN
cscg24/rev/intro_rev_1/intro-rev-2.zip
Normal file
BIN
cscg24/rev/intro_rev_1/intro-rev-2.zip
Normal file
Binary file not shown.
BIN
cscg24/rev/intro_rev_1/rev1
Executable file
BIN
cscg24/rev/intro_rev_1/rev1
Executable file
Binary file not shown.
18
cscg24/rev/intro_rev_2/Dockerfile
Normal file
18
cscg24/rev/intro_rev_2/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
|
||||
9
cscg24/rev/intro_rev_2/decode_password.py
Normal file
9
cscg24/rev/intro_rev_2/decode_password.py
Normal 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="")
|
||||
1
cscg24/rev/intro_rev_2/flag.txt
Normal file
1
cscg24/rev/intro_rev_2/flag.txt
Normal file
@@ -0,0 +1 @@
|
||||
CSCG{testflag}
|
||||
BIN
cscg24/rev/intro_rev_2/rev2
Executable file
BIN
cscg24/rev/intro_rev_2/rev2
Executable file
Binary file not shown.
Reference in New Issue
Block a user