Auth Me 2.0



Solution

Review the given c code

This challenge is similar to Auth Me 1, but it checks for username admin at line 25. We have given Tips: Press ctrl + shift + @ to enter null character.

Now, i know that we must play with some null character that looks like this \x00. In C Language, program will stop reading until it finds a null character. We cannot input admin\x00 as the program will read it as string.

Btw, the program give us a hint that the distance between variable user and pass is 8. So, i try to overflow the variable user with 8 bytes like this admin\x00\x00\x00 <- \x00 is 1 byte ya.

This is the python one line command that i figure out.

Using that, we can get the flag ๐Ÿ


Flag

SKR{C_St0p_rE4dinG_untIL_nuLL_4b4b8e}

Last updated