|| session.type == 'powershell'
parent
453b1fce50
commit
22d2275ecb
|
@ -1772,10 +1772,7 @@ class Core
|
||||||
rescue Rex::TimeoutError
|
rescue Rex::TimeoutError
|
||||||
print_error("Operation timed out")
|
print_error("Operation timed out")
|
||||||
end
|
end
|
||||||
elsif session.type == 'shell'
|
elsif session.type == 'shell' || session.type == 'powershell'
|
||||||
output = session.shell_command(cmd)
|
|
||||||
print_line(output) if output
|
|
||||||
elsif session.type == 'powershell'
|
|
||||||
output = session.shell_command(cmd)
|
output = session.shell_command(cmd)
|
||||||
print_line(output) if output
|
print_line(output) if output
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue