-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM debian | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
ARG FLAG | ||
|
||
RUN useradd -ms /bin/bash suzen | ||
WORKDIR /home/suzen | ||
ADD hello /bin | ||
RUN chmod 777 /bin/hello | ||
ADD hint.txt /home/suzen | ||
|
||
RUN apt-get update &&\ | ||
apt-get install zip unzip && \ | ||
echo ${FLAG} >> flag.txt &&\ | ||
zip --password magic flag.zip flag.txt &&\ | ||
rm flag.txt &&\ | ||
chmod 000 /bin/cat &&\ | ||
chmod 000 /bin/chmod | ||
|
||
USER suzen | ||
|
||
ENTRYPOINT ["/bin/hello"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
echo -e "\n####################################" | ||
echo -e "# #" | ||
echo -e "# Hello! It's level 2001 #" | ||
echo -e "# #" | ||
echo -e "# encryption is your friend! #" | ||
echo -e "# #" | ||
echo -e "# Oh? You can't read smth? #" | ||
echo -e "# #" | ||
echo -e "####################################\n" | ||
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
magic | ||
can help you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG FLAG | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN useradd -ms /bin/bash suzen | ||
WORKDIR /home/suzen | ||
ADD hello /bin | ||
RUN chmod 777 /bin/hello | ||
|
||
RUN apt-get update &&\ | ||
apt install -y ccrypt &&\ | ||
touch ${FLAG:0:14} ${FLAG:14:14} &&\ | ||
addgroup part1 &&\ | ||
addgroup part2 &&\ | ||
chgrp part1 /home/suzen/${FLAG:0:14} &&\ | ||
chgrp part2 /home/suzen/${FLAG:14:14} &&\ | ||
touch T29waDZ4ZXUKgd bmVmb2hYYTQKvb T29zaDZvbm8K34 QXphaTZtYWUKxa Ym9vNmVUYWkKaw &&\ | ||
tar -cf archive.tar T29waDZ4ZXUKgd bmVmb2hYYTQKvb T29zaDZvbm8K34 QXphaTZtYWUKxa Ym9vNmVUYWkKaw ${FLAG:0:14} ${FLAG:14:14} &&\ | ||
rm T29waDZ4ZXUKgd bmVmb2hYYTQKvb T29zaDZvbm8K34 QXphaTZtYWUKxa Ym9vNmVUYWkKaw ${FLAG:0:14} ${FLAG:14:14} &&\s | ||
ccencrypt -K unzip archive.tar | ||
|
||
USER suzen | ||
|
||
CMD ["/bin/hello"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
echo -e "\n####################################" | ||
echo -e "# #" | ||
echo -e "# Hello! It's level 2002 #" | ||
echo -e "# #" | ||
echo -e "# you can sort out everyone #" | ||
echo -e "# but some are different #" | ||
echo -e "# #" | ||
echo -e "# shh... unzip can help #" | ||
echo -e "# #" | ||
echo -e "####################################\n" | ||
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM debian | ||
|
||
ARG FLAG | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN useradd -ms /bin/bash suzen | ||
WORKDIR /home/suzen | ||
ADD hello /bin | ||
RUN chmod 777 /bin/hello | ||
|
||
RUN apt-get update &&\ | ||
apt-get install zip unzip &&\ | ||
apt-get install fcrackzip &&\ | ||
echo ${FLAG} >> flag.txt &&\ | ||
zip --password 31656 flag.zip flag.txt &&\ | ||
rm flag.txt | ||
|
||
USER suzen | ||
|
||
CMD ["/bin/hello"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
echo -e "\n####################################" | ||
echo -e "# #" | ||
echo -e "# Hello! It's level 2002 #" | ||
echo -e "# #" | ||
echo -e "# I lose pw? oh? no! #" | ||
echo -e "# but he like... '49163' #" | ||
echo -e "# #" | ||
echo -e "####################################\n" | ||
bash |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM debian | ||
|
||
ARG FLAG | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN useradd -ms /bin/bash suzen | ||
WORKDIR /home/suzen | ||
ADD hello /bin | ||
ADD 42.zip /home/suzen | ||
RUN chmod 777 /bin/hello | ||
|
||
RUN apt-get update &&\ | ||
apt-get install -y p7zip-full &&\ | ||
echo ${FLAG} >> flag.txt &&\ | ||
7z a 'lib g.zip' flag.txt &&\ | ||
7z a 42.zip 'lib g.zip' &&\ | ||
rm flag.txt 'lib g.zip' | ||
|
||
USER suzen | ||
|
||
CMD ["/bin/hello"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
echo -e "\n####################################" | ||
echo -e "# #" | ||
echo -e "# Hello! It's level 2004 #" | ||
echo -e "# #" | ||
echo -e "# do you know death archve? #" | ||
echo -e "# #" | ||
echo -e "####################################\n" | ||
bash |