Skip to content

Instantly share code, notes, and snippets.

@herrphon
Created December 18, 2017 12:54
Show Gist options
  • Save herrphon/50c2f89c58c31260f7ceaad792b96eab to your computer and use it in GitHub Desktop.
Save herrphon/50c2f89c58c31260f7ceaad792b96eab to your computer and use it in GitHub Desktop.

Revisions

  1. herrphon created this gist Dec 18, 2017.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original 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);
    }