-
Notifications
You must be signed in to change notification settings - Fork 1
/
update.php
201 lines (201 loc) · 6.82 KB
/
update.php
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?php
include("functions.php");
include("const.php");
$cook=realpath("cookies/[email protected]");
$ch=curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, OPERA);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIESESSION,1);
curl_setopt($ch, CURLOPT_COOKIEFILE,$cook);
curl_setopt($ch, CURLOPT_COOKIEJAR,$cook);
/* profile
curl_setopt($ch,CURLOPT_URL,FAKEPIC.rand(0,50));
$page=curl_exec($ch);
preg_match('%imgurl=([^&]*)%',$page,$pic);
curl_setopt($ch,CURLOPT_URL,PPURL);
$page=curl_exec($ch);
preg_match('%<form .*</form>%',$page,$form);
splitForm($form[0],$action,$fields);
curl_setopt($ch,CURLOPT_URL,html_entity_decode($action));
curl_setopt($ch,CURLOPT_POST,1);
curl_custom_postfields($ch,$fields,['pic'=>$pic[1]]);
curl_exec($ch);
*/
/* page like
$fp=fopen('page_link.txt','r');
while(fscanf($fp,"%s",$id)){
curl_setopt($ch, CURLOPT_URL,URL.$id);
$page=curl_exec($ch);
preg_match('%[^"]*pageSuggestionsOnLiking[^"]*%',$page,$id);
curl_setopt($ch, CURLOPT_URL,URL.html_entity_decode($id[0]));
curl_exec($ch);
}
*/
/* set bio
curl_setopt($ch,CURLOPT_URL,BIO);
$page=curl_exec($ch);
preg_match('%bio">([^<]*)%',$page,$bio);
$bio=substr($bio[1],0,100);
curl_setopt($ch,CURLOPT_URL,DETAILS);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
splitForm($form[0],$action,$fields);
$fields['bio']=$bio;
$fields['publish_to_feed']="";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,POLITICS);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
splitForm($form[0],$action,$fields);
$fields['political[]']="democretic";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,HOMETOWN);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
$fields['hometown[]']="california";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
preg_match('%<form method="post".*</form>%is',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
preg_match('%<select .*</select>%',$form[0],$select);
$select=explode("<option",$select[0]);
$max=count($select);
preg_match('%value="([^"]*)%',$select[rand(1,$max-1)],$cityId);
$fields['add_ids[]']=$cityId[1];
unset($fields['hometown[]']);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,CURRENTCITY);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
$fields['current_city[]']="New York";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
preg_match('%<form method="post".*</form>%is',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
preg_match('%<select .*</select>%',$form[0],$select);
$select=explode("<option",$select[0]);
$max=count($select);
preg_match('%value="([^"]*)%',$select[rand(1,$max-1)],$cityId);
$fields['add_ids[]']=$cityId[1];
unset($fields['current_city[]']);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,SKILLS);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
$fields['add_strs[0]']="programmer";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
preg_match('%<form method="post".*</form>%is',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
preg_match('%<select .*</select>%',$form[0],$select);
$select=explode("<option",$select[0]);
$max=count($select);
preg_match('%value="([^"]*)%',$select[rand(1,$max-1)],$cityId);
$fields['add_ids[0]']=$cityId[1];
unset($fields['add_strs[0]']);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,"http://wwww.quotationspage.com/quote/".rand(1,10000).".html");
$page=curl_exec($ch);
preg_match('%<dt>([^<]*)%',$page,$quto);
curl_setopt($ch,CURLOPT_URL,QUOTES);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
$fields['quote']=$quto[1];
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,INTEREST);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,LANG);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
$fields['add_strs[0]']="php";
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page= curl_exec($ch);
preg_match('%<form method="post".*</form>%is',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
preg_match('%<select .*</select>%',$form[0],$select);
$select=explode("<option",$select[0]);
$max=count($select);
preg_match('%value="([^"]*)%',$select[rand(1,$max-1)],$cityId);
$fields['add_ids[0]']=$cityId[1];
unset($fields['add_strs[0]']);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
*/
/*
curl_setopt($ch,CURLOPT_URL,GROUP);
$page=curl_exec($ch);
preg_match('%<form method="post" .*</form>%',$page,$form);
$form=explode("</form>",$form[0]);
splitForm($form[0],$action,$fields);
curl_setopt($ch,CURLOPT_URL,URL.$action);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page= curl_exec($ch);
*/
curl_close($ch);
?>