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

8 lines
149 B
Ruby

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