Editor
                // file: guard.c
                #include <stdio.h>
                #include <string.h>
                
                int main() {
                    char granted = 0;
                    char passwd[7];
                    printf("Password: ");
                    gets(passwd);
                    if (!strcmp(passwd, "pa$$wd")) {
                        granted = 1;
                    }
                    if (granted == 1) {
                        printf("Access granted!\n");
                    }
                    return 0;
                }
                
Terminal
Stack Debugger
Mem AdressValue
0xbfffec7c0xb7d82637Return Address
->0xbfffec780x00000000Prev Frame Pointer
0xbfffec740xbfffec90
0xbfffec700xb7f1c3dc
0xbfffec6c0x4aff7c9d
0xbfffec680xce0a659f

Buffer Overflow

--:--