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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


  Mostrar Temas
Páginas: 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43
291  Programación / Scripting / [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.  
292  Programación / Scripting / [Ruby] PanelControl 0.2 en: 11 Febrero 2012, 23:05 pm
Nueva version de este buscador de panel administracion.

Código
  1. #!usr/bin/ruby
  2. #PanelControl 0.2
  3. #Coded By Doddy H
  4.  
  5. panels = ['admin/admin.asp','admin/login.asp','admin/index.asp','admin/admin.aspx','admin/login.aspx','admin/index.aspx','admin/webmaster.asp','admin/webmaster.aspx','asp/admin/index.asp','asp/admin/index.aspx','asp/admin/admin.asp','asp/admin/admin.aspx','asp/admin/webmaster.asp','asp/admin/webmaster.aspx','admin/','login.asp','login.aspx','admin.asp','admin.aspx','webmaster.aspx','webmaster.asp','login/index.asp','login/index.aspx','login/login.asp','login/login.aspx','login/admin.asp','login/admin.aspx','administracion/index.asp','administracion/index.aspx','administracion/login.asp','administracion/login.aspx','administracion/webmaster.asp','administracion/webmaster.aspx','administracion/admin.asp','administracion/admin.aspx','php/admin/','admin/admin.php','admin/index.php','admin/login.php','admin/system.php','admin/ingresar.php','admin/administrador.php','admin/default.php','administracion/','administracion/index.php','administracion/login.php','administracion/ingresar.php','administracion/admin.php','administration/','administration/index.php','administration/login.php','administrator/index.php','administrator/login.php','administrator/system.php','system/','system/login.php','admin.php','login.php','administrador.php','administration.php','administrator.php','admin1.html','admin1.php','admin2.php','admin2.html','yonetim.php','yonetim.html','yonetici.php','yonetici.html','adm/','admin/account.php','admin/account.html','admin/index.html','admin/login.html','admin/home.php','admin/controlpanel.html','admin/controlpanel.php','admin.html','admin/cp.php','admin/cp.html','cp.php','cp.html','administrator/','administrator/index.html','administrator/login.html','administrator/account.html','administrator/account.php','administrator.html','login.html','modelsearch/login.php','moderator.php','moderator.html','moderator/login.php','moderator/login.html','moderator/admin.php','moderator/admin.html','moderator/','account.php','account.html','controlpanel/','controlpanel.php','controlpanel.html','admincontrol.php','admincontrol.html','adminpanel.php','adminpanel.html','admin1.asp','admin2.asp','yonetim.asp','yonetici.asp','admin/account.asp','admin/home.asp','admin/controlpanel.asp','admin/cp.asp','cp.asp','administrator/index.asp','administrator/login.asp','administrator/account.asp','administrator.asp','modelsearch/login.asp','moderator.asp','moderator/login.asp','moderator/admin.asp','account.asp','controlpanel.asp','admincontrol.asp','adminpanel.asp','fileadmin/','fileadmin.php','fileadmin.asp','fileadmin.html','administration.html','sysadmin.php','sysadmin.html','phpmyadmin/','myadmin/','sysadmin.asp','sysadmin/','ur-admin.asp','ur-admin.php','ur-admin.html','ur-admin/','Server.php','Server.html','Server.asp','Server/','wp-admin/','administr8.php','administr8.html','administr8/','administr8.asp','webadmin/','webadmin.php','webadmin.asp','webadmin.html','administratie/','admins/','admins.php','admins.asp','admins.html','administrivia/','Database_Administration/','WebAdmin/','useradmin/','sysadmins/','admin1/','system-administration/','administrators/','pgadmin/','directadmin/','staradmin/','ServerAdministrator/','SysAdmin/','administer/','LiveUser_Admin/','sys-admin/','typo3/','panel/','cpanel/','cPanel/','cpanel_file/','platz_login/','rcLogin/','blogindex/','formslogin/','autologin/','support_login/','meta_login/','manuallogin/','simpleLogin/','loginflat/','utility_login/','showlogin/','memlogin/','members/','login-redirect/','sub-login/','wp-login/','login1/','dir-login/','login_db/','xlogin/','smblogin/','customer_login/','UserLogin/','login-us/','acct_login/','admin_area/','bigadmin/','project-admins/','phppgadmin/','pureadmin/','sql-admin/','radmind/','openvpnadmin/','wizmysqladmin/','vadmind/','ezsqliteadmin/','hpwebjetadmin/','newsadmin/','adminpro/','Lotus_Domino_Admin/','bbadmin/','vmailadmin/','Indy_admin/','ccp14admin/','irc-macadmin/','banneradmin/','sshadmin/','phpldapadmin/','macadmin/','administratoraccounts/','admin4_account/','admin4_colon/','radmind-1/','Super-Admin/','AdminTools/','cmsadmin/','SysAdmin2/','globes_admin/','cadmins/','phpSQLiteAdmin/','navSiteAdmin/','server_admin_small/','logo_sysadmin/','server/','database_administration/','power_user/','system_administration/','ss_vms_admin_sm/']
  6.  
  7. require "net/http"
  8.  
  9. def uso
  10.  print "\n[+] panelcontol.rb <site>\n"
  11. end
  12.  
  13. def toma(web)
  14.  return Net::HTTP.get_response(web)
  15. end
  16.  
  17. def savefile(file,text)
  18.   save = File.open(file, "a")
  19.   save.puts text+"\n"
  20.   save.close
  21. end
  22.  
  23. def head()
  24.  print "\n\n -- == Panel Control 0.2 == --\n\n"
  25. end
  26.  
  27. def copyright()
  28.   print "\n\n\n(C) Doddy Hackman 2012\n\n"
  29.   exit(1)
  30. end
  31.  
  32. def fin()
  33.   print "\n\n[+] Scan Finished\n"
  34. end
  35.  
  36. web = ARGV[0]
  37.  
  38. head()
  39. if !web
  40.  uso()
  41. else
  42.  print "\n[+] Starting the scan...\n\n\n"
  43.  panels.each do |panel|
  44.    begin
  45.      code = toma(URI.parse(web+"/"+panel))
  46.    rescue
  47.      fin()
  48.      copyright()
  49.    end
  50.    case code
  51.      when Net::HTTPSuccess
  52.        print "[Link] : "+web+"/"+panel+"\n"
  53.        savefile("panels-logs.txt",web+"/"+panel)
  54.      end
  55.    end
  56.  fin()    
  57. end
  58.  
  59. copyright()
  60.  
  61. # The End ?
  62.  
293  Programación / Scripting / [Ruby] Fuzz DNS 0.3 en: 11 Febrero 2012, 23:05 pm
Un buscador de DNS.

Código
  1. #!usr/bin/ruby
  2. #Fuzz DNS 0.3
  3. #Coded By Doddy H
  4.  
  5. paths = ['www','www1','www2','www3','ftp','ns','mail','3com','aix','apache','back','bind','boreder','bsd','business','chains','cisco','content','corporate','cpv','dns','domino','dominoserver','download','e-mail','e-safe','email','esafe','external','extranet','firebox','firewall','front','fw','fw0','fwe','fw-1','firew','gate','gatekeeper','gateway','gauntlet','group','help','hop','hp','hpjet','hpux','http','https','hub','ibm','ids','info','inside','internal','internet','intranet','ipfw','irix','jet','list','lotus','lotusdomino','lotusnotes','lotusserver','mailfeed','mailgate','mailgateway','mailgroup','mailhost','maillist','mailpop','mailrelay','mimesweeper','ms','msproxy','mx','nameserver','news','newsdesk','newsfeed','newsgroup','newsroom','newsserver','nntp','notes','noteserver','notesserver','nt','outside','pix','pop','pop3','pophost','popmail','popserver','print','printer','private','proxy','proxyserver','public','qpop','raptor','read','redcreek','redhat','route','router','scanner','screen','screening','ecure','seek','smail','smap','smtp','smtpgateway','smtpgw','solaris','sonic','spool','squid','sun','sunos','suse','switch','transfer','trend','trendmicro','vlan','vpn','wall','web','webmail','webserver','webswitch','win2000','win2k','upload','file','fileserver','storage','backup','share','core','gw','wingate','main','noc','home','radius','security','access','dmz','domain','sql','mysql','mssql','postgres','db','database','imail','imap','exchange','sendmail','louts','test','logs','stage','staging','dev','devel','ppp','chat','irc','eng','admin','unix','linux','windows','apple','hp-ux','bigip','pc']
  6. #paths = ['www']
  7.  
  8. require "net/http"
  9.  
  10. def uso
  11.  print "\n[+] fuzzdns.rb <domain>\n"
  12. end
  13.  
  14. def toma(web)
  15.   return Net::HTTP.get_response(web)
  16. end
  17.  
  18. def savefile(file,text)
  19.  save = File.open(file, "a")
  20.  save.puts text+"\n"
  21.  save.close
  22. end
  23.  
  24. def head()
  25.  print "\n\n -- == Fuzz DNS 0.3 == --\n\n"
  26. end
  27.  
  28. def copyright()
  29.   print "\n\n\n(C) Doddy Hackman 2012\n\n"
  30.   exit(1)
  31. end
  32.  
  33. def fin()
  34.   print "\n\n[+] Scan Finished\n"
  35. end
  36.  
  37. web = ARGV[0]
  38.  
  39. head()
  40. if !web
  41.  uso()
  42. else
  43.  print "\n[+] Starting the scan...\n\n\n"
  44.  paths.each do |path|
  45.    begin
  46.      code = toma(URI.parse("http://"+path+"."+web))
  47.    rescue
  48.      fin()
  49.      copyright()
  50.    end
  51.    case code
  52.      when Net::HTTPSuccess
  53.        print "[Link] : "+"http://"+path+"."+web+"\n"
  54.        savefile("dns-logs.txt","http://"+path+"."+web)
  55.      end
  56.    end
  57.  fin()    
  58. end
  59.  
  60. copyright()
  61.  
  62. # The End ?
  63.  
294  Programación / Scripting / [Ruby] FTP Scan 0.1 en: 11 Febrero 2012, 23:04 pm
Un buscador de servidores FTP que tengan habilitado el usuario anonymous.

Código
  1. #!usr/bin/ruby
  2. #FTP Scan 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 savefile(file,text)
  21.  save = File.open(file, "a")
  22.  save.puts text+"\n"
  23.  save.close
  24. end
  25.  
  26. def sintax()
  27.  print "\n[+] ruby ftpscan.rb <file>\n"
  28. end
  29.  
  30. def head()
  31.  print "\n-- == FTP Scan 0.1 == --\n\n"
  32. end
  33.  
  34. def copyright()
  35.  print "\n\n(C) Doddy Hackman 2012\n"
  36.  exit(1)
  37. end
  38.  
  39. file = ARGV[0]
  40.  
  41. head()
  42.  
  43. if !file
  44.  sintax()
  45. else
  46.  paginas = openwords(file)
  47.  print "\n[+] Scanning ...\n\n"
  48.  paginas.each do |pag|
  49.    pag = pag.chomp
  50.    target = URI.parse(pag)
  51.    begin
  52.    ftp =Net::FTP.new(target.host,"anonymous","test@hotmail.com")
  53.    rescue Net::FTPPermError
  54.    else
  55.      print "[+] Anonymous Found : "+target.host+"\n";
  56.      savefile("ftp-logs.txt",target.host)
  57.    end
  58.  end
  59.  print "\n\n[+] Scan Finished\n\n"
  60. end
  61.  
  62. copyright()
  63.  
  64. # The End ?
  65.  
295  Programación / Scripting / [Ruby] FinderText en: 11 Febrero 2012, 23:04 pm
Un buscador de texto , sirve para encontrar archivos que contengan cierto patron.

Código
  1. #!usr/bin/ruby
  2. #FinderText 0.1
  3. #Coded By Doddy H
  4.  
  5. def openwords(file)
  6.  if File.file?(file)
  7.    ar = File.open(file)
  8.    lineas = ar.readlines
  9.    ar.close
  10.    return lineas
  11.  end
  12. end
  13.  
  14. def escalar(dir,text)
  15.  files = Dir.new(dir).entries
  16.  files.each do |file|
  17.    if File.file?(dir+"/"+file)
  18.      contador = 0
  19.      words = openwords(dir+"/"+file)
  20.      words.each do |word|
  21.      word = word.chomp
  22.      contador+=1
  23.      if word=~/#{text}/
  24.        parteuno = dir+"/"+file
  25.        patron = File.basename(__FILE__)
  26.        if not parteuno=~/#{patron}/
  27.          print "[+] File Found : "+dir+"/"+file+" in line #{contador}\n"
  28.        end        
  29.      end
  30.    end
  31.    else
  32.      if file != "." and file != ".." and file != File.basename(__FILE__)
  33.        escalar(dir+"/"+file,text)
  34.      end
  35.    end
  36.  end
  37. end
  38.  
  39. def sintax()
  40.  print "\n[+] sintax : ruby findertext.rb <directory> <text>\n"
  41. end
  42.  
  43. def head()
  44.  print "\n-- == FinderText 0.1 == --\n\n"
  45. end
  46.  
  47. def copyright()
  48.  print "\n\n(C) Doddy Hackman 2012\n\n"
  49. end
  50.  
  51. head()
  52.  
  53. dir = ARGV[0]
  54. text = ARGV[1]
  55.  
  56. if !dir and !text
  57.  sintax()
  58. else
  59.  print "\n[+] Starting the search\n\n\n"
  60.  escalar(dir,text)
  61.  print "\n\n[+] Finished\n\n"
  62. end
  63.  
  64. copyright()
  65.  
  66. # The End ?
  67.  
296  Programación / Scripting / [Ruby] FinderShells 0.1 en: 11 Febrero 2012, 23:04 pm
Un buscador de shells de forma local.

Código
  1. #!usr/bin/ruby
  2. #FinderShells 0.1
  3. #Coded By Doddy H
  4.  
  5. $textos = ["C99Shell","r57shell","DxShell","HiddenShell","~ Andr3a92 ~ Sh3ll ~","CShell","Dark Shell","GsC SheLL","N3fa5t1cA Sh3ll","ONBOOMSHELL",
  6. "StAkeR ~ Shell","MoDDeD By KinG-InFeT","31337 Shel"]
  7.  
  8. def openwords(file)
  9.  if File.file?(file)
  10.    ar = File.open(file)
  11.    lineas = ar.readlines
  12.    ar.close
  13.    return lineas
  14.  end
  15. end
  16.  
  17. def escalar(dir)
  18.  files = Dir.new(dir).entries
  19.  files.each do |file|
  20.    if File.file?(dir+"/"+file)
  21.      contador = 0
  22.      words = openwords(dir+"/"+file)
  23.      words.each do |word|
  24.      word = word.chomp
  25.      contador+=1
  26.      $textos.each do |text|
  27.        if word=~/#{text}/
  28.          parteuno = dir+"/"+file
  29.          patron = File.basename(__FILE__)
  30.          if not parteuno=~/#{patron}/
  31.            print "[+] Shell Found : "+dir+"/"+file+" in line #{contador}\n"
  32.          end
  33.        end
  34.      end      
  35.    end
  36.    else
  37.      if file != "." and file != ".."
  38.        escalar(dir+"/"+file)
  39.      end
  40.    end
  41.  end
  42. end
  43.  
  44. def sintax()
  45.  print "\n[+] sintax : ruby findershells.rb <directory>\n"
  46. end
  47.  
  48. def head()
  49.  print "\n-- == FinderShells 0.1 == --\n\n"
  50. end
  51.  
  52. def copyright()
  53.  print "\n\n(C) Doddy Hackman 2012\n\n"
  54. end
  55.  
  56. head()
  57.  
  58. dir = ARGV[0]
  59.  
  60. if !dir
  61.  sintax()
  62. else
  63.  print "\n[+] Starting the search\n\n\n"
  64.  escalar(dir)
  65.  print "\n\n[+] Finished\n\n"
  66. end
  67.  
  68. copyright()
  69.  
  70. # The End ?
  71.  
297  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.  
298  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.  
299  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.  
300  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.  
Páginas: 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines