diff --git a/lib/common/updater/git_updater.rb b/lib/common/updater/git_updater.rb index 4f4c4815..c5f75710 100644 --- a/lib/common/updater/git_updater.rb +++ b/lib/common/updater/git_updater.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require File.expand_path(File.dirname(__FILE__) + '/updater') +require 'common/updater/updater' class GitUpdater < Updater diff --git a/lib/common/updater/svn_updater.rb b/lib/common/updater/svn_updater.rb index b5678d88..d0e6239b 100644 --- a/lib/common/updater/svn_updater.rb +++ b/lib/common/updater/svn_updater.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require File.expand_path(File.dirname(__FILE__) + '/updater') +require 'common/updater/updater' class SvnUpdater < Updater diff --git a/lib/wpscan/wp_item.rb b/lib/wpscan/wp_item.rb index 5b560e71..46411d8e 100644 --- a/lib/wpscan/wp_item.rb +++ b/lib/wpscan/wp_item.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpItem < Vulnerable attr_reader :base_url, :path, :wp_content_dir, :name, :vulns_file, :vulns_xpath, :wp_plugins_dir, :type diff --git a/lib/wpscan/wp_theme.rb b/lib/wpscan/wp_theme.rb index c3ed7b84..1c803e64 100644 --- a/lib/wpscan/wp_theme.rb +++ b/lib/wpscan/wp_theme.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpTheme < WpItem diff --git a/lib/wpscan/wp_version.rb b/lib/wpscan/wp_version.rb index de11a72d..b863dc38 100644 --- a/lib/wpscan/wp_version.rb +++ b/lib/wpscan/wp_version.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpVersion < Vulnerable