fix: bunch of meaningless chars in the walkthrough/source code
level9: done (wip - walkthrough)
This commit is contained in:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user