From 64e5089dce5bae87ec3a16c68d8e30e2f6cbf075 Mon Sep 17 00:00:00 2001 From: Kyle Zeng Date: Fri, 10 May 2024 12:30:33 -0700 Subject: [PATCH] unlink is no longer a macro, but a function now --- glibc_2.31/unsafe_unlink.c | 2 +- glibc_2.32/unsafe_unlink.c | 2 +- glibc_2.33/unsafe_unlink.c | 2 +- glibc_2.34/unsafe_unlink.c | 2 +- glibc_2.35/unsafe_unlink.c | 2 +- glibc_2.36/unsafe_unlink.c | 2 +- glibc_2.37/unsafe_unlink.c | 2 +- glibc_2.38/unsafe_unlink.c | 2 +- glibc_2.39/unsafe_unlink.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/glibc_2.31/unsafe_unlink.c b/glibc_2.31/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.31/unsafe_unlink.c +++ b/glibc_2.31/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.32/unsafe_unlink.c b/glibc_2.32/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.32/unsafe_unlink.c +++ b/glibc_2.32/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.33/unsafe_unlink.c b/glibc_2.33/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.33/unsafe_unlink.c +++ b/glibc_2.33/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.34/unsafe_unlink.c b/glibc_2.34/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.34/unsafe_unlink.c +++ b/glibc_2.34/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.35/unsafe_unlink.c b/glibc_2.35/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.35/unsafe_unlink.c +++ b/glibc_2.35/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.36/unsafe_unlink.c b/glibc_2.36/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.36/unsafe_unlink.c +++ b/glibc_2.36/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.37/unsafe_unlink.c b/glibc_2.37/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.37/unsafe_unlink.c +++ b/glibc_2.37/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.38/unsafe_unlink.c b/glibc_2.38/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.38/unsafe_unlink.c +++ b/glibc_2.38/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n"); diff --git a/glibc_2.39/unsafe_unlink.c b/glibc_2.39/unsafe_unlink.c index bdcb739..eef44ed 100644 --- a/glibc_2.39/unsafe_unlink.c +++ b/glibc_2.39/unsafe_unlink.c @@ -45,7 +45,7 @@ int main() chunk1_hdr[1] &= ~1; printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n"); - printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n"); + printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n"); free(chunk1_ptr); printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");