-
Notifications
You must be signed in to change notification settings - Fork 1
/
signup.php
103 lines (103 loc) · 3.69 KB
/
signup.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
<?php
set_time_limit(1000000);
include "functions.php";
include "const.php";
var_dump1($_SERVER);
$str="qwertyuiopasdfghjklmnbvcxz1234567890";
$handle = fopen ("php://stdin","r");
while(true){
$mailId="";
for($i=0;$i<8;$i++)$mailId.=$str[rand(0,35)];
$mailId.="@cartelera.org";
$cook='cookies/'.$mailId;
if(!file_exists($cook)){
$tf=fopen($cook,'w');
fclose($tf);
}
$cook=realpath($cook);
$ip='123.145.132.151';
$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);
curl_setopt( $ch, CURLOPT_HTTPHEADER, array("REMOTE_ADDR: $ip", "HTTP_X_FORWARDED_FOR: $ip"));
while(!isset($name[1])) {
$page = file_get_contents(FAKENAME);
preg_match('%<h3>([^<]*)%', $page, $name);
}
preg_match('%^[^ ]*%', $name[1], $fName);
preg_match('%[^ ]*$%', $name[1], $lName);
$fName=$fName[0];
$lName=$lName[0];
curl_setopt($ch,CURLOPT_URL,REG);
do{$page=curl_exec($ch);}while($page==false);
preg_match('%<form .*</form>%s',$page,$form);
splitForm($form[0],$action,$fields);
$fields["firstname"]=$fName;
$fields["lastname"]=$lName;
$fields["reg_email__"]=$mailId;
$fields["sex"]="1";
$fields["birthday_day"]=rand(1,28);
$fields["birthday_month"]=rand(1,12);
$fields["birthday_year"]=rand(1970,1990);
$fields["reg_passwd__"]=$mailId;
$fields["submit"]="Sign Up";
curl_setopt($ch,CURLOPT_URL,html_entity_decode($action));
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
do{$page=curl_exec($ch);}while($page==false);
echo $page;
while(strpos($page,"Please enter the text below")){
$captPage = fopen ("capt.html","w");
fprintf($captPage,"%s",$page);
fflush($captPage);
preg_match('%<form .*</form>%',$page,$form);
splitForm($form[0],$action,$fields);
unset($fields["captcha_try_text"]);
echo "Captcha code:\x07";
$fields["captcha_response"]=fgets($handle);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
}
fprintf(fopen("result.html","w"),"%s",$page);
curl_close($ch);
if(strpos($page,"Invalid Email Address")){
echo "invalid mail.\n";
continue;
}
curl_setopt($ch,CURLOPT_POST,0);
$md5=md5($mailId);
curl_setopt($ch,CURLOPT_URL,"http://api.temp-mail.ru/request/mail/id/$md5/");
$confLink=null;
while(!isset($confLink[0])){
echo "get confirmation link.\n";
$page=curl_exec($ch);
preg_match('%confirmemail\.php[^"]*%',$page,$confLink);
}
curl_setopt($ch,CURLOPT_URL,"https://www.facebook.com/n/?".html_entity_decode($confLink[0]));
curl_setopt($ch, CURLOPT_USERAGENT, CHROME);
$page=curl_exec($ch);
echo $page;
echo "mail verified.\n";
while(strpos($page,"Please enter the text below")){
echo "captcha after mail.\n";
$captPage = fopen ("capt.html","w");
fprintf($captPage,"%s",$page);
fflush($captPage);
preg_match('%<form .*</form>%',$page,$form);
splitForm($form[0],$action,$fields);
unset($fields["captcha_try_text"]);
echo "Captcha code:\x07";
$fields["captcha_response"]=fgets($handle);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($fields));
$page=curl_exec($ch);
}
echo "success.\n";
file_put_contents("result.html",$page);
curl_close($ch);
}
?>