Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2013 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5692894 to your computer and use it in GitHub Desktop.
Save anonymous/5692894 to your computer and use it in GitHub Desktop.
xcut
int main() {
int ret = creat("/root/tmp.tmp",S_ISVTX);
if (ret < 0) {
perror("creat");
}
system("ls -l /root/tmp.tmp");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment