From: Robert Klemme Date: 2010-12-27T19:44:52+09:00 Subject: Re: Errors on REXML reading an HTML. On Sat, Dec 25, 2010 at 12:16 AM, Lorenzo Dolores wrote: > Hello, I'm doing a penetration testing with an exploit developed in Ruby > that used the library rexml. The code is supposed to trigger the > vulnerability identified as ms10-070. > > However rexml fails because the html of the website to evaluate is not > properly made. This is the error I recibe: > Please somebody could help me? I'm not very skilled on Ruby to be > honest, but I tought about replacing REXML for any other library that > wouldn't trigger this error. If you want to parse HTML you must replace REXML anyway because it is an XML parser and not a HTML parser - unless of course someone can guarantee to you that all pages you want to parse are valid XHTML. I suggest nokogiri. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/