superfish.pem
contains:
- the Superfish certificate as found by both Chris Palmer and Matt Burke;
- the encrypted private key as found by Karl Koscher.
$ openssl x509 -in superfish.pem -text
Certificate:
Data:
Version: 3 (0x2)
#!/usr/bin/python | |
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions. | |
# Michael Davis (mike.philip.davis@gmail.com) | |
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import select |
+forkbomb | plausi: perl pls | |
+forkbomb | ruby pls | |
+forkbomb | python pls | |
+gnustomp | go pls | |
+forkbomb | go build pls | |
+gnustomp | gcc pls | |
+plausi | go get pls | |
+gnustomp | llvm pls | |
+forkbomb | make pls | |
+plausi | apt-get pls |
+plausi | I've patented a special sorting algorithm I like to call "dicksort". | |
+plausi | It's like quicksort, but I use it to rank men by their penis size. | |
+gnustomp | I've patented a special sorting algorithm I like to call "nosort". | |
+gnustomp | It's like other sorting algorithms, but it doesn't actually sort anything. | |
+plausi | I've patented a special sorting algorithm I like to call "stackoversort" | |
+plausi | It just downloads and runs code from stack overflow until the array is | |
| sorted. | |
+gnustomp | I've patented a special sorting algorithm I like to call "sorted". | |
+gnustomp | Your array is already sorted, but you don't believe it. | |
+loadedice | I've stolen this sorting algorithm called bogo sort, it just shuffles |
superfish.pem
contains:
$ openssl x509 -in superfish.pem -text
Certificate:
Data:
Version: 3 (0x2)
MySQLdb is a Python wrapper around _mysql written by Andy Dustman. This wrapper makes it possible to interact with a MySQL Server performing all sorts of DDL and DML statements. I began my Python journey recently and stumbled at the installation of the MySQLdb module install. I was keen not to jump at an apt/yum installation as we have servers that have no outbound connections I decided I wanted to build the module from source.
You can download the MySQLdb files from SourceForge (70kb)
When downloaded you need to prep before your system is ready to build the file. Here are some prerequisites that will make life easier for you. I performed this particular install using an Ubuntu 10.04 64bit OS.
Before you start ensure you have the following installed (MySQL isn't actually required but for local Python development it's nice to have a database server to develop against!)
from flask import Flask, jsonify | |
import threading | |
import socket | |
import time | |
app = Flask(__name__) | |
_timer = 60 * 5 | |
_timeout = 3 |
# -*- coding: utf-8 -*- | |
from flask import Flask, send_file | |
import qrcode | |
from StringIO import StringIO | |
app = Flask(__name__) | |
@app.route("/qr/<path:url>") | |
@app.route("/qr") | |
def qr_route(url="http://dongcorp.org"): |