Exploit database

GH-57a1fa37a60cfc1e246b6768d1591437

c0ntextomy/c0ntextomy

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-9992

2 sources

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

Repository files2

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

c0ntextomy/src/rec0ntextualizer/modules/helloworld/module.c

C · 302 bytes
#include <payload.h>

void start(void *entry, agent_p agent)
{
    char msg[] = "Hello world!";
    uint64_t size = sizeof(msg);

    agent->trampoline.dprintf(1, "%s\n", msg);

    agent->trampoline.send(agent->fd, &size, sizeof(size), 0);
    agent->trampoline.send(agent->fd, msg, sizeof(msg), 0);
}