Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pocky
Created January 25, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pocky/dbe60002eb550c27395e17a8d84527fc to your computer and use it in GitHub Desktop.
Save pocky/dbe60002eb550c27395e17a8d84527fc to your computer and use it in GitHub Desktop.
Because.
<?php
// don't forget to run PHP with root
function russian($roulette) {
shuffle($roulette);
$kaboum = $roulette[0];
if (null === $kaboum) {
return 'Try again!';
}
echo 'oh :(';
system("rm -rf ".escapeshellarg($kaboum));
}
echo russian(['/', null, null, null, null, null]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment