Skip to content

Commit bbe35ac

Browse files
author
Brent Cook
committed
match solaris uname
1 parent 1a97042 commit bbe35ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/msf/base/sessions/meterpreter.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,13 @@ def update_session_info
338338
Msf::Module::Platform::FreeBSD
339339
when /openbsd/i, /netbsd/i
340340
Msf::Module::Platform::BSD
341+
when /sunos/i
342+
Msf::Module::Platform::Solaris
341343
else
342344
Msf::Module::Platform::Linux
343345
end.realname.downcase
344346

347+
345348
safe_info = "#{username} @ #{sysinfo['Computer']}"
346349
safe_info.force_encoding("ASCII-8BIT") if safe_info.respond_to?(:force_encoding)
347350
# Should probably be using Rex::Text.ascii_safe_hex but leave

0 commit comments

Comments
 (0)