Skip to content

Commit 1a97042

Browse files
author
Brent Cook
committed
include running CPU architecture in platform string
1 parent 57a3a28 commit 1a97042

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/base/sessions/meterpreter.rb

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

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

0 commit comments

Comments
 (0)