THM pwn101 challenge write up
TRYHACKME Pwn101 The Tryhackme room
Pwn101. Modify variable’s value Discovery(The Tryhackme room) βββ(rootπKALI2021)-[/mnt/work/tryhackme/pwn101/101] ββ# ./pwn101.pwn101 ββ¬ββ¬βββ¬ β¬β¬ β¬βββββββ¬ββββ¬ββββ β ββ¬βββ¬ββββ€βββ€β ββ΄ββββββ€ β΄ β΄ββ β΄ β΄ β΄β΄ β΄ββββ΄ β΄β΄ β΄βββ pwn 101 Hello!, I am going to shopping. My mom told me to buy some ingredients. Ummm.. But I have low memory capacity, So I forgot most of them. Anyway, she is preparing Briyani for lunch, Can you help me to buy those items :D Type the required ingredients to make briyani: ZZZZZ Nah bruh, you lied me :( She did Tomato rice instead of briyani :/ Analysis β int main (int argc, char **argv, char **envp); β ; var uint32_t var_4h @ rbp-0x4 β ; var char *str @ rbp-0x40 β 0x0000088e push rbp β 0x0000088f mov rbp, rsp β 0x00000892 sub rsp, 0x40 β 0x00000896 mov dword [var_4h], 0x539 β 0x0000089d mov eax, 0 β 0x000008a2 call sym.