Skip to content

Commit 4cbe35e

Browse files
author
Brent Cook
committed
specifically use shell or powershell
1 parent 4aae9b8 commit 4cbe35e

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ def cmd_sessions(*args)
19171917
session.response_timeout = response_timeout
19181918
end
19191919
begin
1920-
if session.type.include? 'shell'
1920+
if ['shell', 'powershell'].include?(session.type)
19211921
session.init_ui(driver.input, driver.output)
19221922
session.execute_script('post/multi/manage/shell_to_meterpreter')
19231923
session.reset_ui

0 commit comments

Comments
 (0)