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

8 lines
141 B
Ruby

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