Skip to content

Commit

Permalink
added auto lhost to msfvenom
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-luv committed Feb 22, 2014
1 parent 998fa06 commit b598a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msfvenom
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ require 'msf/core/payload_generator'
k,v = x.split('=', 2)
datastore[k.upcase] = v.to_s
end
if datastore['LHOST'].nil?
datastore['LHOST'] = "#{Rex::Socket.source_address('50.50.50.50')}"
end
end

if opts[:payload].nil? # if no payload option is selected assume we are reading it from stdin
Expand Down

0 comments on commit b598a5e

Please sign in to comment.