auxiliary/scanner/http: wrapped an exception-prone URL parse in a begin/rescue block

unstable
Tasos Laskos 2012-11-26 18:58:06 +02:00
parent 26b3b4577d
commit c17cffdece
1 changed files with 5 additions and 2 deletions

View File

@ -210,8 +210,11 @@ class Metasploit3 < Msf::Auxiliary
def form_from_url( website, url )
url = URI( url.to_s ) if !url.is_a?( URI )
# Scrub out the jsessionid appends
url.path = url.path.sub(/;jsessionid=[a-zA-Z0-9]+/, '')
begin
# Scrub out the jsessionid appends
url.path = url.path.sub(/;jsessionid=[a-zA-Z0-9]+/, '')
rescue
end
#
# Continue processing forms