Skip to content

Commit 3fc4645

Browse files
David MaloneyDavid Maloney
authored andcommitted
Land rapid7#7199, bcook's pr for is_system fix
fixes issue that caused is_system to crash meterp
2 parents b027176 + 1cb01ee commit 3fc4645

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/msf/base/sessions/meterpreter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,7 @@ def update_session_info
326326
username = self.sys.config.getuid
327327
sysinfo = self.sys.config.sysinfo
328328

329-
self.platform =
330-
self.sys.config.sysinfo["Architecture"].downcase + '/' +
331-
self.platform.split('/')[0] +'/' +
329+
self.platform = self.platform.split('/')[0] + '/' +
332330
case self.sys.config.sysinfo['OS']
333331
when /windows/i
334332
Msf::Module::Platform::Windows

0 commit comments

Comments
 (0)