programs/C3.c
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 06 Sep 2014 15:30:45 +0100
changeset 158 702fea7754eb
parent 27 5bf1f248407c
permissions -rw-r--r--
added handouts

#include<stdio.h>
#include<string.h>

// simple program used for a bufferflow attack
//
// for installation notes see C0.c
//
// can be called with 
//
//   ./C3 `./args3`

main(int argc, char **argv)
{
        char buffer[80];

        strcpy(buffer, argv[1]);

        return 1;
}