msgbox

Untitled

Dec 2nd, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.63 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3.     use threads;
  4.     use HTTP::Cookies;
  5.     use LWP::UserAgent;
  6.  
  7. $messg = `audtool --current-song`;
  8. $login = '';
  9. $passw = '';
  10.  
  11. $request = LWP::UserAgent->new('Mozilla/5.0');
  12. $cookie = HTTP::Cookies->new;
  13. $request->cookie_jar($cookie);
  14.  
  15.     $data = $request->get("http://login.vk.com/?act=login&email=$login&pass=$passw&from_host=m.vk.com");
  16.     $data = $request->get("http://m.vk.com/id")->as_string;
  17.     $user = $1 if ($data =~ /id=(.*?)&/);
  18.     $hash = $1 if ($data =~ /hash=(.*?)&/);
  19.     $post = "to_id=$user&wall_hash=$hash&pda=1&message=$messg";
  20.     $data = $request->post("http://m.vk.com/wallsent", Content => $post);
  21.  
  22. # msgbox
  23.  
Advertisement
Add Comment
Please, Sign In to add comment