Skip to content

Instantly share code, notes, and snippets.

@cyyself
Created April 13, 2024 04:57
Show Gist options
  • Save cyyself/715a08f8ede6322d285b4cdd47e73717 to your computer and use it in GitHub Desktop.
Save cyyself/715a08f8ede6322d285b4cdd47e73717 to your computer and use it in GitHub Desktop.
#!/bin/sh
# If your system admin allows you to use `sudo mount`, this script will be useful
/usr/bin/sudo /usr/bin/mount -o bind /bin/bash /bin/mount;
/usr/bin/sudo /bin/mount -c "exec /bin/bash -c \"umount /bin/mount;$@\"";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment