mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
uses mult-assign & include? more readable
This commit is contained in:
parent
3fd15d001d
commit
c08b1cb829
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user