This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
wpxfbase = __FILE__
2
+
2
3
while File . symlink? ( wpxfbase )
3
4
wpxfbase = File . expand_path ( File . readlink ( wpxfbase ) , File . dirname ( wpxfbase ) )
4
5
end
5
6
6
7
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' ) )
9
11
10
12
require 'colorize'
11
13
require 'date'
20
22
require 'wpxf/utility/text'
21
23
require 'wpxf/utility/reference_inflater'
22
24
23
- require 'github_updater'
25
+ require_relative 'github_updater'
24
26
25
27
module Wpxf
26
28
def self . data_directory = ( val )
Original file line number Diff line number Diff line change 1
1
require 'readline'
2
2
3
3
require 'modules'
4
- require_all 'payloads'
5
4
require 'cli/auto_complete'
6
5
require 'cli/context'
7
6
require 'cli/modules'
Original file line number Diff line number Diff line change @@ -46,5 +46,6 @@ def self.payload_list
46
46
end
47
47
end
48
48
49
- require_all 'modules/auxiliary'
50
- require_all 'modules/exploits'
49
+ require_rel 'auxiliary'
50
+ require_rel 'exploits'
51
+ require_rel '../payloads'
You can’t perform that action at this time.
0 commit comments