Skip to content

Commit 61d49f2

Browse files
committed
Check nil for SRVHOST option
1 parent 8efb4df commit 61d49f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/browser_autopwnv2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def get_exploit_urls(cli, request)
659659
host = datastore['URIHOST']
660660
elsif cli
661661
host = cli.peerhost
662-
elsif datastore['SRVHOST'] != '0.0.0.0'
662+
elsif datastore['SRVHOST'] && datastore['SRVHOST'] != '0.0.0.0'
663663
host = datastore['SRVHOST']
664664
else
665665
host = Rex::Socket.source_address

0 commit comments

Comments
 (0)