Method: Msf::Sessions::Meterpreter#platform

Defined in:
lib/msf/base/sessions/meterpreter.rb

#platformObject

Get a string representation of the current session platform


620
621
622
623
624
625
626
627
628
629
# File 'lib/msf/base/sessions/meterpreter.rb', line 620

def platform
  if self.payload_uuid
    # return the actual platform of the current session if it's there
    self.payload_uuid.platform
  else
    # otherwise just use the base for the session type tied to this handler.
    # If we don't do this, storage of sessions in the DB dies
    self.base_platform
  end
end