Advertisement
Guest User

janu

a guest
Nov 24th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. ignore_user_abort(1);
  4. require_once('require.php');
  5. /* safe edit */
  6. $target = 'ngakakkocak';
  7. $sleep = 2;
  8. $jumlah = 4;
  9. $unfollow_jika_gagal_mengomentari = true;
  10. $_teks = array(
  11. 'nice.follback ya, dan cek ig kami menjual followers murah',
  12. 'nice photo bro pls follback, dan cek ig kami menjual followers murah',
  13. 'follback kak, dan cek ig kami menjual followers murah',
  14. 'keren. follback ya, dan cek ig kami menjual followers murah',
  15. 'follback bro, dan cek ig kami menjual followers murah ',
  16. 'janganlupa follback:D , dan cek ig kami menjual followers murah ',
  17. 'Mantab ! follback ya, dan cek ig kami menjual followers murah ',
  18. 'kak,follback, dan cek ig kami menjual followers murah ',
  19. 'kak jangan lupa follback, dan cek ig kami menjual followers murah ',
  20. 'kak follback ya, dan cek ig kami menjual followers murah ',
  21. 'Bagus , follback kak, dan cek ig kami menjual followers murah ',
  22. 'Bagus, follback, dan cek ig kami menjual followers murah ',
  23. 'Bagus, follback ya, dan cek ig kami menjual followers murah ',
  24. 'Bagus, follback bro, dan cek ig kami menjual followers murah ',
  25. 'Bagus, follback ya, dan cek ig kami menjual followers murah ',
  26. 'Bagus, follback ya kk, dan cek ig kami menjual followers murah ',
  27. 'Nice, follback ya, dan cek ig kami menjual followers murah ',
  28. 'Nice, follback ya kak, dan cek ig kami menjual followers murah ',
  29. 'Nice, follback ya bro, dan cek ig kami menjual followers murah ',
  30. 'Nice, follback ya, dan cek ig kami menjual followers murah ',
  31. 'Nice, follback kak, dan cek ig kami menjual followers murah ',
  32. 'Nice, follback ya, dan cek ig kami menjual followers murah ',
  33. 'Nice, follback :D, dan cek ig kami menjual followers murah ',
  34. 'Nice, follback ya bro , dan cek ig kami menjual followers murah');
  35. /* edit at your own risks */
  36. if(!file_exists('cookie.qny')||!file_exists('other.qny')) die('Generate token dulu beb');
  37. $info = explode('|', file_get_contents('other.qny'));
  38. $_useragent = $info[0];
  39. $get = sniff::permintaan($_useragent, 'https://www.instagram.com/'.$target.'/', 0, 0);
  40. if(!preg_match('/200 OK/',$get[0])) die('Target ga ada');
  41. preg_match('#", "id": "(.*?)", "biography"#',$get[1],$id);
  42. $cookie = file_get_contents('cookie.qny');
  43. $feed = sniff::permintaan($_useragent, 'feed/user/'.$id[1].'/', 0, 1, $cookie);
  44. $feed = json_decode($feed[1]);
  45. if(count($feed->items)<1) die('Timeline target masih kosong');
  46. $listusers = sniff::permintaan($_useragent, 'media/'.$feed->items[0]->id.'/likers/', 0, 1, $cookie);
  47. $listuser = json_decode($listusers[1]);
  48. if(count($listuser->users)<1) die($listusers[1]);
  49. if($jumlah>count($listuser->users)) $jumlah = count($listuser->users);
  50. for($i=0;$i<$jumlah;$i++):
  51. $urut = array_rand($listuser->users);
  52. $relationship = sniff::permintaan($_useragent, 'friendships/show/'.$listuser->users[$urut]->pk.'/', 0, 1, $cookie);
  53. if(json_decode($relationship[1])->followed_by<>true):
  54. $follow = sniff::permintaan($_useragent, 'friendships/create/'.$listuser->users[$urut]->pk.'/', sniff::hook('{"user_id":"'.$listuser->users[$urut]->pk.'"}'), 1, $cookie);
  55. if(json_decode($follow[1])->friendship_status->following) {
  56. print '<font color="gray">Success Follow</font> @'.$listuser->users[$urut]->username.'<br>';
  57. $f = sniff::permintaan($_useragent, 'feed/user/'.$listuser->users[$urut]->pk.'/', 0, 1, $cookie);
  58. $f = json_decode($f[1]);
  59. if(count($f->items)<1) print('Timeline @'.$listuser->users[$urut]->username.' masih kosong jadi gue unfollow dah :P'); else{
  60. $c = sniff::permintaan($_useragent, 'media/'.$f->items[0]->id.'/comment/', sniff::hook('{"comment_text":"'.$_teks[array_rand($_teks)].'"}'), 1, $cookie);
  61. sniff::permintaan($_useragent, 'media/'.$feed->items[0]->id.'/like/', sniff::hook('{"media_id":"'.$feed->items[0]->id.'"}'), 1, $cookie);
  62. $c = json_decode($c[1]);
  63. if($c->status<>ok){
  64. print '<font color="red">Gagal Mengomentari</font> @'.$f->items[0]->id.' :: '.$c->message.'<br>';
  65. if($unfollow_jika_gagal_mengomentari)
  66. sniff::permintaan($_useragent, 'friendships/destroy/'.$listuser->users[$urut]->pk.'/', sniff::hook('{"user_id":"'.$listuser->users[$urut]->pk.'"}'), 1, $cookie);
  67. }else
  68. print '<font color="green">Sukses Mengomentari</font> @'.$f->items[0]->id.' :: '.$c->comment->text.'<br>';
  69. }
  70. }else
  71. print '<font color="gray">Gagal Follow</font> @'.$follow[1].'<br>';
  72. sleep($sleep);
  73. endif;
  74. endfor;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement