Russian roulette for BASH
Results 1 to 3 of 3

Thread: Russian roulette for BASH

  1. #1
    Leftie Linux Lover the_JinX's Avatar
    Join Date
    Nov 2001
    Location
    Beverwijk Netherlands
    Posts
    2,534

    Russian roulette for BASH

    WARNING MIGHT RESULT IN MASSIVE DATA LOSS !!!

    play russian roulette in your BASH shell...

    copy and paste this line..

    [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"

    for people with any regard for the safety of their data there is a safe version

    [ $[ $RANDOM % 6 ] == 0 ] && echo "You are dead" || echo "You live"

    How it works..

    A random integer between 0 and 5 ( MOD 6 ) is generated and checked against 0
    if it is 0 you go to the next step of the IF statement, the AND ( && ) that removes all data recursively with force from your linux..
    if it is not 0 you go to the OR ( || ) part wich tells you You live
    ASCII stupid question, get a stupid ANSI.
    When in Russia, pet a PETSCII.

    Get your ass over to SLAYRadio the best station for C64 Remixes !

  2. #2
    Kwiep
    Join Date
    Aug 2001
    Posts
    924
    *proest*

    BWAHAHAHAAAA

    oops...

    erm...
    Double Dutch

  3. #3
    Now, RFC Compliant! Noia's Avatar
    Join Date
    Jan 2002
    Posts
    1,210
    Haha...

    00:* Lug's out a test box *

    10:*mumbels some thing*

    20:* AAAGH! damn it damn it damn it! *

    30:* Re-install *

    40:* Goto 00 *

    - Noia
    With all the subtlety of an artillery barrage / Follow blindly, for the true path is sketchy at best. .:Bring OS X to x86!:.
    Og ingen kan minnast dei linne drag i dronningas andlet den fagre dag Då landet her kvilte i heilag fred og alle hadde kjærleik å elske med.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •