Created
December 18, 2017 12:54
-
-
Save herrphon/50c2f89c58c31260f7ceaad792b96eab to your computer and use it in GitHub Desktop.
Revisions
-
herrphon created this gist
Dec 18, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #include <unistd.h> int main() { const char *b = "/bin/bash"; setuid(0); execl(b, b, 0); }