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

8 lines
138 B
Ruby

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