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

8 lines
140 B
Ruby

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