diff --git a/modules/payloads/stages/windows/vncinject.rb b/modules/payloads/stages/windows/vncinject.rb index bea6a25930..fbce562ef5 100644 --- a/modules/payloads/stages/windows/vncinject.rb +++ b/modules/payloads/stages/windows/vncinject.rb @@ -103,7 +103,9 @@ module Metasploit3 # If the AUTOVNC flag is set, launch VNC viewer. if (datastore['AUTOVNC'] == true) if (session.autovnc) - print_status("Launched vnciewer in the background.") + print_status("Launched vnciewer.") + else + print_error("Failed to launch vncviewer. Is it installed in your path?") end end diff --git a/modules/payloads/stages/windows/x64/vncinject.rb b/modules/payloads/stages/windows/x64/vncinject.rb index 6cdfdae213..27c339fd75 100644 --- a/modules/payloads/stages/windows/x64/vncinject.rb +++ b/modules/payloads/stages/windows/x64/vncinject.rb @@ -101,7 +101,9 @@ module Metasploit3 # If the AUTOVNC flag is set, launch VNC viewer. if (datastore['AUTOVNC'] == true) if (session.autovnc) - print_status("Launched vnciewer in the background.") + print_status("Launched vnciewer.") + else + print_error("Failed to launch vncviewer. Is it installed in your path?") end end