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

 

 


Tema destacado: Usando Git para manipular el directorio de trabajo, el índice y commits (segunda parte)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Ruby] IRC Spam 0.2
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Ruby] IRC Spam 0.2  (Leído 1,209 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Ruby] IRC Spam 0.2
« en: 11 Febrero 2012, 23:05 pm »

Un simple programa para hacer Spam en un canal de IRC.

Código
  1. #!usr/bin/ruby
  2. #IRC Spam 0.2
  3. #Coded By Doddy H
  4.  
  5. $nicks = ["ruben","negro jose","rasputin","juancho"]
  6. $spam = ["hola","chau","hasta","nunca"]
  7.  
  8. def head()
  9.  print "\n\n == -- IRC Spam 0.2 -- ==\n\n"
  10. end
  11.  
  12. def uso()
  13.  print "\n[+] Sintax : #{$0} <host> <channel>\n"
  14. end
  15.  
  16. def copyright()
  17.  print "\n\n(C) Doddy Hackman 2012\n\n"
  18. end
  19.  
  20. def load(host,canal)
  21.  begin
  22.    irc = TCPSocket.open(host,6667)
  23.  rescue
  24.    print "\n\n[-] Error\n\n"
  25.  else
  26.    nick_azar = $nicks[rand($nicks.size)]
  27.    irc.print "NICK "+nick_azar+"\r\n"
  28.    irc.print "USER "+nick_azar+" 1 1 1 1\r\n"
  29.    irc.print "JOIN #{canal}\r\n"
  30.    print "\n\n[+] Online\n\n"
  31.    while 1
  32.      code = irc.recv(666)
  33.  
  34.      if (code=~/PING (.*)/)
  35.        irc.print "PONG #{$1}\n"
  36.      end
  37.      print "\n[+] The party started\n"
  38.      while 1
  39.        sleep(60) # 1 minute
  40.        texto = $spam[rand($spam.size)]
  41.        irc.print "PRIVMSG #{canal} #{texto}\n"
  42.      end
  43.    end
  44.  end
  45. end
  46.  
  47. head()
  48.  
  49. host = ARGV[0]
  50. canal = ARGV[1]
  51.  
  52. if !host and !canal
  53.  uso()
  54. else
  55.  load(host,canal)
  56. end
  57.  
  58. copyright()
  59.  
  60. # ¿ The End ?
  61.  
  62.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
ruby vs perl ??
Scripting
vacio 3 4,255 Último mensaje 26 Julio 2006, 17:32 pm
por vacio
Ruby
Programación General
¡Micronet! 2 3,148 Último mensaje 18 Octubre 2010, 22:49 pm
por ¡Micronet!
[Ruby] IRC Bot
Scripting
BigBear 0 2,307 Último mensaje 7 Octubre 2011, 01:30 am
por BigBear
[Ruby] FTP Crack 0.1
Scripting
BigBear 0 1,488 Último mensaje 10 Febrero 2012, 21:04 pm
por BigBear
[Ruby] CrackHash 0.1
Scripting
BigBear 0 1,332 Último mensaje 10 Febrero 2012, 21:04 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines