From c38a7e97fd01c216d0a10c6b8fc7191c1e5e76c9 Mon Sep 17 00:00:00 2001 From: Tim W Date: Tue, 4 Sep 2018 22:58:09 +0800 Subject: [PATCH] fix session.type for osx shells --- lib/msf/base/sessions/command_shell.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/msf/base/sessions/command_shell.rb b/lib/msf/base/sessions/command_shell.rb index 78cffff42e..322e7bb13c 100644 --- a/lib/msf/base/sessions/command_shell.rb +++ b/lib/msf/base/sessions/command_shell.rb @@ -69,6 +69,13 @@ class CommandShell "Command shell" end + # + # Calls the class method + # + def type + self.class.type + end + ## # :category: Msf::Session::Provider::SingleCommandShell implementors #