Murove1

spamlikevk v2.0

Apr 13th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1.  <?
  2. /*
  3.  Что-бы получить токен, перейдите по ссылке: vk.cc/18LU3y
  4. */
  5.  $access_token = '';// Ваш токен
  6.  $id = '1';  //id друга
  7.  $pid = '1'; // номер записи на стене!
  8.  $rep = '0';  //Репост
  9.  $lag = '3';  //Задержка
  10. while(1){
  11.  $go = curl( 'https://api.vk.com/method/wall.addLike?owner_id='. $id . '&post_id='. $pid . '&repost='. $rep .'&access_token=' . $access_token );
  12.  $go2 = curl( 'https://api.vk.com/method/wall.deleteLike?owner_id='. $id . '&post_id='. $pid . '&repost='. $rep .'&access_token=' . $access_token );
  13.  
  14. $json = json_decode($go, true);
  15.  if ($json["response"] != '')
  16.  {echo 'Good!'; }
  17.  else
  18.  { echo 'token no valid';}
  19.  
  20. sleep($lag);
  21.    }
  22.  function curl( $url ) {
  23.         $ch = curl_init( $url );
  24.         curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  25.         curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
  26.         curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  27.        
  28.         $response = curl_exec( $ch );
  29.         curl_close( $ch );
  30.         return $response;
  31. }
  32.     ?>
Advertisement
Add Comment
Please, Sign In to add comment