-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrun.php
More file actions
105 lines (90 loc) · 2.98 KB
/
run.php
File metadata and controls
105 lines (90 loc) · 2.98 KB
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
<?php
// Ilyasa Fathur Rahman
// SGB-Team Reborn
set_time_limit(0);
error_reporting(0);
date_default_timezone_set("Asia/Jakarta");
echo '####################################';
echo "\r\n";
echo '# Copyright : @ilyasa48 | SGB-Team #';
echo "\r\n";
echo '####################################';
echo "\r\n";
echo 'Masukkan Kode Referral : ';
$code = trim(fgets(STDIN));
echo 'Masukkan Jumlah : ';
$jumlah = trim(fgets(STDIN));
$i=1;
while($i <= $jumlah){
echo "\r\n";
echo "[".date('h:i:s')."] [$i/$jumlah] Membuat email...";
echo "\r\n";
ulang_register:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://froidcode.com/api/bigtoken/register.php?referral=$code");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
$register = json_decode($result);
if($register->content == "Email telah digunakan"){
echo "[".date('h:i:s')."] [$i/$jumlah] Email telah digunakan, membuat email ulang...";
echo "\r\n";
goto ulang_register;
}else if($register->content == "Gagal, Terjadi Kesalahan [1]"){
echo "[".date('h:i:s')."] [$i/$jumlah] Gagal, Terjadi Kesalahan [1]";
echo "\r\n";
goto ulang_register;
}
$email = $register->content;
echo "[".date('h:i:s')."] [$i/$jumlah] Berhasil membuat email, memeriksa email...";
echo "\r\n";
ulang_email:
sleep(10);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://froidcode.com/api/bigtoken/get_email.php?email=$email");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
$get_email = json_decode($result);
if($get_email->content == "Email belum masuk"){
echo "[$i] Email belum masuk, memeriksa email ulang...";
echo "\r\n";
goto ulang_email;
}
$url = $get_email->content;
echo "[".date('h:i:s')."] [$i/$jumlah] Melakukan verifikasi...";
echo "\r\n";
ulang_redeem:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://froidcode.com/api/bigtoken/finish.php?email=$email&url=$url");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
$finish = json_decode($result);
if($finish->result == "1"){
echo "[".date('h:i:s')."] [$i/$jumlah] ".$finish->content;
echo "\r\n";
}else if($finish->result == "0"){
echo "[".date('h:i:s')."] [$i/$jumlah] ".$finish->content;
echo "\r\n";
}
$i++;
}