From bbad0349e48f43b106ade21a29909cb1f90ec777 Mon Sep 17 00:00:00 2001 From: Matti Date: Wed, 11 Dec 2024 23:45:28 +0100 Subject: [PATCH] Access Name Illegally --- Aufg9/DiabloByteReader.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Aufg9/DiabloByteReader.cpp b/Aufg9/DiabloByteReader.cpp index 776f683..ff11c4e 100644 --- a/Aufg9/DiabloByteReader.cpp +++ b/Aufg9/DiabloByteReader.cpp @@ -23,12 +23,21 @@ void Aufg9Main() { printf("I read something!\n%X\n", header); - for (int i = 0; i < 16; i++) { + for (int i = 0; i < 1024; i++) { std::cout << dest[i] << std::endl; } long *test = reinterpret_cast(dest); - printf("Test: %X\n", *test); + printf("Verification Code: %X\n", *test); + + char *fuckery = (char *)test; + printf("Fuckery: %X\n", fuckery); + + char *bit20 = &dest[20]; + for (int i = 0; i < 16; i++) { + std::cout << bit20[i]; + } + } catch (const std::exception &e) { std::cout << e.what() << std::endl;