metasploit-framework/lib/anemone/extractors/links.rb

8 lines
135 B
Ruby

class Anemone::Extractors::Links < Anemone::Extractors::Base
def run
doc.search( "//link[@href]" ).map { |a| a['href'] }
end
end