Murove1

spamcommentvk

Jan 20th, 2013
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 KB | None | 0 0
  1.     <?
  2.  
  3.     $login = 'логин от вк'; //Логин
  4.     $pass = 'пароль от вк'; //Пароль
  5.     $user_id = ''; //тут id человека где будем спамить
  6.     $post_id = ''; //тут id записи где будем спамить пример wall1_34 берем 34!
  7.     $text = 'днище же у тебя бугурд ага !'; //текст которым будем спамить
  8.     $lag = "5"; //задержка между созданием комментария
  9.    
  10.     $auth = curl( 'https://oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username='. $login .'&password='. $pass );
  11.     $json = json_decode( $auth, true );
  12.     $access_token = $json['access_token'];
  13.    
  14.     echo "Herpi ckypuJ|u Becb rawuw i pa6oTayT.";
  15.     while(1){
  16.     $spam = curl( 'https://api.vk.com/method/wall.addComment?owner_id='. $user_id .'&post_id='. $post_id.'&text='. urlencode( $text).'&access_token='. $access_token );//Спам
  17.    sleep($lag);
  18.    }
  19.  
  20.  
  21.     function curl( $url ) {
  22.             $ch = curl_init( $url );
  23.             curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  24.             curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false );
  25.             curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  26.             $response = curl_exec( $ch );
  27.             curl_close( $ch );
  28.             return $response;
  29.     }
  30.     ?>
Advertisement
Add Comment
Please, Sign In to add comment