mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-02 07:40:19 +02:00
Load all deps when needed in help cause we have to
This commit is contained in:
parent
b4683b5f85
commit
3dacec1982
4
msfvenom
4
msfvenom
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user