From a74cf1ee10ff7ab00e442a774a4ecd7ef7cf8e70 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 31 Jan 2012 01:49:42 -0600 Subject: [PATCH] Missing argument --- lib/msf/core/exploit/http/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/exploit/http/server.rb b/lib/msf/core/exploit/http/server.rb index 633def2554..6a9b93c13a 100644 --- a/lib/msf/core/exploit/http/server.rb +++ b/lib/msf/core/exploit/http/server.rb @@ -885,7 +885,7 @@ module Exploit::Remote::HttpServer::PHPInclude # def php_include_url(sock=nil) host = srvhost_addr - if Rex::Socket.is_ipv6? + if Rex::Socket.is_ipv6?(host) host = "[#{host}]" end "http://#{host}:#{datastore['SRVPORT']}#{get_resource()}?"