From 61d49f29e83b1b75a30cf6c634802eb76daad5ba Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Tue, 14 Jul 2015 14:16:49 -0500 Subject: [PATCH] Check nil for SRVHOST option --- lib/msf/core/exploit/browser_autopwnv2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/exploit/browser_autopwnv2.rb b/lib/msf/core/exploit/browser_autopwnv2.rb index e1194ba093..94ad8fe4d4 100644 --- a/lib/msf/core/exploit/browser_autopwnv2.rb +++ b/lib/msf/core/exploit/browser_autopwnv2.rb @@ -659,7 +659,7 @@ module Msf host = datastore['URIHOST'] elsif cli host = cli.peerhost - elsif datastore['SRVHOST'] != '0.0.0.0' + elsif datastore['SRVHOST'] && datastore['SRVHOST'] != '0.0.0.0' host = datastore['SRVHOST'] else host = Rex::Socket.source_address