diff --git a/modules/post/multi/manage/upload_exec.rb b/modules/post/multi/manage/upload_exec.rb index 5ccfd391f7..992d825bde 100644 --- a/modules/post/multi/manage/upload_exec.rb +++ b/modules/post/multi/manage/upload_exec.rb @@ -44,7 +44,12 @@ class MetasploitModule < Msf::Post end output = cmd_exec(cmd, args, timeout) - print_line(output) unless output.blank? + + if output.blank? + vprint_status('Command returned no output') + else + print_line(output) + end rm_f(rpath) end