changeset 27 | 5bf1f248407c |
26:546d7cebc369 | 27:5bf1f248407c |
---|---|
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 } |