Land #6512, Acunetix importer missing scheme fix

bug/bundler_fix
William Vu 2016-01-29 13:17:44 -06:00
commit 1828b7fda6
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ module Msf::DBManager::Service
# opts may contain
# +:name+:: the application layer protocol (e.g. ssh, mssql, smb)
# +:sname+:: an alias for the above
# +:workspace+:: the workspace for the service
#
def report_service(opts)
return if not active

View File

@ -59,6 +59,8 @@ module Rex
@text = nil
when "StartURL" # Populates @state[:starturl_uri], we use this a lot
@state[:has_text] = false
# StartURL does not always include the scheme
@text.prepend("http://") unless URI.parse(@text).scheme
collect_host
collect_service
@text = nil