Changeset 350 for trollforge
- Timestamp:
- 05/29/10 08:54:54 (3 years ago)
- File:
-
- 1 edited
-
trollforge/pynchon/pastebin.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/pynchon/pastebin.pl
r349 r350 1 1 #!/usr/bin/perl 2 2 3 # cmdline tool to make the lisp pastebin bot flood freenode chans 4 # 5 # usage: 3 # lisp pastebot flooder 4 6 5 use warnings; 7 6 use strict; 8 9 7 use WWW::Mechanize; 10 use WWW::Mechanize::FormFiller; 11 12 my $m = WWW::Mechanize->new(); 13 my $f = WWW::Mechanize::FormFiller->new(); 8 use List::Util qw/shuffle/; 9 use Frontier::Client; 14 10 15 11 if ($#ARGV < 2) { … … 17 13 exit 1; 18 14 } 19 20 15 my $user = shift @ARGV; 21 16 my $title = join(' ', @ARGV); … … 85 80 while (1) { 86 81 foreach (@chanlist) { 87 88 $m->get("http://paste.lisp.org/"); 89 $m->submit_form(form_number => 1, fields => { 90 channel => $_, username => $user, title => $title, 91 captcha => "lisp", text => $paste } ); 92 print "spammed $_\n"; 82 my $client = Frontier::Client->new(url => "http://www.common-lisp.net:8185/RPC2"); 83 my @data = ($_, $user, $title, $paste); 84 $client->call("newpaste", @data); 85 print "spammed $_\n"; 93 86 } 94 87 } 95 88 96 # RIP erxz.com, you will not recover.97 #98 # $m->get("http://erxz.com/pb/html");99 # $m->submit_form(form_number => 1, fields => {100 # channel => $chan,101 # nick => $user,102 # summary => $title,103 # paste => $paste } );104 105
Note: See TracChangeset
for help on using the changeset viewer.
