Land #14680, winrm_script_exec: print command output unless output is nil
This commit is contained in:
@@ -80,7 +80,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||
commands.each do |command|
|
||||
if command.include? "cscript"
|
||||
streams = winrm_run_cmd_hanging(command)
|
||||
print_status streams.inspect
|
||||
print_status(streams.inspect) unless streams.nil?
|
||||
elsif command.include? "del %TEMP%"
|
||||
next
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user