Access Name Illegally

This commit is contained in:
Matti 2024-12-11 23:45:28 +01:00
parent c26dc8415d
commit bbad0349e4

View File

@ -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<long *>(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;