msgbox

Perl

Sep 7th, 2011
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.67 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use LWP::UserAgent;
  3. use HTTP::Cookies;
  4. $mail = '';
  5. $pass = '';
  6. $club = '6968868';
  7. $_tid = '24540895';
  8. $text = 'sometext';
  9. $browser = LWP::UserAgent->new(); $cookie = HTTP::Cookies->new(); $browser->cookie_jar($cookie);
  10. $link = "http://login.vk.com/?act=login&email=$mail&pass=$pass&from_host=vk.com";
  11. $data = $browser->get($link)->as_string; if($data =~ /reg/) {exit("Auth failed!\n");}
  12. $data = $browser->get("http://vk.com/topic-$club\_$_tid\?offset=last")->as_string;
  13.     if($data=~/hash: \'(.*)\',/){$hash = $1;
  14.     if($data=~/.*_(.*)\"><div class=\"bp_text/){$last = $1;}
  15.     print "\n\nhash: $hash\nlast: $last\n\n";
  16.     } else {
  17.     print "there\'s an error!\n";
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment