Skip to content

Commit

Permalink
Readd the #sysinfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Jan 4, 2024
1 parent d7f2ed4 commit 03f3bf0
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 03f3bf0

Please sign in to comment.