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 11wpxfbase = __FILE__
2+
23while File . symlink? ( wpxfbase )
34 wpxfbase = File . expand_path ( File . readlink ( wpxfbase ) , File . dirname ( wpxfbase ) )
45end
56
67app_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
1012require 'colorize'
1113require 'date'
2022require 'wpxf/utility/text'
2123require 'wpxf/utility/reference_inflater'
2224
23- require 'github_updater'
25+ require_relative 'github_updater'
2426
2527module Wpxf
2628 def self . data_directory = ( val )
Original file line number Diff line number Diff line change 11require 'readline'
22
33require 'modules'
4- require_all 'payloads'
54require 'cli/auto_complete'
65require 'cli/context'
76require 'cli/modules'
Original file line number Diff line number Diff line change @@ -46,5 +46,6 @@ def self.payload_list
4646 end
4747end
4848
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