author | Christian Urban <urbanc@in.tum.de> |
Wed, 31 May 2017 09:26:47 +0100 | |
changeset 514 | a118052cf1d4 |
parent 198 | 2ce98ee39990 |
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 |
} |