lib/wmap/url_crawler/adware_tag.rb
# Search the page for known tag signatures. If found return them in an array
Search the page for known tag signatures. If found return them in an array
Search the page for known tag signatures . If found return them in an array
def find_tags(url)
			puts "Search and return tags within the url payload: #{url}" if @verbose
			tag_list = []
      doc = open_page(url)
      doc.text.each_line do |line|
        my_line = line.downcase
        @tag_signatures.keys.map do |tag|
          tag_list.push(tag) if my_line.include?(tag)
        end
      end
      return tag_list
    rescue => ee
      puts "Exception on method #{__method__}: #{ee}" if @verbose
      return []
    end
def find_tags ( url ) puts "Search and return tags within the url payload: #{url}" if @verbose tag_list = [ ] doc = open_page ( url ) doc . text . each_line do | line | my_line = line . downcase @tag_signatures . keys . map do | tag | tag_list . push ( tag ) if my_line . include? ( tag ) end end return tag_list rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return [ ] end
Search the page for known tag signatures.
Search the page for known tag signatures .
url
<not_specific>