No suelo responder a los agradecimientos (lo considero offtopic), pero me alegra que te haya servido de ayuda la info!, para eso estamos 
un saludo

un saludo
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúArchivo: es_windows_8_enterprise_x64_dvd_917926.iso
Tamaño: 3,21 gb
SHA1: B3249287E9424C1D02519C4440EDAC262138274F
Archivo: es_windows_8_enterprise_x86_dvd_917591.iso
Tamaño: 2,32 gb
SHA1: B319C5C23047E280B334BC159B6B785942ACB87B
Cita de: MeCraniDOS en 31 Octubre 2012, 23:45 PMBuenas, me gustaria poder realizar scripts en Ruby, podrian decirme algun programa que sirva para eso
Cita de: ferminako en 31 Octubre 2012, 17:43 PM
Gracias Elektro , aun no he podido probarlo porque no he sido capaz de descargarlo, a donde le tengo que daR?toke lo q toke es publi xDDD
# -*- coding: UTF-8 -*-
require 'watir-webdriver'
if not ARGV.empty? then FILE = ARGV[0] else FILE = 'C:\Windows\Login.txt' end
File.open(FILE, 'r+').each_line do |line|
if line['URL'] then $URL = line.split('=').last.chomp end
if line['USER_TYPE'] then $USER_TYPE = line.split('=').last.chomp.to_sym end
if line['USER_NAME'] then $USER_NAME = line.split('=').last.chomp end
if line['USER_TEXT'] then $USER_TEXT = line.split('=').last.chomp end
if line['PASS_TYPE'] then $PASS_TYPE = line.split('=').last.chomp.to_sym end
if line['PASS_NAME'] then $PASS_NAME = line.split('=').last.chomp end
if line['PASS_TEXT'] then $PASS_TEXT = line.split('=').last.chomp end
if line['BUTTON1_TYPE'] then $BUTTON1_TYPE = line.split('=').last.chomp.to_sym end
if line['BUTTON1_NAME'] then $BUTTON1_NAME = line.split('=').last.chomp end
if line['BUTTON2_TYPE'] then $BUTTON2_TYPE = line.split('=').last.chomp.to_sym end
if line['BUTTON2_NAME'] then $BUTTON2_NAME = line.split('=').last.chomp end
end
print "
INFO:
[+] URL:
#{$URL}
[+] Usuario:
Atributo = #{$USER_TYPE}
Nombre = #{$USER_NAME}
Texto = #{$USER_TEXT}
[+] Contraseña:
Atributo = #{$PASS_TYPE}
Nombre = #{$PASS_NAME}
Texto = #{$PASS_TEXT}
[+] Botón 1:
Atributo = #{$BUTTON1_TYPE}
Nombre = #{$BUTTON1_NAME}
[+] Botón 2:
Atributo = #{$BUTTON2_TYPE}
Nombre = #{$BUTTON2_NAME}
"
browser = Watir::Browser.new
browser.goto($URL)
browser.text_field($USER_TYPE => $USER_NAME).set $USER_TEXT
browser.text_field($PASS_TYPE => $PASS_NAME).set $PASS_TEXT
browser.button($BUTTON1_TYPE=> $BUTTON1_NAME).click
browser.button($BUTTON2_TYPE=> $BUTTON2_NAME).click
#browser.close
# Valores para XXXX_TYPE: id, title, name, tag_name, value, index, text, etc...
# Importante: No dejar espacios en las líneas entre el caracter "="
URL=http://foro.elhacker.net/login.html
USER_TYPE=name
USER_NAME=user
USER_TEXT=test
PASS_TYPE=name
PASS_NAME=passwrd
PASS_TEXT=test
BUTTON1_TYPE=tag_name
BUTTON1_NAME=Ingresar
BUTTON2_TYPE=tag_name
BUTTON2_NAME=By Elektro H@cker
navegante.exe "C:\carpeta\mis _datos_de_acceso.txt"
Cita de: ferminako en 31 Octubre 2012, 10:14 AM
necesito usar por name:
.getElementsByName("clave").value = "...." pero me da error y me dice que no existe
document.getElementsByName('nombre')
.getElementsByTagName('nombre')
Cita de: ferminako en 31 Octubre 2012, 10:14 AMMira el code VBS de ejemplo que puse más arriba, ahi lo tienes.
y para hacer click en un boton?
DIM IE
DIM ipf
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://zip4.usps.com/zip4/citytown.jsp"
IE.Visible = True
While IE.Busy
WScript.Sleep 50
Wend
Set ipf = IE.document.all.getElementByID("city")
ipf.Value = "redmond" 'fill in the text box
Set ipf = IE.document.all.state
ipf.Value = "WA" 'fill in the text box
Set ipf = IE.document.all.Submit
ipf.Click 'click the submit button
'IE.Quit
/^[^0-9]+ [0-9]{2,8}$/
/^[A-z\s]+{4,12}[0-9]{2,8}$/
Cita de: -HadeS- en 31 Octubre 2012, 00:20 AM
El archivo de VirtualDub que me mandaste no sirve
Cita de: ferminako en 30 Octubre 2012, 18:03 PMMe da iwal en linux en windows y como hacerlo
# -*- coding: UTF-8 -*-
require 'watir-webdriver'
browser = Watir::Browser.new
browser.goto('http://foro.elhacker.net/login.html')
browser.text_field(:name => "user").set "test"
browser.text_field(:name => "passwrd").set "test"
browser.button(:value => "Ingresar").click
# browser.close
__END__