uses mult-assign & include? more readable

This commit is contained in:
Joshua Smith 2014-08-03 23:59:03 -05:00
parent 3fd15d001d
commit c08b1cb829
1 changed files with 1 additions and 2 deletions

View File

@ -192,8 +192,7 @@ module Msf
proto = url.split(':')[0]
host = url.split('/')[2]
port = 80
port = host.split(':')[1] if host[':']
host = host.split(':')[0] if host[':']
host, port = host.split(':') if host.include?(':')
path = '/' + (url.split('/')[3..(url.split('/').length - 1)].join('/'))
query = url.split('?')[1]
web_vuln_info[:web_site] = url