Update Rex require for consistency

The speedup is minimal at best.
This commit is contained in:
William Vu 2018-03-26 13:00:11 -05:00
parent 64a478c41b
commit a541e72b92
1 changed files with 1 additions and 1 deletions

View File

@ -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?
init_framework
require 'rex/socket'
datastore['LHOST'] = Rex::Socket.source_address
end
end