uses mult-assign & include? more readable
parent
3fd15d001d
commit
c08b1cb829
|
@ -192,8 +192,7 @@ module Msf
|
||||||
proto = url.split(':')[0]
|
proto = url.split(':')[0]
|
||||||
host = url.split('/')[2]
|
host = url.split('/')[2]
|
||||||
port = 80
|
port = 80
|
||||||
port = host.split(':')[1] if host[':']
|
host, port = host.split(':') if host.include?(':')
|
||||||
host = host.split(':')[0] if host[':']
|
|
||||||
path = '/' + (url.split('/')[3..(url.split('/').length - 1)].join('/'))
|
path = '/' + (url.split('/')[3..(url.split('/').length - 1)].join('/'))
|
||||||
query = url.split('?')[1]
|
query = url.split('?')[1]
|
||||||
web_vuln_info[:web_site] = url
|
web_vuln_info[:web_site] = url
|
||||||
|
|
Loading…
Reference in New Issue