Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- file config.php berisi variable
- $cookie dan $query_hash
- */
- $green = "\e[1;92m";
- $cyan = "\e[1;36m";
- $putih = "\e[0m";
- $blue = "\e[34m";
- $green1 = "\e[0;92m";
- $yellow = "\e[93m";
- $red = "\e[1;91m";
- include 'config.php';
- function zzzZZZ($seconds)
- {
- $seconds = abs($seconds);
- if ($seconds < 1):
- usleep($seconds * 1000000);
- else:
- sleep($seconds);
- endif;
- }
- function loading_p()
- {
- $green = "\e[1;92m";
- $cyan = "\e[1;36m";
- $putih = "\e[0m";
- $blue = "\e[34m";
- $green1 = "\e[0;92m";
- $yellow = "\e[93m";
- $red = "\e[1;91m";
- $errorz = "[ " . $red . "ERROR!" . $putih . " ]";
- echo $cyan . "Retrieving Data, Please Wait";
- for ($i = 1; $i <= 10; $i++)
- {
- zzzZZZ(0.25);
- $loading = $cyan . "." . $putih;
- echo $loading;
- }
- echo "\n";
- }
- function getID($a)
- {
- $get = json_decode(file_get_contents("https://api.zonkploit.com/ig/user-info/" . $a) , TRUE);
- return $get['entry_data']['ProfilePage'][0]['graphql']['user']['id'];
- }
- function get_ardzz($url)
- {
- include 'config.php';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36',
- $cookie
- ));
- $res = curl_exec($ch);
- curl_close($ch);
- return $res;
- }
- system("clear");
- loading_p();
- $id = getID($argv[1]);
- $b = 1;
- $get = get_ardzz("https://z-p3.www.instagram.com/graphql/query/?query_hash=" . $query_hash . "&variables={\"id\":\"" . $id . "\",\"first\":100}");
- $a = json_decode($get, TRUE);
- $next = $a['data']['user']['edge_followed_by']['page_info']['end_cursor'];
- echo "Total Followers Count : " . $green . $a['data']['user']['edge_followed_by']['count'] . $putih . "\n";
- echo "Next? [y/n] : ";
- $op = trim(fgets(STDIN, 1024));
- loading_p();
- if ($op == "y")
- {
- foreach($a['data']['user']['edge_followed_by']['edges'] as $json)
- {
- echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $json['node']['username'] . " [ " . $cyan . $json['node']['full_name'] . $putih . " ]=> " . $cyan . $json['node']['id'] . $putih . "\n";
- }
- if ($a['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
- {
- $gett = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $next . '"}');
- $lanjut = json_decode($gett, TRUE);
- foreach($lanjut['data']['user']['edge_followed_by']['edges'] as $gas)
- {
- echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gas['node']['username'] . " [ " . $cyan . $gas['node']['full_name'] . $putih . " ]=> " . $cyan . $gas['node']['id'] . $putih . "\n";
- }
- if ($lanjut['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
- {
- $gettt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjut['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
- $lanjutt = json_decode($gettt, TRUE);
- foreach($lanjutt['data']['user']['edge_followed_by']['edges'] as $gass)
- {
- echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gass['node']['username'] . " [ " . $cyan . $gass['node']['full_name'] . $putih . " ]=> " . $cyan . $gass['node']['id'] . $putih . "\n";
- }
- if ($lanjutt['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
- {
- $getttt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjutt['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
- $lanjuttt = json_decode($getttt, TRUE);
- foreach($lanjuttt['data']['user']['edge_followed_by']['edges'] as $gasss)
- {
- echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gasss['node']['username'] . " [ " . $cyan . $gasss['node']['full_name'] . $putih . " ]=> " . $cyan . $gasss['node']['id'] . $putih . "\n";
- }
- }
- if ($lanjuttt['data']['user']['edge_followed_by']['page_info']['has_next_page'] == 1)
- {
- $gettttt = get_ardzz('https://z-p3.www.instagram.com/graphql/query/?query_hash=' . $query_hash . '&variables={"id":"' . $id . '","first":100,"after":"' . $lanjuttt['data']['user']['edge_followed_by']['page_info']['end_cursor'] . '"}');
- $lanjutttt = json_decode($gettttt, TRUE);
- foreach($lanjutttt['data']['user']['edge_followed_by']['edges'] as $gassss)
- {
- echo "[" . $b++ . "/" . $a['data']['user']['edge_followed_by']['count'] . "] " . $gassss['node']['username'] . " [ " . $cyan . $gassss['node']['full_name'] . $putih . " ]=> " . $cyan . $gassss['node']['id'] . $putih . "\n";
- }
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement