Created
January 23, 2019 18:01
-
-
Save dmwit/46258e6238112eb049b3c8f2bb7ae378 to your computer and use it in GitHub Desktop.
how to masquerade as somebody else
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
#include <unistd.h> | |
int main() { | |
char *args[3] = {"notsleep", "10", NULL}; | |
return execv("/usr/bin/sleep", args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment