summaryrefslogtreecommitdiff
path: root/other/opfind/vuln.c
blob: 50d9e2d95534645a590f7391ea15ce8d37344377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

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


int cow (char *in);

int
main (int argc, char *argv[])
{
	if (argc >= 2)
		cow (argv[1]);
}

int
cow (char *in)
{
	char	buf[512];

	strcpy (buf, in);
	buf[516] = '\x20';
	buf[517] = '\xab';
	buf[518] = '\x00';
	buf[519] = '\x40';
}