Warnings from URI::escape (obsolete since ruby 1.9.2) and some instance variables not initialized fixed
This commit is contained in:
@@ -26,7 +26,7 @@ module Malwares
|
||||
|
||||
# return array of string (url of malwares found)
|
||||
def malwares(malwares_file_path = nil)
|
||||
if @malwares.nil?
|
||||
unless @malwares
|
||||
malwares_found = []
|
||||
malwares_file = Malwares.malwares_file(malwares_file_path)
|
||||
index_page_body = Browser.instance.get(@uri.to_s).body
|
||||
|
||||
@@ -38,6 +38,7 @@ class WpTarget
|
||||
@verbose = options[:verbose]
|
||||
@wp_content_dir = options[:wp_content_dir]
|
||||
@wp_plugins_dir = options[:wp_plugins_dir]
|
||||
@multisite = nil
|
||||
|
||||
Browser.instance(options.merge(:max_threads => options[:threads]))
|
||||
end
|
||||
|
||||
@@ -45,7 +45,9 @@ class WpscanOptions
|
||||
attr_accessor *ACCESSOR_OPTIONS
|
||||
|
||||
def initialize
|
||||
|
||||
ACCESSOR_OPTIONS.each do |option|
|
||||
instance_variable_set("@#{option}", nil)
|
||||
end
|
||||
end
|
||||
|
||||
def url=(url)
|
||||
|
||||
Reference in New Issue
Block a user