Tell the user when there's blank output

GSoC/Meterpreter_Web_Console
William Vu 2018-09-23 21:52:46 -05:00
parent 6dd6e8abcb
commit a119465495
1 changed files with 6 additions and 1 deletions

View File

@ -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