move requires into run

bug/bundler_fix
Brent Cook 2016-05-14 09:50:02 -05:00
parent dd0d68a2b4
commit 680709c5f2
1 changed files with 6 additions and 7 deletions

View File

@ -40,11 +40,6 @@ module PatternCreate
raise OptionParser::MissingArgument, '-l <length> is required' raise OptionParser::MissingArgument, '-l <length> is required'
end end
require 'msfenv'
require 'msf/core'
require 'msf/base'
require 'rex/text'
options[:sets] = nil unless options[:sets] options[:sets] = nil unless options[:sets]
options options
@ -62,8 +57,12 @@ module PatternCreate
end end
def run def run
pattern = Rex::Text.pattern_create(@opts[:length], @opts[:sets]) require 'msfenv'
puts pattern require 'msf/core'
require 'msf/base'
require 'rex/text'
puts Rex::Text.pattern_create(@opts[:length], @opts[:sets])
end end
end end
end end