move requires into run
parent
dd0d68a2b4
commit
680709c5f2
|
@ -40,11 +40,6 @@ module PatternCreate
|
|||
raise OptionParser::MissingArgument, '-l <length> is required'
|
||||
end
|
||||
|
||||
require 'msfenv'
|
||||
require 'msf/core'
|
||||
require 'msf/base'
|
||||
require 'rex/text'
|
||||
|
||||
options[:sets] = nil unless options[:sets]
|
||||
|
||||
options
|
||||
|
@ -62,8 +57,12 @@ module PatternCreate
|
|||
end
|
||||
|
||||
def run
|
||||
pattern = Rex::Text.pattern_create(@opts[:length], @opts[:sets])
|
||||
puts pattern
|
||||
require 'msfenv'
|
||||
require 'msf/core'
|
||||
require 'msf/base'
|
||||
require 'rex/text'
|
||||
|
||||
puts Rex::Text.pattern_create(@opts[:length], @opts[:sets])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue