Class: Msf::Auxiliary::HttpCrawler::WebTarget

Inherits:
Hash
  • Object
show all
Defined in:
lib/msf/core/auxiliary/http_crawler.rb

Overview

A target object for tracking URLs

Instance Method Summary collapse

Instance Method Details

#to_urlObject



84
85
86
87
88
89
90
91
# File 'lib/msf/core/auxiliary/http_crawler.rb', line 84

def to_url
  proto = self[:ssl] ? "https" : "http"
  host = self[:vhost] ? self[:vhost] : self[:host]
  if Rex::Socket.is_ipv6?(host)
    host = "[#{host}]"
  end
  "#{proto}://#{host}:#{self[:port]}#{self[:path]}"
end