author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Mon, 23 Sep 2013 22:43:28 +0100 | |
changeset 99 | 77125c0496e6 |
parent 27 | 5bf1f248407c |
permissions | -rw-r--r-- |
27 | 1 |
#include<stdio.h> |
2 |
#include<string.h> |
|
3 |
||
4 |
// simple program used for a bufferflow attack |
|
5 |
// |
|
6 |
// for installation notes see C0.c |
|
7 |
// |
|
8 |
// can be called with |
|
9 |
// |
|
10 |
// ./C3 `./args3` |
|
11 |
||
12 |
main(int argc, char **argv) |
|
13 |
{ |
|
14 |
char buffer[80]; |
|
15 |
||
16 |
strcpy(buffer, argv[1]); |
|
17 |
||
18 |
return 1; |
|
19 |
} |