Last active
September 25, 2019 11:11
-
-
Save icy/5db8aed50a74423ef66839f57ef4e5e8 to your computer and use it in GitHub Desktop.
secure_sudo.sh
This file contains hidden or 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
| # author : ky-anh huynh | |
| # license : mit | |
| # purpose : the most secure way to execute sudo on linux system | |
| # usage : secure_sudo your_command | |
| # warning : more ram and cpu are required, for a sake of security ;) | |
| secure_sudo() { | |
| s=""; | |
| eval $(for _ in $(seq 1 999); do s="$s sudo"; done; echo $s) "$@"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment