Skip to content

Instantly share code, notes, and snippets.

View rra3's full-sized avatar

Robert R Arnold rra3

  • Careerbuilder
  • Atlanta,GA
View GitHub Profile
#!/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
sudo apt-get update
sudo apt-get install libfreetype6 libfreetype6-dev libfontconfig
# /etc/apt/sources.list should contain these:
# deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
sudo echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
#!/bin/bash
play() {
playlist="http://www.bbc.co.uk/radio/listen/live/r"$1"_aaclca.pls"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer -cache 5120 -cache-min 1 -playlist $playlist