This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
fftauto.php
110 lines (83 loc) · 3.2 KB
/
fftauto.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
<?php
include 'class_ig.php';
error_reporting(0);
clear();
echo "
Ξ TITLE : F-L-C Followers Target (FFT)
Ξ FLPATH : tools/fftauto.php
Ξ CODEBY : Firdy [https://fb.com/6null9]
Ξ FIXBY : Andi Muh. Rizqi [ikiganteng]
Ξ UPDATE : Officialputuid [26/01/2020]
";
$u = getUsername();
$p = getPassword();
echo PHP_EOL;
$text_comment = getComment('[?] Enter your file comment here: ');
$getfile = file_get_contents($text_comment);
$x = explode("|", $getfile);
$c = count($x) -1;
echo '[?] Follow User? (Enter Y or y for YES, Enter any key for NO) : ';
$f = trim(fgets(STDIN));
$username_target = getUsername('[?] Enter Username Target: ');
echo '•••••••••••••••••••••••••••••••••••••••••' . PHP_EOL . PHP_EOL;
$login = login($u, $p);
if ($login['status'] == 'success') {
echo color()["LG"].'[*] Login as '.$login['username'].' Success!' . PHP_EOL;
$data_login = array(
'username' => $login['username'],
'csrftoken' => $login['csrftoken'],
'sessionid' => $login['sessionid']
);
$data_target = findProfile($username_target, $data_login);
if ($data_target['status'] == 'success') {
echo color()['LC'].'[*] Target: '.$data_target['username'].' | Name: '.$data_target['fullname'].' | Followers: '.$data_target['followers'].' | Following: '.$data_target['following'].' | Post: '.$data_target['post'].' [*] '.PHP_EOL.PHP_EOL;
$cmt = 0;
for ($i=1; $i < $data_target['followers']; $i++) {
$profile = getFollowers($username_target , $data_login, $i, 1);
foreach ($profile as $rs) {
$id_user = $rs->id;
$username = $rs->username;
echo color()["LG"].'[+] Username: '.$username.' | ';
$post = getPost($username, $data_login);
if ($post['status'] == 'error') {
echo color()["LR"].'Error: '.ucfirst($post['details']).' | ' .PHP_EOL;
}else{
$data_follow = ($f == 'y' OR 'y') ? follow($username, $data_login) : '' ;
if ($data_follow['status'] == 'success') {
echo color()["LG"]."Follow Success | ";
$sleep = 30;
$id_post = $post['id'];
$like = like($id_post, $data_login);
if ($like['status'] == 'error') {
echo color()["LR"]."Error Like :( | " . PHP_EOL;
}else{
echo color()["LG"]."Like Success | ";
shuffle($x);
$text = $x[0];
$comment = comment($id_post, $data_login, $text);
if ($comment['status'] == 'success') {
$cmt = $cmt+1;
echo color()["LG"]."[ $cmt ] Comment Success: " . color()['MG'].$comment['text'] . color()['CY']." ".PHP_EOL;
$sleep = $sleep + 30;
}else{
echo color()["LR"]."Error comment :( | ";
$unfollow = unfollow($username,$data_login);
if ($unfollow['status'] == 'success') {
echo color()['LG']."Unfollow " . $username." Success | " . PHP_EOL;
}else{
echo color()['LR']."Unfollow " . $username." Failed | " . PHP_EOL;
}
}
}
}else{
echo color()["LR"]."Follow Failed: ".ucfirst($data_follow['details'])." | " . PHP_EOL;
$sleep = 0;
}
}
sleep($sleep);
}
}
}else{
echo color()['LR'].'Error: '.ucfirst($data_target['details']);
}
}