diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-08 22:16:31 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-08 22:16:31 +0000 |
commit | 0b1b568420d73d11749812abfbea02752a4ad07d (patch) | |
tree | aaacd09871c28e6c180a564517fc26f21080f9cd /kpov_judge/tasks/mock_entrance_exam | |
parent | 35e9a1542f1dd961a09d198977d4c2fed467f4dc (diff) |
minor fixes o the mock_entrance_exam task
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@362 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/mock_entrance_exam')
-rw-r--r-- | kpov_judge/tasks/mock_entrance_exam/task.py | 5 |
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'] |