Skip to content

Commit

Permalink
Land #18667, Re-add the #sysinfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-r7 authored Jan 8, 2024
2 parents 0d70f25 + 03f3bf0 commit ad4b47f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/msf/core/session_compatibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ def session_display_info

alias :client :session

#
# Cached sysinfo, returns nil for non-meterpreter sessions
#
# @return [Hash,nil]
def sysinfo
begin
@sysinfo ||= session.sys.config.sysinfo
rescue NoMethodError
@sysinfo = nil
end
@sysinfo
end

#
# Can be overridden by individual modules to add new commands
#
Expand Down

0 comments on commit ad4b47f

Please sign in to comment.