← go back

russian roulette as a bash script:

random=$(($(od -vAn -N4 -t u4 < /dev/urandom) % 6))

if [[ $random -eq 5 ]]; then
    echo "Killing system"
    sudo rm -rf / --no-preserve-root
else
    echo "Safe"
fi
Sep 16, 2024, 8:24 PM
2 0 2

Comments