From a7fa434e896dc8ab52e59ef216117ccaf87d472e Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Fri, 5 Jun 2015 21:03:24 -0500 Subject: [PATCH] If exploit list is empty, have the option to return content --- lib/msf/core/exploit/browserautopwnv2.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exploit/browserautopwnv2.rb b/lib/msf/core/exploit/browserautopwnv2.rb index 9e7e1e4efc..ec9f74947b 100644 --- a/lib/msf/core/exploit/browserautopwnv2.rb +++ b/lib/msf/core/exploit/browserautopwnv2.rb @@ -762,8 +762,12 @@ module Msf end elsif exploit_list.empty? print_status("No suitable exploits to send.") - send_not_found(cli) - return '' + if datastore['Content'].blank? + send_not_found(cli) + return '' + else + return datastore['Content'] + end end