From c09cff357d082f829e6b9b9a236c897d0a49a4dd Mon Sep 17 00:00:00 2001 From: Matteo Cicuttin <datafl4sh@toxicnet.eu> Date: Tue, 19 Oct 2021 11:17:39 +0200 Subject: [PATCH] INFO0939-2021 code. --- info0939/stack_corrupt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/info0939/stack_corrupt.c b/info0939/stack_corrupt.c index db2a771..c85fe4e 100644 --- a/info0939/stack_corrupt.c +++ b/info0939/stack_corrupt.c @@ -2,7 +2,7 @@ #include <stdlib.h> #include <string.h> -#define BUFSZ (0x42 >> 4) +#define BUFSZ ((0102 >> 5) + (0320 - (0x67 << 1))) struct mystruct { @@ -14,7 +14,7 @@ static void fun(struct mystruct *s) { s->x = 42; - strcpy(s->y, "Hello world, this is INFO0939"); + strcpy(s->y, " ** INFO0939 d3bugg1ng 3x3rc1s3 ** "); } int main(void) @@ -25,3 +25,4 @@ int main(void) free(x); return 0; } + -- GitLab