Land #7599, Don't complain when Proxies is an empty string

bug/bundler_fix
Pearce Barry 2016-11-22 10:14:40 -06:00
commit 3640e87a37
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ module Msf
# if it fails to start the listener.
#
def setup_handler
if datastore['Proxies'] and not datastore['ReverseAllowProxy']
if !datastore['Proxies'].blank? && !datastore['ReverseAllowProxy']
raise RuntimeError, "TCP connect-back payloads cannot be used with Proxies. Use 'set ReverseAllowProxy true' to override this behaviour."
end

View File

@ -63,7 +63,7 @@ module ReverseTcpDoubleSSL
# if it fails to start the listener.
#
def setup_handler
if datastore['Proxies'] and not datastore['ReverseAllowProxy']
if !datastore['Proxies'].blank? && !datastore['ReverseAllowProxy']
raise RuntimeError, 'TCP connect-back payloads cannot be used with Proxies. Can be overriden by setting ReverseAllowProxy to true'
end

View File

@ -43,7 +43,7 @@ module ReverseTcpSsl
# if it fails to start the listener.
#
def setup_handler
if datastore['Proxies'] and not datastore['ReverseAllowProxy']
if !datastore['Proxies'].blank? && !datastore['ReverseAllowProxy']
raise RuntimeError, "TCP connect-back payloads cannot be used with Proxies. Use 'set ReverseAllowProxy true' to override this behaviour."
end