Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 8310561

Browse files
committed
change to fix issue 21
this update corrects issue #21
1 parent cafc77c commit 8310561

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

env.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
wpxfbase = __FILE__
2+
23
while File.symlink?(wpxfbase)
34
wpxfbase = File.expand_path(File.readlink(wpxfbase), File.dirname(wpxfbase))
45
end
56

67
app_path = File.expand_path(File.join(File.dirname(wpxfbase)))
7-
$LOAD_PATH.unshift(app_path, 'lib')
8-
$LOAD_PATH.unshift(app_path, 'modules')
8+
9+
$LOAD_PATH.unshift(File.join(app_path, 'lib'))
10+
$LOAD_PATH.unshift(File.join(app_path, 'modules'))
911

1012
require 'colorize'
1113
require 'date'
@@ -20,7 +22,7 @@
2022
require 'wpxf/utility/text'
2123
require 'wpxf/utility/reference_inflater'
2224

23-
require 'github_updater'
25+
require_relative 'github_updater'
2426

2527
module Wpxf
2628
def self.data_directory=(val)

lib/cli/console.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'readline'
22

33
require 'modules'
4-
require_all 'payloads'
54
require 'cli/auto_complete'
65
require 'cli/context'
76
require 'cli/modules'

modules/modules.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ def self.payload_list
4646
end
4747
end
4848

49-
require_all 'modules/auxiliary'
50-
require_all 'modules/exploits'
49+
require_rel 'auxiliary'
50+
require_rel 'exploits'
51+
require_rel '../payloads'

0 commit comments

Comments
 (0)