Advertisement
Guest User

akun.php

a guest
May 24th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <?php
  2. set_time_limit(20);
  3. require_once("fungsi.php");
  4. $username = "username";
  5. $password = "pass";
  6. $ua = generate_useragent();
  7. $devid = generate_device_id();
  8. $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"}'));
  9. $obj = @json_decode($login[1], true);
  10. $status = $obj['status'];
  11. $message = $obj['message'];
  12. $pk = $obj['logged_in_user']['pk'];
  13. if ($status == 'fail') {
  14. echo $message;
  15. } else {
  16. preg_match_all('%Set-Cookie: (.*?);%',$login[0],$d);$cookies = '';
  17. for($o=0;$o<count($d[0]);$o++)$cookies.=$d[1][$o].";";
  18. $limit = 10;
  19. $iki = "13838992";
  20. $ganteng = explode("|", $iki);
  21. $target = $ganteng[mt_rand(0, count($ganteng)-1)];
  22. $limit = ($limit=='sampehabis') ? $getinfo->user->following_count-1 : $limit-1;
  23. $c = 0;
  24. $listids = array();
  25. do{
  26. $parameters = ($c>0) ? '?max_id='.$c : '';
  27. $req = proccess(1, $ua, 'friendships/'.$target.'/followers/'.$parameters, $cookies);
  28. $req = json_decode($req[1]);
  29. for($i=0;$i<count($req->users);$i++):
  30. if(count($listids)<=$limit)
  31. $listids[count($listids)] = $req->users[$i]->pk;
  32. endfor;
  33. $c = (isset($req->next_max_id)) ? $req->next_max_id : 0;
  34. }while(count($listids)<=$limit);
  35. for($i=0;$i<=count($listids);$i++){
  36. $cross = proccess(1, $ua, 'friendships/create/'.$listids[$i].'/', $cookies, hook('{"user_id":"'.$listids[$i].'"}'));
  37. echo $cross[1]."<br>" .$target;
  38. }
  39. }
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement