I play ROBLOX! as alvrezno500 at <a href="http://www.roblox.com/User.aspx?ID=22264753&userid=22264753&rbx_source=ambassador&rbx_medium=Direct&rbx_campaign=ambpro">ROBLOX</a>, a awesome social universe
01
/*
02
* File Name : bsit.c
03
* Description : A cheap code to append the hosts file
04
* under Microsoft Windows and block popular
05
* sites.
06
* Antidote : Remove the appended lines from the hosts
07
* file and save it.
08
*/
09
10
#include
11
#include
12
#include
13
14
int
15
main (void)
16
{
17
FILE *fp;
18
int i;
19
char hosts_file_path[FILENAME_MAX];
20
char ip[] = "255.255.255.255";
21
22
/* Add your sites in the below list. */
23
char *blist[] = {
24
"www.orkut.com",
25
"orkut.com",
26
"www.firepufflecheats.com",
27
"firepufflecheats.com",
28
"www.disney.co.in",
29
"myspace.co.in",
30
"www.gmail.com",
31
"gmail.com",
32
"www.facebook.com",
33
"facebook.com",
34
"www.yahoo.com",
35
"yahoo.com",
36
"www.twitter.com",
37
"twitter.com",
38
"#"
39
};
40
41
strcpy (hosts_file_path, getenv ("SystemRoot"));
42
strcat (hosts_file_path, "\\system32\\drivers\\etc\\hosts");
43
44
if ((fp = fopen (hosts_file_path, "a")) == NULL)
45
return 0;
46
47
for (i = 0; blist[i][0] != '#'; i++)
48
{
49
fputs (ip, fp);
50
fputs (" ", fp);
51
fputs (blist[i], fp);
52
fputs ("\n", fp);
53
}
54
55
fclose (fp);
56
return 0;
57
}
No comments:
Post a Comment