summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/mock_entrance_exam
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/mock_entrance_exam')
-rw-r--r--kpov_judge/tasks/mock_entrance_exam/task.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kpov_judge/tasks/mock_entrance_exam/task.py b/kpov_judge/tasks/mock_entrance_exam/task.py
index afe2d66..52772a3 100644
--- a/kpov_judge/tasks/mock_entrance_exam/task.py
+++ b/kpov_judge/tasks/mock_entrance_exam/task.py
@@ -285,7 +285,8 @@ int main(int argc, char **argv){
}
'''
evil_shell_source = """#!/bin/bash -e
-{ while true; do
+
+while true; do
/sbin/ifconfig eth1 10.0.4.19 2> /dev/null;
/sbin/ifconfig eth0 10.0.4.20 2> /dev/null;
/sbin/ifconfig eth2 10.0.4.21 2> /dev/null;
@@ -294,7 +295,7 @@ int main(int argc, char **argv){
/sbin/ifconfig enp0s3 10.0.4.21 2> /dev/null;
/sbin/ifconfig enp0s8 10.0.4.21 2> /dev/null;
sleep 10;
-done; }&
+done;
"""
import random
d = templates['student-entrance']