|
1 | 1 | <?php
|
2 |
| -require_once('vendor/system.php'); |
3 | 2 | /**
|
4 | 3 | * Author : Wahyu Arif Purnomo
|
5 | 4 | * Name : Facebook Toolkit++
|
6 |
| - * Update : 15 June 2019 |
| 5 | + * Update : 02 November 2019 |
7 | 6 | *
|
8 | 7 | * If you are a reliable programmer or the best developer, please don't change anything.
|
9 | 8 | * If you want to be appreciated by others, then don't change anything in this script.
|
10 | 9 | * Please respect me for making this tool from the beginning.
|
11 | 10 | */
|
12 | 11 |
|
| 12 | +$version = "1.7"; |
| 13 | +$build = "08 June 2019"; |
| 14 | +$name = "Facebook Toolkit++"; |
| 15 | +$author = "Wahyu Arif Purnomo"; |
| 16 | +$update = "02 November 2019 17.23"; |
| 17 | +$url_based = "https://graph.facebook.com"; |
| 18 | +$url_token = "config/token.txt"; |
| 19 | +$cek_connection = "graph.facebook.com"; |
| 20 | +$progress; |
| 21 | +$url_valid = "http://widhitools.000webhostapp.com/api/yahoo.php"; |
| 22 | +$url_brute = "https://m.facebook.com"; |
| 23 | +$token = file_get_contents($url_token); |
| 24 | +$banner = " |
| 25 | + _______ _______ _ _ || |
| 26 | +| || | _| |_ _| |_ || Author : $author |
| 27 | +| ___||_ _||_ _| |_ _| || Version : $version |
| 28 | +| |___ | | |_| |_| || Build : $build |
| 29 | +| ___| | | || Update : $update |
| 30 | +| | | | Facebook Toolkit++ || Name : $name |
| 31 | +|___| |___| @2019 || |
| 32 | +
|
| 33 | +[!] a tool to get Facebook data, and some Facebook bots, and extra tools found on Facebook Toolkit++ |
| 34 | +
|
| 35 | +"; |
| 36 | + |
| 37 | +$data_socialmedia = [ |
| 38 | + [ |
| 39 | + "Facebook", "https://www.facebook.com/warifp", |
| 40 | + ], |
| 41 | + [ |
| 42 | + "Instagram", "https://www.instagram.com/warifp", |
| 43 | + ], |
| 44 | + [ |
| 45 | + "Twitter", "https://www.twitter.com/wahyuarifp", |
| 46 | + ], |
| 47 | + [ |
| 48 | + "Linkedin", "https://id.linkedin.com/in/warifp", |
| 49 | + ], |
| 50 | + [ |
| 51 | + "Github", "https://www.github.com/warifp", |
| 52 | + ], |
| 53 | +]; |
| 54 | + |
| 55 | +$climate->arguments->add([ |
| 56 | + "menu" => [ |
| 57 | + "prefix" => "m", |
| 58 | + "longPrefix" => "menu", |
| 59 | + "description" => "tool menu", |
| 60 | + "noValue" => true, |
| 61 | + ], |
| 62 | + "version" => [ |
| 63 | + "prefix" => "v", |
| 64 | + "longPrefix" => "version", |
| 65 | + "description" => "version", |
| 66 | + "noValue" => true, |
| 67 | + ], |
| 68 | + "author" => [ |
| 69 | + "prefix" => "a", |
| 70 | + "longPrefix" => "author", |
| 71 | + "description" => "owner", |
| 72 | + "noValue" => true, |
| 73 | + ], |
| 74 | + "update" => [ |
| 75 | + "prefix" => "u", |
| 76 | + "longPrefix" => "update", |
| 77 | + "description" => "update version", |
| 78 | + "noValue" => true, |
| 79 | + ], "help" => [ |
| 80 | + "prefix" => "h", |
| 81 | + "longPrefix" => "help", |
| 82 | + "description" => "help", |
| 83 | + "noValue" => true, |
| 84 | + ], |
| 85 | +]); |
| 86 | +$climate->arguments->parse(); |
| 87 | + |
| 88 | +if ($climate->arguments->defined("menu")) { |
| 89 | + $climate->br()->info("please wait, load the list menu"); |
| 90 | + sleep(7); |
| 91 | + progress($progress); |
| 92 | + $climate->bold()->backgroundRed()->Table($data_menu); |
| 93 | + exit; |
| 94 | +} else if ($climate->arguments->defined("version")) { |
| 95 | + echo $version; |
| 96 | + exit; |
| 97 | +} else if ($climate->arguments->defined("author")) { |
| 98 | + echo $author; |
| 99 | + exit; |
| 100 | +} else if ($climate->arguments->defined("update")) { |
| 101 | + system("git fetch --all"); |
| 102 | + system("git reset --hard origin/master"); |
| 103 | + system("git pull origin master"); |
| 104 | + exit; |
| 105 | +} else if ($climate->arguments->defined("help")) { |
| 106 | + $climate->usage(); |
| 107 | + exit; |
| 108 | +} else { |
| 109 | +} |
| 110 | + |
| 111 | +$climate->br()->info("Oops, additional programs are needed to run this tool."); |
| 112 | +sleep(5); |
| 113 | +$climate->br()->info("Start a check for needs.."); |
| 114 | +progress($progress); |
| 115 | +if (!fsockopen("$cek_connection", 80)) { |
| 116 | + die("" . $climate->br()->backgroundRed()->out("Could not open the server, connection issues?")); |
| 117 | +} |
| 118 | +if (phpversion() < "7.0.0") { |
| 119 | + die("" . $climate->br()->backgroundRed()->out("Your PHP Version is " . phpversion() . ", this PHP Version no support, please update to PHP Version 7.")); |
| 120 | +} |
| 121 | +if (!function_exists("curl_init")) { |
| 122 | + die("" . $climate->br()->backgroundRed()->out("cURL not found! please install cURL")); |
| 123 | +} |
| 124 | + |
| 125 | +$climate->br()->backgroundGreen()->out("Congratulations, the requirements for the program have been fulfilled."); |
| 126 | + |
| 127 | +sleep(5); |
| 128 | +print $banner; |
| 129 | +sleep(3); |
| 130 | +$climate->table($data_socialmedia); |
| 131 | +sleep(3); |
13 | 132 |
|
14 | 133 | /** Token Validation Function */
|
15 | 134 |
|
@@ -69,8 +188,8 @@ function tokenvalidation($url_based, $token){
|
69 | 188 | /**
|
70 | 189 | * Author : Wahyu Arif Purnomo
|
71 | 190 | * Name : Facebook Toolkit++
|
72 |
| - * Version : 1.5 |
73 |
| - * Update : 15 June 2019 |
| 191 | + * Version : 1.7 |
| 192 | + * Update : 02 November 2019 |
74 | 193 | *
|
75 | 194 | * If you are a reliable programmer or the best developer, please don't change anything.
|
76 | 195 | * If you want to be appreciated by others, then don't change anything in this script.
|
|
0 commit comments