About

This level introduces the concept that memory can be accessed outside of its allocated region, how the stack variables are laid out, and that modifying outside of the allocated memory can modify program execution.
This level is at /opt/protostar/bin/stack0

Source code

InBlock.gif#include <stdlib.h>
InBlock.gif#include <unistd.h>
InBlock.gif#include <stdio.h>
InBlock.gif
int main( int argc, char **argv)
InBlock.gif{
InBlock.gif     volatile int modified;
InBlock.gif     char buffer[64];
InBlock.gif
    modified = 0;
InBlock.gif    gets(buffer);
InBlock.gif
     if(modified != 0) {
InBlock.gif        printf( "you have changed the 'modified' variable\n");
InBlock.gif    } else {
InBlock.gif        printf( "Try again?\n");
InBlock.gif    }
InBlock.gif}

热身题,也是入门题。只需输入长度>=65的字符即可~~~So easy