buffer overflow 0- picoCTF practice challenges { Binary Exploitation }

preview_player
Показать описание
To solve these challenge on picogym practice ,that has a buffer overflow vulnerability we need to statically analyze the code and figure out that if we cause the program to error out we will trigger a user defined signal handler that prints the flag to us . This is as a result of using gets() function which is a risky function in that we cant specify how much we can read from the user!
Instead ,for good coding practices you can use fgets()
So we overflow the buffer that causes a stack issues that will get us the flag by triggering the custom signal handler :)
Рекомендации по теме
join shbcf.ru