kismet

0chan voice exploit

Jan 22nd, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.61 KB | None | 0 0
  1. use strict;
  2. use LWP;
  3. $| = 1;
  4.  
  5. my $file  = "voice.mp3"; # mp3-файл
  6. my $image = "graph.png"; # png-картинка
  7.  
  8. my $count = 60; # Сколько штук загрузить, можно вставлять до 60 в один пост.
  9.  
  10. my $lwp = new LWP::UserAgent;
  11. for(1..$count) {
  12.    my $response = $lwp->post("http://www.0chan.ru/voice.php",
  13.       Content_Type => "form-data",
  14.       Content => [voice => [$file], visual => [$image]],
  15.    );
  16.    if($response->content() =~ /done:(\w+)/) {
  17.       print "[voice=$1]\n";
  18.    } else {
  19.       print $response->content();
  20.    }
  21.    sleep 1 if $_ < $count;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment