Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import cv2
import numpy as np
import wave
import struct
import sys
# usage instructions:
# ./image2spectrogram.py input.png
@mwgamera
mwgamera / hb-test.py
Last active August 29, 2015 13:58 — forked from takeshixx/hb-test.py
OpenSSL heartbeat PoC with SMTP and XMPP STARTTLS support.
#!/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