challenge/init: randomize time at start

This commit is contained in:
nemunaire 2018-02-21 01:13:09 +01:00 committed by Pierre-Olivier Mercier
parent 133244897b
commit 800bc7a921

View File

@ -38,7 +38,7 @@ done
/bin/rm -f /init /linuxrc /bin/rm -f /init /linuxrc
# Randomize time at boot # Randomize time at boot
/bin/date -s 197001010101 > /dev/null /bin/date -s 19$((70 + $RANDOM % 30))0$((1 + $RANDOM % 9))0$((1 + $RANDOM % 9))0$((1 + $RANDOM % 9))0$((1 + $RANDOM % 9))01 > /dev/null
/sbin/sysctl -w net.ipv4.ip_default_ttl=4 > /dev/null /sbin/sysctl -w net.ipv4.ip_default_ttl=4 > /dev/null
# Launch some daemons # Launch some daemons