Exploit unsafe c code levels

8 years ago


How about levels of exploit unsafe c code? Like this one
int main() { char excepted[] = "hackthis."; char actual[32]; printf("%p %p\n", excepted, actual); scanf("%s", actual); if (memcmp(actual, excepted, sizeof(excepted)) == 0) { printf("pass level\n"); } else { printf("wrong password\n"); } return 0; }
Although it’s platform and compiler dependent, the attack methods is valuable for many real case.

Reply has been removed
You must be logged in to reply to this discussion. Login
1 of 1

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.