This file contains 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
# 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 |
This file contains 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/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |