File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
ui/console/command_dispatcher Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ def self.type
27
27
"powershell"
28
28
end
29
29
30
+ #
31
+ # Returns the session platform.
32
+ #
33
+ def platform
34
+ "win"
35
+ end
36
+
30
37
#
31
38
# Returns the session description.
32
39
#
Original file line number Diff line number Diff line change @@ -1917,12 +1917,12 @@ def cmd_sessions(*args)
1917
1917
session . response_timeout = response_timeout
1918
1918
end
1919
1919
begin
1920
- if session . type == 'shell'
1920
+ if session . type . include? 'shell'
1921
1921
session . init_ui ( driver . input , driver . output )
1922
1922
session . execute_script ( 'post/multi/manage/shell_to_meterpreter' )
1923
1923
session . reset_ui
1924
1924
else
1925
- print_error ( "Session #{ sess_id } is not a command shell session, skipping..." )
1925
+ print_error ( "Session #{ sess_id } is not a command shell session, it is #{ session . type } , skipping..." )
1926
1926
next
1927
1927
end
1928
1928
ensure
You can’t perform that action at this time.
0 commit comments