Missing argument

unstable
HD Moore 2012-01-31 01:49:42 -06:00
parent 52004b1e33
commit a74cf1ee10
1 changed files with 1 additions and 1 deletions

View File

@ -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()}?"