Fixing Goorecon.rb to handle new google responses

Goorecon recently broken when querying for email addresses (e.g. ruby goorecon.rb -e icsinc.com).   Sometime between when goorecon was written and now, google changed their formatting of reposnses for email addresses from:

emailaddress@<br>icsinc.com  to   emailaddress@<em>icsinc.com

Easy fix is to change the following line in goorecon.rb

response.scan(/[\w.-]+@<b>#{target}/o) { |t|

to

response.scan(/[\w.-]+@<[^>]+>#{target}/o) { |t|

This will keep the code flexible enough so that if google ever changes the highlighting tag (formerly <b> but now <em>) to some other html tag, goorecon will still correctly draw out emaill addresses.


~ by stevegoldsby on August 22, 2009.

Leave a Reply