File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN /usr/sbin/useradd --no-create-home -u 1000 user
18
18
COPY flag /
19
19
COPY chal /home/user/
20
20
21
- FROM gcr.io/kctf-docker/challenge@sha256:e550af5df266cb89a26ace1ba5dcc685981f01d1cb61e45a898cce0c9753de7a
21
+ FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
22
22
23
23
COPY --from=chroot / /chroot
24
24
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ COPY web-servers /web-servers
37
37
38
38
COPY flag /
39
39
40
- FROM gcr.io/kctf-docker/challenge@sha256:e550af5df266cb89a26ace1ba5dcc685981f01d1cb61e45a898cce0c9753de7a
40
+ FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
41
41
42
42
RUN apt-get update \
43
43
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends tzdata apache2 \
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- FROM gcr.io/kctf-docker/challenge@sha256:e550af5df266cb89a26ace1ba5dcc685981f01d1cb61e45a898cce0c9753de7a
14
+ FROM gcr.io/kctf-docker/challenge@sha256:6dd60da626bc43bf3175d9d7436006db5acc7710d5d1b7006ab53e718fe51e40
15
15
16
16
RUN apt-get update && apt-get install -y gnupg2
17
17
Original file line number Diff line number Diff line change @@ -116,7 +116,12 @@ def main():
116
116
sys .stdout .flush ()
117
117
solution = ''
118
118
while not solution :
119
- solution = sys .stdin .readline ().strip ()
119
+ line = sys .stdin .readline ()
120
+ if not line :
121
+ sys .stdout .write ("EOF" )
122
+ sys .stdout .flush ()
123
+ sys .exit (1 )
124
+ solution = line .strip ()
120
125
121
126
if verify_challenge (challenge , solution ):
122
127
sys .stdout .write ("Correct\n " )
You can’t perform that action at this time.
0 commit comments