Improves detection speed of plugins/themes from homepage

This commit is contained in:
erwanlr
2019-10-10 21:15:59 +01:00
parent 2621404c5f
commit a9062db57f

View File

@@ -28,7 +28,7 @@ module WPScan
def items_from_codes(type, uniq = true)
found = []
target.homepage_res.html.css('script,style').each do |tag|
target.homepage_res.html.xpath('//script[not(@src)]|//style[not(@src)]').each do |tag|
code = tag.text.to_s
next if code.empty?