Skip to content

Commit

Permalink
Add chain16 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
profswarzen authored and bykvaadm committed Jun 4, 2019
1 parent 203da4f commit e3928e4
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,15 @@ levels :
sault : "DaoW7gai"
flag : "cG9vd29oNHViMVZpdzBCZWFqb28K"
chain : 11

## Chain 16
# find
- name : suzen1601
password: "suzen1601"
sault : "Rc6uI4vD"
flag : "cjs60vS8vl3nfieCuvNal0fV74en"
chain : 16

## EXAMPLE TEMPLATE
# - name : suzen
# password: ""
Expand Down
13 changes: 13 additions & 0 deletions chains/chain16/level1601/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM bash
ARG FLAG
RUN adduser -D suzen
ADD hello /bin/hello
ADD diary.txt /home/suzen/diary.txt
WORKDIR /home/suzen
RUN bash -c "mkdir -p {Suzen,I,You,He,She}/Thought/It/Was/{Meg,Kate,Nancy,Mr_President,Dzhigurda}/But/It/Was/{Dio,Robert,John,Sasuke,Ivan}"
ADD flag Suzen/Thought/It/Was/Meg/But/It/Was/Dio
ADD trueflag Suzen/Thought/It/Was/Meg/But/It/Was/Dio
RUN mv Suzen/Thought/It/Was/Meg/But/It/Was/Dio/trueflag Suzen/Thought/It/Was/Meg/But/It/Was/Dio/.flag
RUN sed -i "s/INSERT_FLAG_HERE/${FLAG}/g" Suzen/Thought/It/Was/Meg/But/It/Was/Dio/.flag
USER suzen
ENTRYPOINT ["/bin/hello"]
2 changes: 2 additions & 0 deletions chains/chain16/level1601/diary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Hello! My name is Suzen and this is my diary!
Yesterday, i went to meet my friend Meg, but instead i met strange man Dio and he told me to not always believe what you see. I wander what that means...
1 change: 1 addition & 0 deletions chains/chain16/level1601/flag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
y5vmfs7w39jvma9wq3j8nR3u9ca
10 changes: 10 additions & 0 deletions chains/chain16/level1601/hello
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
echo -e "\n###########################################################################"
echo -e "# #"
echo -e "# Hello! It's level 1601 #"
echo -e "# #"
echo -e "# Find hidden file in a directory that diary.txt refers. #"
echo -e "# #"
echo -e "###########################################################################"

sh
1 change: 1 addition & 0 deletions chains/chain16/level1601/trueflag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT_FLAG_HERE

0 comments on commit e3928e4

Please sign in to comment.