fix: bunch of meaningless chars in the walkthrough/source code

level9: done (wip - walkthrough)
This commit is contained in:
0x35c
2025-05-05 18:00:54 +02:00
parent 50afa069df
commit 428102a376
5 changed files with 49 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Level3
Using ghidra, we can decompile the code and see that it fills a buffer of 520 bytes using `fgets`.
This buffer will then be passed directly as a parameter to `printf`. This allows us to print whatever we want (e.g dump the stack, change variables).
Using ghidra, we can decompile the code and see that it fills a buffer of 520 bytes using `fgets()`.
This buffer will then be passed directly as a parameter to `printf()`. This allows us to print whatever we want (e.g dump the stack, change variables).
We can see in the decompiled code that a global variable `m` exists. The program will execute a `system("/bin/sh")` if `m == 64`.
Our goal here will be to change the value of this variable in order to get the password.