|| session.type == 'powershell'

bug/bundler_fix
benpturner 2015-05-05 09:31:43 +01:00
parent 453b1fce50
commit 22d2275ecb
1 changed files with 1 additions and 4 deletions

View File

@ -1772,10 +1772,7 @@ class Core
rescue Rex::TimeoutError
print_error("Operation timed out")
end
elsif session.type == 'shell'
output = session.shell_command(cmd)
print_line(output) if output
elsif session.type == 'powershell'
elsif session.type == 'shell' || session.type == 'powershell'
output = session.shell_command(cmd)
print_line(output) if output
end