Load all deps when needed in help cause we have to

This commit is contained in:
Jeffrey Martin 2018-04-04 17:36:08 -05:00
parent b4683b5f85
commit 3dacec1982
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ def parse_args(args)
end
opt.on('-b', '--bad-chars <list>', String, 'The list of characters to avoid example: \'\x00\xff\'') do |b|
require 'rex/text'
init_framework()
opts[:badchars] = Rex::Text.hex_to_raw(b)
end
@ -189,7 +189,7 @@ def parse_args(args)
datastore[k.upcase] = v.to_s
end
if opts[:payload].to_s =~ /[\_\/]reverse/ and datastore['LHOST'].nil?
require 'rex/socket'
init_framework()
datastore['LHOST'] = Rex::Socket.source_address
end
end