cb33de24e4
[FixRM #8749] Basically the spawn_meterpreter script doesn't actually allow the user to set their own LHOST/LPORT datastore options, because they come from the session object, not from the active module or the framework object. The fix is to allow the user to config them from framework. But if they forget to do this (because naturally people probably assume that active module datastore options are the same as the ones set in framework), then for LHOST, we default whatever we get from Rex::Socket.source_address. As for LPORT, we'll pick a one that's not used by any of the sessions.