elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 09:18  


Tema destacado: Personaliza-Escoge el diseño del foro que más te guste.

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Perl] IRC Spam 0.3
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] IRC Spam 0.3  (Leído 116 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Perl] IRC Spam 0.3
« en: 19 Enero 2012, 20:34 »

Un simple script para hacer spam molesto a cada uno de los usuarios que esten en en canal , el spam lo
pueden editar con una pagina cualquiera o lo que quieran promocionar.

Código
#!usr/bin/perl
#IRC Spam 0.3
#Coded By Doddy H
 
use IO::Socket;
 
my @msg_users = ( "Hola",         "Chau" );          #Spam to users
my @msg_canal = ( "Hola a todos", "que ondaaa" );    #Spam to canal
my @bots      = ( "Jebus",        "Ramona" );        #Names of the bots
 
&head;
 
unless ( @ARGV == 2 ) {
 
   &sintax;
 
}
else {
 
   print "\n[+] Connecting\n\n";
 
   if (
       my $socket = new IO::Socket::INET(
           PeerAddr => $ARGV[0],
           PeerPort => 6667,
           Proto    => "tcp"
       )
     )
   {
 
       my $nombre = $bots[ rand(@bots) ];
 
       chomp $nombre;
 
       print $socket "NICK $nombre\r\n";
       print $socket "USER $nombre 1 1 1 1\r\n";
       print $socket "JOIN $ARGV[1]\r\n";
 
       print "[+] Spammer Online\n\n";
 
       while ( my $log = <$socket> ) {
 
           chomp $log;
 
           if ( $log =~ /^PING(.*)$/i ) {
               print $socket "PONG $1\r\n";
           }
 
           if ( $log =~ m/:(.*) 353 (.*) = (.*) :(.*)/ig ) {
 
               while (true) {
 
                   my $pro = $4;
 
                   sleep 10;
 
                   print $socket "PRIVMSG $ARGV[1] "
                     . $msg_canal[ rand(@msg_canal) ] . "\r\n";
                   my @nicks = split " ", $pro;
 
                   sleep 3;
 
                   foreach $names (@nicks) {
                       unless ( $nombre eq $names ) {
                           $names =~ s/\@//;
                           print $socket
                             "MSG $names $msg_users[rand(@msg_users)]\r\n";
                           print "[+] Spam : $names !\n";
                       }
                   }
               }
           }
       }
   }
   else {
       print "[-] Error\n";
   }
}
 
&copyright;
 
sub sintax {
   print "\n[+] : $0 <server> <channel>\n";
}
 
sub head {
 
   print qq(
 
@  @@@@@    @@@@      @@@   @@@@@    @    @     @  @     @  @@@@@  @@@@@
@  @    @  @    @    @   @  @    @   @    @     @  @     @  @      @    @
@  @    @  @         @      @    @  @ @   @@   @@  @@   @@  @      @    @
@  @    @  @         @      @    @  @ @   @@   @@  @@   @@  @      @    @
@  @@@@@   @          @@@   @@@@@  @   @  @ @ @ @  @ @ @ @  @@@@   @@@@@
@  @    @  @             @  @      @   @  @ @ @ @  @ @ @ @  @      @    @
@  @    @  @             @  @      @@@@@  @  @  @  @  @  @  @      @    @
@  @    @  @    @    @   @  @     @     @ @  @  @  @  @  @  @      @    @
@  @    @   @@@@      @@@   @     @     @ @     @  @     @  @@@@@  @    @
 
 
);
 
}
 
sub copyright {
   print "\n\n(C) Doddy Hackman 2012\n\n";
}
 
# The End ?
 
 


« Última modificación: 19 Enero 2012, 20:37 por Doddy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ayuda con el Active Perl + Perl
Hacking Básico
Aironjack 3 926 Último mensaje 8 Marzo 2005, 07:52
por Aironjack
Que significa #!/usr/bin/perl ?? como ejecutamos un exploit en perl...
Bugs y Exploits
mousehack 7 2,198 Último mensaje 4 Noviembre 2005, 23:16
por BenRu
-=PERL=-
Scripting
D4RIO 1 3,005 Último mensaje 25 Febrero 2008, 17:27
por D4RIO
spam spam y la pagina de un spammer
Seguridad
bomba1990 1 3,131 Último mensaje 14 Julio 2009, 10:58
por Fran_Al
Libros de Perl online [PERL]
Scripting
madpitbull_99 0 854 Último mensaje 18 Mayo 2011, 21:49
por madpitbull_99
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines