Advertisement
TrojanCoder

Lick

Feb 2nd, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.16 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. @ini_set('output_buffering',0);
  4. @ini_set('display_errors', 0);
  5. @ini_set('max_execution_time',0);
  6. @set_time_limit(0);
  7. @ignore_user_abort(1);
  8.  
  9. function auto($url)
  10. {
  11.     $data = curl_init();
  12.     curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  13.     curl_setopt($data, CURLOPT_URL, $url);
  14.     $hasil = curl_exec($data);
  15.     curl_close($data);
  16.     return $hasil;
  17. }
  18. echo "<title>Botlek v69</title>";
  19. foreach(file('x.txt') as $line) {
  20.    $access_token = $line;
  21.  
  22. if(file_exists('target_status')) {
  23.     $log = json_encode(file('target_status'));
  24. } else {
  25.     $log = '';
  26. }
  27. if(file_exists('target_comment')) {
  28.     $log2 = json_encode(file('target_comment'));
  29. } else {
  30.     $log2 = '';
  31. }
  32.  
  33. $stat = json_decode(auto('https://graph.beta.facebook.com/me/home?fields=id&limit=50&access_token=' . $access_token), true);
  34. for ($i = 1; $i <= count($stat[data]); $i++) {
  35.     if (!ereg($stat[data][$i - 1][id], $log)) {
  36.         $x = $stat[data][$i - 1][id] . "\n";
  37.         $y = fopen('target_status', 'a');
  38.         fwrite($y, $x);
  39.         fclose($y);
  40.         auto('https://graph.beta.facebook.com/' . $stat[data][$i - 1][id] . '/likes?method=post&access_token=' . $access_token);
  41.         echo 'ID status : <font color=green>' . $stat[data][$i - 1][id] . '</font> sukses di lick mhanxx >:(<br>';
  42.     }
  43.     else
  44.     {
  45.         $foxdamn = json_decode(auto('https://graph.beta.facebook.com/' . $stat[data][$i - 1][id] . '/comments?fields=id&access_token=' . $access_token), true);
  46.         for ($e = 1; $e <= count($foxdamn[data]); $e++) {
  47.             if (!ereg($foxdamn[data][$e - 1][id], $log2)) {
  48.                 $q = $foxdamn[data][$e - 1][id] . "\n";
  49.                 $w = fopen('target_comment', 'a');
  50.                 fwrite($w, $q);
  51.                 fclose($w);
  52.                 auto('https://graph.beta.facebook.com/' . $foxdamn[data][$e - 1][id] . '/likes?method=post&access_token=' . $access_token);
  53.                 echo 'ID Komen : <font color=green>' . $foxdamn[data][$e - 1][id] . '</font> sukses di lick mhanxx >:(<br>';
  54.             }
  55.         }
  56.     }
  57.     flush();
  58.     ob_flush();
  59.     sleep(0);
  60. }
  61. unlink('target_comment');
  62. unlink('target_status');
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement