move requires into run
parent
dd0d68a2b4
commit
680709c5f2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue