Changeset 335


Ignore:
Timestamp:
04/15/10 13:49:01 (3 years ago)
Author:
mao
Message:

Improved jru-autoreg.pl

Location:
trollforge/mao/xmpp-ruin
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trollforge/mao/xmpp-ruin/jid-ruin.pl

    r334 r335  
    55use AnyEvent::XMPP qw/xep-86/; 
    66use AnyEvent::XMPP::Client; 
    7 use Encode; 
    87 
    9 binmode STDOUT, ":utf8"; 
     8die "usage: $0 <target jid>" unless $ARGV[0]; 
    109 
     10my $target = $ARGV[0]; 
    1111my $j = AnyEvent->condvar; 
    1212 
     
    3636                 print "Connected!\n"; 
    3737                 #print Dumper($_[0]); 
    38                  $cl->send_message ("Connected!" => 'd@jabbim.com'); 
    39                  #sleep 5; 
     38                 $cl->send_message ("LOL" => $target, $cl->get_account($user), 'normal'); 
     39                 $cl->send_message ("LOL" => $target, $cl->get_account($user), 'error'); 
     40                 $cl->send_message ("LOL" => $target, $cl->get_account($user), 'headline'); 
    4041                 0 
    4142               }, 
  • trollforge/mao/xmpp-ruin/jru-autoreg.pl

    r334 r335  
    1111use MIME::Base64; 
    1212 
    13 #use Data::Dumper; 
     13require 'gen_nick.pl'; 
     14use Data::Dumper; 
    1415 
    1516# SET THIS SHIT UP 
    16 # gmail mailbox: <something>@gmail.com 
    17 my $gmail = "bla"; 
     17# gmail mailbox: 
     18my $gmail = "gnar.official"; 
    1819# gmail password: 
    19 my $gm_pass = "bla"; 
     20my $gm_pass = "1iamname"; 
    2021# path to web dir (file will be saved as 'captcha.jpg'): 
    21 my $www_path = "/home/bla/www"; 
    22  
     22my $www_path = "/home/mao/www"; 
     23# password for new JID 
     24my $pass_word = "FUCK_YOU"; 
    2325 
    2426my $m = WWW::Mechanize->new(); 
     
    3032 
    3133my $form = $m->form_number(2); 
    32 my @chars = ('a'..'z', '0'..'9'); 
    33 my $uname = "urmom".int(rand(666)).$chars[rand @chars].$chars[rand @chars].$chars[rand @chars].$chars[rand @chars]; 
     34my $uname = gen_nick();#"urmom".int(rand(666)).$chars[rand @chars].$chars[rand @chars].$chars[rand @chars].$chars[rand @chars]; 
    3435$m->field("username", $uname); 
    3536$m->field("name", "FUCK OFF"); 
    3637$m->field("fam","lol"); 
    3738$m->field("gorod","lol"); 
    38 $m->field("email",$gmail."+".int(rand(200)).$chars[rand @chars].$chars[rand @chars].$chars[rand @chars]."\@gmail.com"); 
     39$m->field("email",$gmail."+".int(rand(100))."\@gmail.com"); 
    3940print "Input captcha: "; 
    4041my $a = <STDIN>; 
     
    5253} 
    5354 
    54 sleep 5; 
     55sleep 2; 
    5556 
    5657my $activate_url = "http://reg.jabber.ru/continuereg/"; 
     
    7980$form = $m->form_number(1); 
    8081$m->field("username", $uname); 
    81 $m->field("pass", "FUCKOFF"); 
    82 $m->field("pass2","FUCKOFF"); 
    83  
     82$m->field("pass", $pass_word); 
     83$m->field("pass2",$pass_word); 
     84#$m->field("name","lol"); 
     85#$m->field("fam", "lol"); 
     86#$m->field("email",$gmail."+".int(rand(100))."\@gmail.com"); 
     87#print "Input captcha: "; 
     88#my $a = <STDIN>; 
     89#chomp $a; 
     90#$m->field("user_code",$a); 
    8491$m->click(); 
    8592if($m->content =~ m{буЎет сПзЎаМ через 1 ЌОМуту}) { 
    86   print "$uname\@jabber.ru:FUCKOFF"; 
     93  print ":)\n"; 
     94  `echo "$uname\@jabber.ru:$pass_word" >> accounts.txt` 
    8795} else { 
    8896  print "Something went wrong at the last stage!\n"; 
  • trollforge/mao/xmpp-ruin/room-ruin.pl

    r334 r335  
    7171                  
    7272                 #print Dumper($msg); 
    73 #                $muc->reg_cb( 
    74         #                     enter => sub { 
    75                 #               my ($room, $user) = @_; 
    76                         #       print Dumper($room->get_users()); 
    77                          #     }); 
     73                 #$muc->reg_cb( 
     74                 #            enter => sub { 
     75                 #              my ($room, $user) = @_; 
     76                 #     }); 
    7877                 $muc->reg_cb( 
    7978                              message => sub { 
    8079                                my ($cl, $room, $msg, $is_echo) = @_; 
    8180                                my $repl = $msg->make_reply; 
    82                                 $repl->add_body("NIGGERS JEWS BAD NEWS\n\n\n\n  \\n"); 
     81                                $repl->add_body("NIGGERS JEWS BAD NEWS\n\n\n\n  \n"); 
    8382                                $repl->send; 
    8483                                foreach my $faggot($room->get_users()) { 
    85                                   my $pid = fork(); 
    86                                   unless($pid==0 OR $faggot->nick eq 'Hit-ler') { 
     84                                  #my $pid = fork(); 
     85                                  unless($faggot->nick eq 'Yulya___' || $faggot->nick eq '/B/_WARRIOR_TOHOU_HERO') { 
    8786                                    my $u_msg = $faggot->make_message(body=>"lol u suck", type=>'headline'); 
    8887                                    $u_msg->send(); 
     
    9190                                    $u_msg = $faggot->make_message(body=>"lol u suck", type=>'error'); 
    9291                                    $u_msg->send(); 
     92                                  #  exit() 
    9393                                  } 
    9494                                } 
     
    137137 
    138138#my $timer =  
    139 #      $cl->send_message ("Hello!" => 'd@jabbim.com'); 
     139#       
    140140 
    141141$j->wait; 
Note: See TracChangeset for help on using the changeset viewer.