Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <?php
  2. require_once("lib/fungsi.php");
  3. $username = 'user';
  4. $password = 'pass';
  5. $ua = generate_useragent();
  6. $devid = generate_device_id();
  7. $login = proccess(1, $ua, 'accounts/login/', 0, hook('{"device_id":"'.$devid.'","guid":"'.generate_guid().'","username":"'.$username.'","password":"'.$password.'","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}'));
  8. $obj = @json_decode($login[1], true);
  9. $status = $obj['status'];
  10. $message = $obj['message'];
  11. $pk = $obj['logged_in_user']['pk'];
  12. if ($status == 'fail') {
  13. echo $message;
  14. } else {
  15. preg_match_all('%Set-Cookie: (.*?);%',$login[0],$d);$cookies = '';
  16. for($o=0;$o<count($d[0]);$o++)$cookies.=$d[1][$o].";";
  17. $c=curl_init('https://www.instagram.com/');
  18. curl_setopt($c,CURLOPT_RETURNTRANSFER,1);
  19. curl_setopt($c,CURLOPT_SSL_VERIFYPEER,0);
  20. curl_setopt($c,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0");
  21. $x=curl_exec($c);$mama=curl_getinfo($c);curl_close($c);
  22. if($mama['http_code']!==200)
  23. print 'Invalid Username Target!';
  24. else{
  25. $limit = 30; // mau sampe habis ? tinngal isi variabelnya 'sampehabis'
  26. // username target igineyz, itskeziakaramoy, trzarzky, alffy_rev, ridhaamaliah, ameliayusanaa
  27. $iki = "1726260346|4976175|463240363|2026278101";
  28. $ganteng = explode("|", $iki);
  29. $target = $ganteng[mt_rand(0, count($ganteng)-1)];
  30. $limit = ($limit=='sampehabis') ? $getinfo->user->following_count-1 : $limit-1;
  31. $c = 0;
  32. $listids = array();
  33. do{
  34. $parameters = ($c>0) ? '?max_id='.$c : '';
  35. $req = proccess(1, $ua, 'friendships/'.$target.'/followers/'.$parameters, $cookies);
  36. $req = json_decode($req[1]);
  37. for($i=0;$i<count($req->users);$i++):
  38. if(count($listids)<=$limit)
  39. $listids[count($listids)] = $req->users[$i]->pk;
  40. endfor;
  41. $c = (isset($req->next_max_id)) ? $req->next_max_id : 0;
  42. }while(count($listids)<=$limit);
  43. for($i=0;$i<=count($listids);$i++){
  44. $cross = proccess(1, $ua, 'friendships/create/'.$listids[$i].'/', $cookies, hook('{"user_id":"'.$listids[$i].'"}'));
  45. echo $cross[1]."<br>" .$target;
  46.  
  47. }
  48. }
  49. }
  50. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement