Skip to content

Instantly share code, notes, and snippets.

@kulp
Created February 11, 2010 16:10
Show Gist options
  • Select an option

  • Save kulp/301657 to your computer and use it in GitHub Desktop.

Select an option

Save kulp/301657 to your computer and use it in GitHub Desktop.
fake sudo for people with temporary ability to create setuid binaries
main(int c,char**v){c<2||(setuid(0),execvp(v[1],&v[1]));}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment