Skip to content

Commit

Permalink
Land rapid7#9817, load all the deps for msfvenom
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'upstream/pr/9817' into upstream-master
  • Loading branch information
busterb authored and msjenkins-r7 committed Apr 5, 2018
1 parent ded6a50 commit 69d995f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msfvenom
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 69d995f

Please sign in to comment.