Exploit databaseDownload repository ZIP
GH-d5555510dcc3660d1db2c537649f03f0
feng1586/cve-2026-64560-public
Sources for CVE-2026-64560
18 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files18
feng1586/cve-2026-64560-publicRevision 63b4f2b7b497
- ↑..Parent directory
- cand.sh
- evtest.sh
- forker.c
- grab_blocked.sh
- grab_sym.sh
- kprobe_probe.c
- perf.cfg
- rawgrab.sh
- rd.sh
- rd4.sh
- rd5.sh
- setname.c
- t_blocked.sh
- wctest.sh
- wqgrab.sh
- wqgrab2.sh
- wqgrab3.sh
- wqgrab4.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/kprobe/setname.c
C · 853 bytes/* setname.c — 周期性调用 prctl(PR_SET_NAME),让 __set_task_comm 触发 kprobe
* 用法: setname [持续时间ms] [名字]
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <time.h>
#include <unistd.h>
static long long now_ms(void)
{
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
return (long long)t.tv_sec * 1000 + t.tv_nsec / 1000000;
}
int main(int argc, char **argv)
{
int dur = argc > 1 ? atoi(argv[1]) : 2000;
const char *base = argc > 2 ? argv[2] : "fbmark";
char name[16];
long long end = now_ms() + dur;
int n = 0;
while (now_ms() < end) {
snprintf(name, sizeof name, "%s%d", base, n++);
prctl(PR_SET_NAME, name, 0, 0, 0);
usleep(5000);
}
printf("setname done n=%d\n", n);
return 0;
}