elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recuerda que debes registrarte en el foro para poder participar (preguntar y responder)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [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 1,378 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



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

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
  1. #!usr/bin/perl
  2. #IRC Spam 0.3
  3. #Coded By Doddy H
  4.  
  5. use IO::Socket;
  6.  
  7. my @msg_users = ( "Hola",         "Chau" );          #Spam to users
  8. my @msg_canal = ( "Hola a todos", "que ondaaa" );    #Spam to canal
  9. my @bots      = ( "Jebus",        "Ramona" );        #Names of the bots
  10.  
  11. &head;
  12.  
  13. unless ( @ARGV == 2 ) {
  14.  
  15.    &sintax;
  16.  
  17. }
  18. else {
  19.  
  20.    print "\n[+] Connecting\n\n";
  21.  
  22.    if (
  23.        my $socket = new IO::Socket::INET(
  24.            PeerAddr => $ARGV[0],
  25.            PeerPort => 6667,
  26.            Proto    => "tcp"
  27.        )
  28.      )
  29.    {
  30.  
  31.        my $nombre = $bots[ rand(@bots) ];
  32.  
  33.        chomp $nombre;
  34.  
  35.        print $socket "NICK $nombre\r\n";
  36.        print $socket "USER $nombre 1 1 1 1\r\n";
  37.        print $socket "JOIN $ARGV[1]\r\n";
  38.  
  39.        print "[+] Spammer Online\n\n";
  40.  
  41.        while ( my $log = <$socket> ) {
  42.  
  43.            chomp $log;
  44.  
  45.            if ( $log =~ /^PING(.*)$/i ) {
  46.                print $socket "PONG $1\r\n";
  47.            }
  48.  
  49.            if ( $log =~ m/:(.*) 353 (.*) = (.*) :(.*)/ig ) {
  50.  
  51.                while (true) {
  52.  
  53.                    my $pro = $4;
  54.  
  55.                    sleep 10;
  56.  
  57.                    print $socket "PRIVMSG $ARGV[1] "
  58.                      . $msg_canal[ rand(@msg_canal) ] . "\r\n";
  59.                    my @nicks = split " ", $pro;
  60.  
  61.                    sleep 3;
  62.  
  63.                    foreach $names (@nicks) {
  64.                        unless ( $nombre eq $names ) {
  65.                            $names =~ s/\@//;
  66.                            print $socket
  67.                              "MSG $names $msg_users[rand(@msg_users)]\r\n";
  68.                            print "[+] Spam : $names !\n";
  69.                        }
  70.                    }
  71.                }
  72.            }
  73.        }
  74.    }
  75.    else {
  76.        print "[-] Error\n";
  77.    }
  78. }
  79.  
  80. &copyright;
  81.  
  82. sub sintax {
  83.    print "\n[+] : $0 <server> <channel>\n";
  84. }
  85.  
  86. sub head {
  87.  
  88.    print qq(
  89.  
  90. @  @@@@@    @@@@      @@@   @@@@@    @    @     @  @     @  @@@@@  @@@@@
  91. @  @    @  @    @    @   @  @    @   @    @     @  @     @  @      @    @
  92. @  @    @  @         @      @    @  @ @   @@   @@  @@   @@  @      @    @
  93. @  @    @  @         @      @    @  @ @   @@   @@  @@   @@  @      @    @
  94. @  @@@@@   @          @@@   @@@@@  @   @  @ @ @ @  @ @ @ @  @@@@   @@@@@
  95. @  @    @  @             @  @      @   @  @ @ @ @  @ @ @ @  @      @    @
  96. @  @    @  @             @  @      @@@@@  @  @  @  @  @  @  @      @    @
  97. @  @    @  @    @    @   @  @     @     @ @  @  @  @  @  @  @      @    @
  98. @  @    @   @@@@      @@@   @     @     @ @     @  @     @  @@@@@  @    @
  99.  
  100.  
  101. );
  102.  
  103. }
  104.  
  105. sub copyright {
  106.    print "\n\n(C) Doddy Hackman 2012\n\n";
  107. }
  108.  
  109. # The End ?
  110.  
  111.  


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

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
perl
Scripting
nobo 0 3,197 Último mensaje 22 Febrero 2005, 07:49 am
por nobo
Perl
Scripting
zhynar_X 2 2,225 Último mensaje 12 Enero 2008, 04:36 am
por GroK
Libros de Perl online [PERL]
Scripting
madpitbull_99 0 3,835 Último mensaje 18 Mayo 2011, 21:49 pm
por madpitbull_99
[Perl] Come on Spam Now 0.1
Scripting
BigBear 0 1,452 Último mensaje 31 Diciembre 2013, 22:42 pm
por BigBear
[Perl] King Spam 1.0
Scripting
BigBear 1 2,001 Último mensaje 16 Mayo 2015, 05:09 am
por scott_
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines