This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| try: | |
| raw_input("Symptoms: ") | |
| except NameError: | |
| input("Symptoms: ") | |
| print("Diagnosis: {0}".format(random.choice(["Pregnant", "Cancer"]))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json, sys; json.dump(json.load(open(sys.argv[1])), open(sys.argv[1], "w"), indent=4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Xlib.display import Display | |
| from Xlib import X | |
| from Xlib.ext import record | |
| from Xlib.protocol import rq | |
| import time | |
| disp = None | |
| keysym_map = { | |
| 32: "SPACE", |
NewerOlder