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
/
botlike_timeline.php
45 lines (44 loc) · 1.78 KB
/
botlike_timeline.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
<?php
date_default_timezone_set('Asia/Jakarta');
include 'class_ig.php';
error_reporting(0);
clear();
echo "
Ξ TITLE : BOT LIKE TIMELINE
Ξ FLPATH : tools/botlike_timeline.php
Ξ CODEBY : Firdy [https://fb.com/6null9]
Ξ FIXBY : Andi Muh. Rizqi [ikiganteng]
Ξ UPDATE : Officialputuid [26/01/2020]
";
$u = getUsername();
$p = getPassword();
$sleep = getComment('[?] Sleep in Seconds: ');
echo '•••••••••••••••••••••••••••••••••••••••••' . PHP_EOL . PHP_EOL;
$login = login($u, $p);
if ($login['status'] == 'success') {
echo '[*] Login as ' . $login['username'] . ' Success!' . PHP_EOL;
$data_login = array(
'username' => $login['username'],
'csrftoken' => $login['csrftoken'],
'sessionid' => $login['sessionid']
);
while (true) {
$profile = getHome($data_login);
$data_array = json_decode($profile);
$result = $data_array->user->edge_web_feed_timeline;
foreach ($result->edges as $items) {
$id = $items->node->id;
$username = $items->node->owner->username;
$like = like($id, $data_login);
if ($like['status'] == 'error') {
echo '[+] Username: ' . $username . ' | Media_id: ' . $id . ' | Error Like' . PHP_EOL;
} else {
echo '[+] Username: ' . $username . ' | Media_id: ' . $id . ' | Like Success' . PHP_EOL;
}
}
echo '[+] [' . date("H:i:s") . '] Tidur selama ' . $sleep . ' detik [+]' . PHP_EOL;
sleep($sleep);
echo '•••••••••••••••••••••••••••••••••••••••••' . PHP_EOL . PHP_EOL;
}
} else
echo json_encode($login);