fix #1008
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
require File.dirname(__FILE__) + '/../lib/wpscan/wpscan_helper'
|
require File.expand_path(File.join(__dir__, '..', 'lib', 'wpscan', 'wpscan_helper'))
|
||||||
|
|
||||||
wordpress_json = json(WORDPRESSES_FILE)
|
wordpress_json = json(WORDPRESSES_FILE)
|
||||||
plugins_json = json(PLUGINS_FILE)
|
plugins_json = json(PLUGINS_FILE)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
LIB_DIR = File.expand_path(File.join(__dir__, '..'))
|
||||||
ROOT_DIR = File.expand_path(File.join(LIB_DIR, '..')) # expand_path is used to get "wpscan/" instead of "wpscan/lib/../"
|
ROOT_DIR = File.expand_path(File.join(LIB_DIR, '..')) # expand_path is used to get "wpscan/" instead of "wpscan/lib/../"
|
||||||
DATA_DIR = File.join(ROOT_DIR, 'data')
|
DATA_DIR = File.join(ROOT_DIR, 'data')
|
||||||
CONF_DIR = File.join(ROOT_DIR, 'conf')
|
CONF_DIR = File.join(ROOT_DIR, 'conf')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/../common/common_helper')
|
require File.expand_path(File.join(__dir__, '..', 'common', 'common_helper'))
|
||||||
|
|
||||||
require_files_from_directory(WPSCAN_LIB_DIR, '**/*.rb')
|
require_files_from_directory(WPSCAN_LIB_DIR, '**/*.rb')
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper')
|
require File.expand_path(File.join(__dir__, 'wpscan_helper'))
|
||||||
|
|
||||||
describe WpTarget do
|
describe WpTarget do
|
||||||
subject(:wp_target) { WpTarget.new(target_url, options) }
|
subject(:wp_target) { WpTarget.new(target_url, options) }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper')
|
require File.expand_path(File.join(__dir__, 'wpscan_helper'))
|
||||||
|
|
||||||
describe 'WpscanOptions' do
|
describe 'WpscanOptions' do
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ require 'simplecov' if RUBY_VERSION >= '1.9'
|
|||||||
|
|
||||||
RSpec::Expectations.configuration.warn_about_potential_false_positives = false
|
RSpec::Expectations.configuration.warn_about_potential_false_positives = false
|
||||||
|
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/../lib/common/common_helper')
|
require File.expand_path(File.join(__dir__, '..', 'lib', 'common', 'common_helper'))
|
||||||
|
|
||||||
SPEC_DIR = ROOT_DIR + '/spec'
|
SPEC_DIR = ROOT_DIR + '/spec'
|
||||||
SPEC_LIB_DIR = SPEC_DIR + '/lib'
|
SPEC_LIB_DIR = SPEC_DIR + '/lib'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Script based on http://seclists.org/fulldisclosure/2014/Feb/3
|
# Script based on http://seclists.org/fulldisclosure/2014/Feb/3
|
||||||
|
|
||||||
require File.join(File.dirname(__FILE__), 'lib/wpscan/wpscan_helper')
|
require File.join(__dir__, 'lib', 'wpscan', 'wpscan_helper')
|
||||||
|
|
||||||
@opts = {
|
@opts = {
|
||||||
ids: 1..10,
|
ids: 1..10,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ $: << '.'
|
|||||||
|
|
||||||
$exit_code = 0
|
$exit_code = 0
|
||||||
|
|
||||||
require File.dirname(__FILE__) + '/lib/wpscan/wpscan_helper'
|
require File.join(__dir__, 'lib', 'wpscan', 'wpscan_helper')
|
||||||
|
|
||||||
def main
|
def main
|
||||||
# delete old logfile, check if it is a symlink first.
|
# delete old logfile, check if it is a symlink first.
|
||||||
@@ -376,7 +376,7 @@ def main
|
|||||||
puts info('Enumerating usernames ...')
|
puts info('Enumerating usernames ...')
|
||||||
|
|
||||||
if wp_target.has_plugin?('stop-user-enumeration')
|
if wp_target.has_plugin?('stop-user-enumeration')
|
||||||
puts warning("Stop User Enumeration plugin detected, results might be empty. However a bypass exists for v1.2.8 and below, see stop_user_enumeration_bypass.rb in #{File.expand_path(File.dirname(__FILE__))}")
|
puts warning("Stop User Enumeration plugin detected, results might be empty. However a bypass exists for v1.2.8 and below, see stop_user_enumeration_bypass.rb in #{__dir__}")
|
||||||
end
|
end
|
||||||
|
|
||||||
wp_users = WpUsers.aggressive_detection(wp_target,
|
wp_users = WpUsers.aggressive_detection(wp_target,
|
||||||
|
|||||||
Reference in New Issue
Block a user