Skip to content

Instantly share code, notes, and snippets.

@pfandzelter
pfandzelter / Dockerfile
Last active September 30, 2020 08:01
FROM Scratch Dockerfile for Go projects using czmq
# stage 1: build the binary
# we are using alpine Linux with the latest version of golang
FROM golang:1.15-alpine as golang
# first install some dependencies
# (we are using the static versions for each for them as we want these libraries included statically, not dynamically!)
# czmq requires libzmq which in turn requires libsodium
# on alpine Linux we also need to install some specific tools to build C and C++ programs
# libsodium also requires libuuid, which is included in util-linux-dev
RUN apk add --no-cache libzmq-static czmq-static czmq-dev libsodium-static build-base util-linux-dev
@sh1n0b1
sh1n0b1 / ssltest.py
Created April 8, 2014 07:53
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# 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